- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2019 07:02 PM
Hi,
I've custom UI action(client) button "Copy" on OOB table. I've a related list on the same table, similar to, a related list that shows the incidents opened for same caller available in incident form.
Now, this "Copy" UI action button available should be available only on related list not on the incident form. Also, it should be available only in incident related list and not on problem form.
I tried using following condition but it doesn't seem to work as expected,
current.parent.sys_class_name==incident
current.parent.getTableName()=incident
Any pointers?
Thanks.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2019 07:15 PM
current object won’t be available on a list.
Try using The RP.isRelatedList() function combined with parent.getTableName() to get the effect you want

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2019 07:09 PM
You use can use "List control" to restrict the UI action on related list.
Please use "RP.isOneToMany() || RP.isManyToMany()" in your condition.
This will make the condition true when it is used on related list and false when used on a default list view.
Regards,
Sachin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2019 07:15 PM
current object won’t be available on a list.
Try using The RP.isRelatedList() function combined with parent.getTableName() to get the effect you want
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2019 08:33 PM
Hi,
Make sure "List banner button" checkbox is true.
Thanks