Hello
How to define the button widget with roles to appear or disappear in the screen With Reactive app.?
Normally , it has to define "Check<role>" built in function.
In REACTIVE app it shows only Getuserid().please see pic no3.
pic1
For username jinji,there is no role and can not see the restricted button.
pic2
For this username Manager,it can see all buttons
pic3
Thanks ahaed.
Create a data action and use output varible as Boolean on screen and check role here like below image-
And use this action on button widget or use IF statement to show or Hide Button.
Hope this will help you.
Regards
Rahul Sahu
Rahul Sahu wrote:
Hello Rahul Sahu
Thank you for the reply .Thank you for the solution.
The Difference between us is as follow. i dont know Why i have "Role Id " in this and how to solve?
I made dependices "user role entity "from system to create the user and its role in the screen.
Thanks ahead.
Hi EiMon,
A second option is to use the Javascript API if you want to check the role on the client side.
Hope this helps.
Regards,
Nordin
Nordin Ahdi wrote:
Hello Nordin
This is also the great way.If so , do i have to write the js in the screen action proeptey? i am not clear.it would be helpful if there is extra info.
Thank you ahead.
Eimon
You can javascript action on page event "OnInitialize" like below screen
use this output to hold in local variable and use this on IF widget or Button visible property.
Rahul sahu
Thank you so so much!
Rahul sahu.
I have attached a small sample OML to complement Rahul's explanation.
Thank you so much Nordin .
I am keep going on the learning path.
Thanks @Nordin,
Rahul
You're welcome EiMon and Rahul