- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2022 12:13 AM
Hi All,
Can we duplicate the related lists on the same form.?
If yes, how to do it.
I am having feature and release tables , where in feature record, there is a reference field of release table with field name parent. So, it created a related list on release form.
In my requirement I need to duplicate it and add few conditions.
Thanks in Advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2022 02:12 AM
Try this
(function refineQuery(current, parent) {
current.addQuery('u_deliverable', 'Main Deliverable');
current.addQuery('parent.number',current.number);
gs.addErrorMessage("feature is " +parent.getDisplayValue());
gs.addErrorMessage("release is " +parent.number);
})(current, parent);
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2022 02:18 AM
Try this
(function refineQuery(current, parent) {
current.addQuery('u_deliverable', 'Main Deliverable');
current.addQuery('parent.number',parent.number);
gs.addErrorMessage("feature is " +parent.getDisplayValue());
gs.addErrorMessage("release is " +parent.number);
})(current, parent);
or
(function refineQuery(current, parent) {
current.addQuery('u_deliverable', 'Main Deliverable');
current.addQuery('parent',parent.sys_id);
gs.addErrorMessage("feature is " +parent.getDisplayValue());
gs.addErrorMessage("release is " +parent.number);
})(current, parent);
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2022 02:39 AM
Hi Renu,
Use the below line
current.addQuery('parent',parent.sys_id);
I hope rm_release table is referred in rm_feature table in 'parent' filed, If not replace the first parameter with the field name.