Related list UI Action access to parent/RP

jeremy_gardner
Tera Expert

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

9 REPLIES 9

Kalaiarasan Pus
Giga Sage

Tried ?



RP.isRelatedList()


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


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?


Not sure of a better way but this should work



RP.getReferringURL().indexOf("parent table name.do") == 0)