You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How do i use roles as conditionals in a Field of an Entity

Summary:

We have this Entity and inside there is an specific field that we need to be updatable if a user has a specific role and not updatable if a user doesnt have the specific role, i found how to do it based on the name or displayName of the user thats currently using the system but not the role that the user have.


Here is a screenshot of what i found doing it with the name or displayName but there isnt a role:

This is the code that the function is throwing: adf.context.getSecurityContext()?.getUserProfile()?.getDisplayName() or adf.context.getSecurityContext()?.getUserProfile()?.getFirstName()

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!