Add the Demand Parent field onto the Demand Screen

Sonali01
Tera Contributor


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.

10 REPLIES 10

Gopal Allu
Tera Expert

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.

GopalAllu_0-1711567099278.png

 

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.

 

Thanks Gopal

appreciate all your help... will let you know once it's done.

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.

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

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.