Hi William,
The problem is not passing data between IP and IM, I already did this and it is working fine.
The point is that I use a multi-select list object and in its init handler I use a plugin call to query an LDAP and populate the available options.
This is fully working.
Then, in the same init handler I must select ALL options pushed in the list by default.
I should dynamically set the list value with all the available options.
I have put all the options, pushed in the list, in a multivalued variable and used that variable to push the values inside the list values array...
It seems to work since the "change" handler for the list is triggered for all values and the expected code is executed.
The only side effect is that the "selected" objects are not highlighted.
The proof for this is that, after my code is executed, if I manually click on a list option, the change handler is executed processing the change but it doesn't add anything to my final array values, just highlights the row.
When, instead, I deselect the row with a second click, the change handler process my request by removing the "un-selected value" from my final array variable.
Each row in the list options has been correctly processed and added to the final array value as expected, but the rows have not been highlighted... this is the real issue.
It doesn't matter what the integration with IM has been done, it is working and previously tested. (I perfectly know how to work on IM and how to pass the values to IM tasks)
I also tested my code with fake values and if I use fixed values it works...
<list>.options.push({name: test, value test});
<list>.options.push({name: test1, value test1});
<list>.values = ["test", "test1"};
This works. But if I use some dynamic variable to get all options from the multi-select list to pass the selected values to the list itself, my code seems to have some issue with the UI.
I am trying to understand where the problem is.
I will update in case I find the root cause.
Best regards,
Claudio Cordaro
HCL Technologies
Security Services Architect | CISSP ® | ITIL V3 | ISO 27001
HCL Technologies | Viale Luca Gaurico, 9/11 - 00143 Roma (RM)
Mobile: (+39) 335.7368195
Email: claudio.cordaro@hcl.com
Website: www.hcltech.com