Restrictions on a variable type on RITM and SC Task level

taqdeer
Tera Contributor

Hi All,

I have a requirement to set the restrictions on a variable type on the RITM level and SC Task level.

Variable name : Type

 

By default when a catalog item request is submitted RITM is being assigned to Group A. So, Vairable "Type" should be only editable to the Group A not any other groups should be able to edit it on RITM level (Other groups can see it but shouldn't have access to edit).

Similarly,  that RITM will have a SCTASK for which this Variable "Type" also available and this should be made editable only to the assigment groups that these SCTASK is assigned to.

If SCTask 1 is assgined to Group A, then Group A should have an access to edit this Type variable on SC TASK level
if SCTask 2 is assigned to Group B, then Group B should have an access to edit this Type variable on SC Task level.

Could anyone please help me on this requirement.

4 REPLIES 4

OlaN
Giga Sage
Giga Sage

Hi,

This requirement is hard to fulfill, and in some ways does not make sense. Could you please elaborate a bit more on the use case?

Consider the following scenario.

The RITM is assigned to group A, and at the same time a SCTASK exist, that is assigned to group B, then both group A and group B can change the variable, because the variable is shared between the RITM and the SCTASK.
But your requirement states that group A should not be able to change the variable because they are not assigned to the SCTASK, and vice versa for group B that is not assigned to RITM.

sushantmalsure
Mega Sage
Mega Sage

Write a onLoad Client script on table sc_req_item and sc_task,

then

1. check if logged in user is member of Assignment group value: you can use glideAjax to check the membership or you can set membership check in on display BR.

2. based on membership check then you can user g_form.setReadOnly('variables.type',true/false)

Try this out on and then share the screenshot of script to help you better (if you still in need of help)

 

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,Sushant Malsure

piyushsain
Tera Guru
Tera Guru

Hi Taqdeer,

Please create a write ACL on type field, in that in the script return true only when a user is the member of Assignment Group. If there is any other write ACL on Type field implement the same . Pleas let me know if this solves the issue. Please mark it correct if this solved your issue.

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
Piyush Sain

@taqdeer If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
Piyush Sain