Introducing the all-new TIBCO Community site!

For current users, please click "Sign In" to reset your password and access the enhanced features. If you're a first-time visitor, we extend a warm welcome—click "Sign Up" to become a part of the TIBCO Community!

If you're seeking alternative community sites, explore ibi, Jaspersoft, and Spotfire.

Jump to content

Document property containing comma-separated string values as filter to limit table visualization results


Tiffany Lai

Recommended Posts

Hello,

I have a document property as a string which can be either one value "$123" or multiple values separated by a comma ("123, 456, 789"). The document property is set by markings.I would like to pass this comma-separated string to a filter in order to limit the results in a table visualization. For example, if the document property is "123, 456", then I would like all rows which contain either "123" or "456" in a specified column to appear in the table visualization.

Can this be done using the limit data by expression option If I select only one value, this option works, but it will not display any rows if multiple values are selected (I'm guessing this is because the expression is looking for a row with the literal string value). This is why I thought an IronPython script triggered by changes in thedocument property would be a better option, but I'm open to suggestions. Any pointers in the right direction would be appreciated.

Link to comment
Share on other sites

You don't need Iron Python and yes limit data by expression would work.

So your use case is: the document property is a string containing:

- either a single value, with a $ in front

- or multiple values, comma separated

 

This expression would work for that:

Find(Concatenate([YourVariable],','),Concatenate(Substitute('${YourDocumentProperty}','\$',''),','))>0

 

Substitute() gets rid of the initial $ if present

Concatenate() on both probe and expression ensures you are not recognizing e.g. 1234 when your expression only contains 123.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...