Answered

How to get the value from an "Object" that contains a collection?

Hi;

In my OnEnter Event, i declared an object variable, its name Leader, and then with assignment i did as below:

Leader = distinct-values(VacationPractice.Applicant.WorkPackages.Process.ProcessLeader.ProcessLeader);

Then with expression, how can i get values from this Leader?

(WorkPackages, Process and Process Leaders are parameter entity and defined as UserProperty with their relations :Parent).

I mean, each WorkPackages belongs to only one Process and each Process belongs to only one ProcessLeader.

Please Help...

Best Answer
photo

Dear Burak,

You may obtain values from Bizagi methods that return a collection by using the .get() method as shown:

var tempValue = Leader.get(index);

You can also use the .size() method too, in order to determine the number of elements returned in the collection.

Best regards,

photo
0

Dear Burak,

You may obtain values from Bizagi methods that return a collection by using the .get() method as shown:

var tempValue = Leader.get(index);

You can also use the .size() method too, in order to determine the number of elements returned in the collection.

Best regards,

photo
0

Great thanks for your help...

I've solved the problem.