Answered

Distinct Values on Variable

Hi

How can I get only the distinct Values from a variable that contains an array list?

The dintinct<xpath> function only works with Xpath, not with variables right?

Thanks

Best Answer
photo

Dear Giovani,

Bizagi has a function called: Distinct-values which returns a list (not a collection) with non repeated values of a specific attribute, from a collection. It is necessary to indicate the attribute to find the distinct values from. The list with the non repeated values will be entries of this attribute.

  • Note: <distinct-values(XPath)> The XPath must be a collection, that navigates util reaching an attribute of the collection that can be used to find non repeated values.

You can also use C# functions like Distinct(). Please check this article: https://msdn.microsoft.com/en-us/library/vstudio/bb348436%28v=vs.100%29.aspx

Regards

Comments (3)

photo
0

Dear Giovani,

Bizagi has a function called: Distinct-values which returns a list (not a collection) with non repeated values of a specific attribute, from a collection. It is necessary to indicate the attribute to find the distinct values from. The list with the non repeated values will be entries of this attribute.

  • Note: <distinct-values(XPath)> The XPath must be a collection, that navigates util reaching an attribute of the collection that can be used to find non repeated values.

You can also use C# functions like Distinct(). Please check this article: https://msdn.microsoft.com/en-us/library/vstudio/bb348436%28v=vs.100%29.aspx

Regards

photo
1

how about to get distinct -value in search form?? I don't think I can apply expression on search result or can I ?

photo
1

Dear Khurram,

Currently our product does not include this feature. We invite you to use our feedback platform on the ideas space to post your request.

This platform will allow you to share your ideas so that the whole Bizagi BPM Suite community can vote and discuss them. We want to make sure we solve the needs of our clients, so that we can add the features you consider most important.