Answered

How Can i put Positions of a user into a String?

Hi everybody

please answer me about putting user's positions into a string? for example a user have 2 positions :CEO and Member of board. so i need a string similar below: "CEO, Member of board"

syntax of my source code is OK, but logically didn't work:

thanks

for(i=0; i<Me.Case.WorkingCredential.Positions.Count ;i++)

{

userPositions+=Me.Case.WorkingCredential.Positions+", ";

}

Comments (4)

photo
1

correction code: but nothing

for(i=0; i<Me.Case.WorkingCredential.Positions.Count ;i++)

{

userPositions+=Me.Case.WorkingCredential.Positions+", ";
}

photo
1

Dear Hamid,

Thank you for letting us know your questions. Looking at the code you are using, we would like to suggest a small change: Since Me.Case.WorkingCredential.Positions is a collection, you would need to access the specific place within the collection (which you are using in the "for" statement, but not in the body of that cycle).

  1. userPositions+= Me.Case.WorkingCredential.Positions[ i ].PosDisplayName + ", " ;

This line will give you the name of the User position in the i-th place within the collection called Positions.

We hope this helps.

Kind regards,

Laura G

photo
1

Dear Laura

Thank you for kindly attention.

Actually I test same code but didn't get any result and not work.

also Positions in my program are checked and all of them are right.

my Bizagi Suite version is 11.2.5.0683

Please check your code whether it's work.

do you have any suggestion?

Please see attached pic.

Kind regards.

Hamid

Files: 12.jpg
photo
1

Dear Hamid,

We are sorry to hear this issue is not yet solved for you. We would like to recommend the following: Keep trying changing the configuration of your attributes until you get to a more satisfactory result. This link about the configurations required to use the functions you are using might be of help: https://help.bizagi.com/bpm-suite/en/index.html?obtain_and_use_info_of_assignee.htm

If you are still experiencing issues with this regardless of whether you are following the instructions for configuration, it would help us to know what result you are getting that is not the one you expect.

Kind regards,

Laura G