Hello,
I'm creating an asset management website application for a company as my school project. I have used the same summary view for three pages (My Assets, All Assets, Available Assets) on my site but with different filters according to the required use cases. I have also created multiple related actions (Request Asset, Retire Asset, Update Asset) and configured their visibility according to the user groups' accessibility criteria.
My Assets and Available Assets pages are visible to the employee group. If the employee selects a particular asset, it will take them to the summary page where two related actions - Request Asset and Retire Asset are enabled for them. Currently, I see both related actions on the summary view.
My problem is that I want:
1. Retire Asset Button to be visible only when the employee is visiting the summary view via the My Assets page, and,
2. Request Asset Button to be visible only when the employee is visiting the summary view via the Available Assets page.
Any help is appreciated! Thanks.
Discussion posts and replies are publicly visible
Showing UI components based on the navigation path is not supported.
Sure, you can do that by writing an expression for the same in Views and Action Security.
In the expression for Retire Asset Related action, check if the current record is one of the record that you are showing on My Asset page.
example:
or( rv!record[isMyAssetField] )
Do the same thing for Request Asset Related action security.
Thanks, I was able to work around my way by using one of the record variables.