Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » How do I use Multi Select Parameters in an Expression?
icon5.gif  How do I use Multi Select Parameters in an Expression? [message #1731520] Fri, 06 May 2016 12:36
Kandice Bozora is currently offline Kandice BozoraFriend
Messages: 1
Registered: May 2016
Junior Member
I have a multi select parameter called Filter that I want to compare to a value within a dataset. If the value in the dataset matches one of the values in Filter, then the statement will be true. If it doesn't match any of the values in Filter, it will be false. The code below works for a single select, but when multiple values are selected it is only working for the first value and ignoring the others.

FILTER_VALUES="'"+params["Filter"].value.join("','")+"'"
CALCED_FUNDING=BirtComp.anyOf(row["RESPONSIBLE_ORG_ID"],row["FILTER_VALUES"])

If I select two values, say a and b from the multi select, the results I get are:

dataset value calced_funding
a true
b false <=Need this to be true since it was also selected.

Any idea why the second selected value is being ignored?
Previous Topic:is BIRT right choice for huge data reporting?
Next Topic:Cannot open the connection [Birt 2.2]
Goto Forum:
  


Current Time: Wed Apr 24 22:50:11 GMT 2024

Powered by FUDForum. Page generated in 0.02657 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top