Add the Demand Parent field onto the Demand Screen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2024 08:06 AM - edited ‎03-28-2024 06:01 PM
How to Adjust ACLs to allow only users in the SN_Demand Admins group to see/or modify the Demand Parent field.
Ensure that, at a minumum, only those users in the SN_Demand Admins group can modify the new field.
It would be best if the field was hidden if the user is not in the SN_Demand Admins group.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2024 11:34 AM - edited ‎03-27-2024 12:18 PM
Hi @Sonali01 ,
You can do that right click on the form and go to configure-> form layout. click on the parent field and click on the right arrow. It will come to selected area.
Later for giving access to the users, you can create one onLoad client script on demand table. In the script you can mention that,
If user isMember of code from business rule in script.
Step 1: Create a display Business rule with script as.
g_scratchpad.grp = gs.getUser().isMemberOf('SN_Demand Admins');
Step 2 : Write onload script like this.
function onLoad() {
if (!g_scratchpad.grp){
g_form.setReadOnly('parent', true); // for making field readonly.
//choose either one option as per your comfort.
g_form.setDisplay('parent',false); // for making field hidden.
}
}
If it is helpful please make it correct/helpful.
Thanks and Regards,
Allu Gopal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2024 01:32 PM
Thanks Gopal
appreciate all your help... will let you know once it's done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2024 08:18 PM
Hi @Sonali01 ,
If you facing any issue in this provided solution please let me know. Else if my answer is helpful please make it helpful/correct.
Thanks and Regards,
Allu Gopal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2024 02:35 PM
I require to use of ACLs to allow only users in the SN_Demand Admins group to see/or modify the Demand Parent field.
Can you help me to achieve that
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2024 06:08 AM - edited ‎04-02-2024 08:18 AM
Hi @Sonali01 ,
You can create one write acl on this demand table for field parent. in the script section you can write code like below
var yes = gs.getUser().isMemberOf('SN_Demand Admins');
if( yes == 'true')
answer = true;
else
answer = false;
if my answer is helpful please make it helpful/correct.
Thanks and Regards,
Allu Gopal.