- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2015 01:44 AM
In a condition for a list choice UI Action one can use the RP functionality, for example like this:
RP.isRelatedList() && currrent.problem_id != ""
Is it possible to get the name of the related list I am dealing with, i.e. "incident.problem_id" and put this as a part of my condition?
Tor
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2015 03:07 AM
Instead of related list name, can't you try using table name of the parent record ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2015 02:27 AM
Hi Tor,
I am not sure what exactly you are looking for but below shown methods might help you.
sysIdList | getChecked()
|
String | getListName()
|
String | getParentTable()
|
String | getRelated()
|
String | getTableName()
|
String | getTitle()
|
Thanks,
Tanaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2015 02:57 AM
Thanks Tanaji, but this did not help. Unless I did something wrong
Those get functions are used in connection with the GlideList2 (g_list) Javascript class.
As I understand it, g_list is the variable used to access a specified list object. The g_list variable is not available to the related lists form link UI action.
I have defined a UI Action to be used in related lists. It is available in the "Actions on selected" rows menu on the related lists. However my UI action pops up in every related list that is defined, and I want it available only for a few of the related lists. My idea was if I could determine the name of the related list, I could build this into the UI Action's condition.
Regards,
Tor

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2015 02:56 AM
If you are trying to hide a button for a particular table's related list (My guess here 'New' button), you can try using create access control and block the access at the table level itself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2015 02:59 AM
Thanks Kalai,
It's not the New button, but a customized UI Action that I want to be available in the "Actions on selected rows" for related lists, but not for every list, only a selection of my Choice
Tor