- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2023 11:56 PM
Variable Value is not populating in RITM while trying to fetch from another variable (i.e, variable set)
if (req_type == 'remove_access'){
var req = current.variables.ldap_id_of_user_to_remove;
current.variables.ldap_id_s = req;
}
field is showing as undefiend instead of getting the userID.
Any suggestions? Thanks In Advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2023 04:16 AM - edited 03-21-2023 10:21 AM
to get multirow variable set value. Try below code
var list = [];
var mvrs = current.variables.users_access; // getting variable set name
mvrsCount = mvrs.getRowCount(); //row count of variable set
for(var i = 0; i< mvrsCount; i++){
var row = mvrs.getRow(i);
var ID = row.ldap_id;
list.push(ID);
}
current.variables.id = list.toString();
Check backend names properly.
Bharath Chintala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2023 04:16 AM - edited 03-21-2023 10:21 AM
to get multirow variable set value. Try below code
var list = [];
var mvrs = current.variables.users_access; // getting variable set name
mvrsCount = mvrs.getRowCount(); //row count of variable set
for(var i = 0; i< mvrsCount; i++){
var row = mvrs.getRow(i);
var ID = row.ldap_id;
list.push(ID);
}
current.variables.id = list.toString();
Check backend names properly.
Bharath Chintala