Record producer (based on user criterias templates should display)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 11:36 PM
Hello,
I have a requirement of creation of new record producer so we have a reference field called "standard template" which refer to table "Standard change template"(std_change_record_producer).
So here templates should display based on
1. logged in users (user criteria) related templates and if any template is not assigned to any criteria that template should also display.
So here I have created the script include
point 1. I have created the out of box function script which get current logged in user's user criteria:
getCurrentUserCriteria: function() /*object*/ {
var criteriaArr = SNC.UserCriteriaLoader.getAllUserCriteria();
gs.log("usercreiteria: "+criteriaArr);
return criteriaArr;
},
Point 2: Now I need to get list of templates which are not assigned to any criteria like "Available For" and "Not available For" for example please see screen shot


Point3 : when user select the reference field it should display templates which are related to logged in users user criteria and which are not assigned to any criteria
Please let me know how can we achieve this if possible please provide the example script.
Thanks,
Chinni.
Point3 : when user select the reference field it should display templates which are related to logged in users user criteria and which are not assigned to any criteria
Please let me know how can we achieve this if possible please provide the example script.
Thanks,
Chinni.
0 REPLIES 0