on 2025 Feb 19 8:07 AM
Hello Community,
Is it possible to hide actions completely instead of just deactivating them?
In my use case, a user should not even see the actions if he does not have the required role.
In my case, I have an inline action:
@ui.lineItem: [
{
type:#FOR_ACTION,
label: 'Edit request',
dataAction: 'edit request',
inline: true,
emphasized: true,
importance: #HIGH,
position: 100,
hidden: #( VisibilityAction )
}
]
If I use hidden: true it works and the action is hidden. But with a virtual element and hidden: #( VisibilityAction ) it does not work.
Maybe someone here knows more
regards,
Lars
Request clarification before answering.
One option is to create an App Variant using UI adaptation and hide the button. You can then assign the variant app to a specific role.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
53 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.