how u tried for getting list of orgs which r under perticular user control
plz try it by calling rules(no need to call rule,we can get it directly)
see the code
I got the list from rule with following code
<invoke name='getOrganizationsDisplayNames' class='com.waveset.ui.FormUtil'>
<select>
<ref>:display.session</ref>
<invoke name='getLightHouseContext'>
<ref>WF_CONTEXT</ref>
</invoke>
<ref>context</ref>
</select>
</invoke>
Thanks for that. What I found was that if I call getOrganizationsDisplayNames from a form, it behaves correctly and only shows the organizations that a user has control over. However, if I call it from a script action in a workflow, then it gives me all organizations in the system. I am not sure why this happens.
To get around it, I just set the workflow variable from within a form.