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

Yep, that's what I ended up going with.   Would love to see what's available in the scoped RP version, and also curious if parent *should* be available.



Thanks!


How to access a parent table for example "change" from ui action applied to a child table example "change_task". I want to do something on the change_task based on values on the parent table change.


Child table would have field related to parent ??


I am talking about the change task related list on the change form. Based on a value entered on the change form, I want to control visibility of UI action "new" on the related lists to create new change tasks. I can see that's a global UI action, on the condition I want to say: If change state (parent record) = approved. I am using current.state == approved; but It wouldn't work because current is the change task and not the request for change record.


Use a access control and use parent object to access the value of change field and return answer=false;



parent.fieldname will give you the access to the fields of change request.