Related list UI Action access to parent/RP

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2015 10:54 AM
I have two tables, A and B (same custom scope), and have added B as a related list when viewing A. I'd like to build a UI action on B that only shows when it's viewed as part of the related list (kinda how Edit... button works on a related list, but isn't visible when viewing that table directly).
I'm playing around with the conditions, but don't seem to have access to parent or RP. Am I missing something?
Thanks!
Jeremy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2015 12:37 PM
Tried ?
RP.isRelatedList()

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2015 03:41 PM
Okay, that seems to work in the condition. I need some additional logic though, I still want to only show it when it's a related list on Table A, but not if it's a related list on Table XYZ. I was trying other RP options, such as getParameterValue(), but that isn't available in the conditions, and nothing RP is available in the script. "parent" is also not available in the conditions.
Am I misunderstanding something with using RP (I see other UI actions that have it in the script) and parent?
Thanks!
Jeremy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2015 03:46 PM
Or is the scoped Render Properties somewhat limited? Is there a list of options available for RP? Looks like RP.getReferringURL() is available, so that would work for me, unless there is a better way to determine parent table within a scoped UI Action?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2015 09:30 PM
Not sure of a better way but this should work
RP.getReferringURL().indexOf("parent table name.do") == 0)