11-17-2011 06:02 PM
Anyone know how to build a Multi Select list from a single string?
I have pulled in a "multi-valued" LDAP attribute using a java class and need to use the "includes/contains" function in service designer against the results... This function only works when the input type is either a checkbox or multi select. Currently I have the "multi-values" stored in a single string delimited by ','. Any help would be greatly appreciated.
Thanks,
Angelo
11-17-2011 06:02 PM
Better yet...anyone know the best way to approach this? UseCase: Pulling in multi-value LDAP attribute. Based on the values returned...a service will kick off different workflows. EX: If JOHN, MIKE, and CHARLES are possible return values for the LDAP attribute...if MIKE does not exist for the RequestedFor, the service must kick off a different workflow. Anyone??
Thanks,
Angelo
11-17-2011 06:02 PM
We are trying to pull a multivalue LDAP attribute into a Multi-Select field within the form. When the customer submits the form, Request Center will need to determine which workflow to follow based on certain values present in the field....
Make sense?
11-17-2011 06:02 PM
need more details .. not sure what you are doing here
11-17-2011 06:02 PM
I think the issue you're running into here is that the field is not delimiting the value sent it from LDAP, thus you're receiving a really long string as one value in the multi-select data element. That would be my guess.
So, what you'll need to do to allow yourself some flexibility is to bring that string into a hidden data element, then use JavaScript to parse it to the multi-select.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide