Populate the members of the group in a variable Dynamically.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 05:50 AM
Hello Everyone,
I am trying to auto populate members of the groups in a variable based on other variable choices.
EX: We have 2 variable V1 and V2
V1 has 3 choices
Choices: TYPE1, TYPE2, TYPE3.
This Variable and the choices are not dependent to the V2 groups.
When V1 is selected as = TYPE1
the Variable V2 should show the list of group members who are part of group "Group1"
When V1 is selected as = TYPE2
the Variable V2 should show the list of group members who are part of group "Group2"
When V1 is selected as = TYPE3
the Variable V2 should show list group members who are part of group "Group 3"
Please help me with this functionality.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 06:21 AM
You will need to create a client callable script include which will:
1. Accept type (from V1) as the parameter
2. Return returns comma-separated sys_ids of the members of the group by quering sys_user_grmember.
3. The variable V2 will be a reference variable on sys_user
4. In the V2's Reference qualifier, need to have code such as below:
javascript:'active=true^sys_idIN' + new YOURSCRIPTINCLUDENAME.YOURFUNCTIONNAME(current.variables.v1name);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 08:06 AM
Hello Maroon,
Can you help me with the script please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 09:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 02:30 AM
Hello,
I tried this but i got many syntax errors. I just pasted the same.