Restrictions on a variable type on RITM and SC Task level
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 01:56 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 02:10 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 02:14 AM
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)
Regards,Sushant Malsure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 02:16 AM
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.
Regards,
Piyush Sain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2023 01:07 AM
@taqdeer If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
Piyush Sain