I have an web template, which should show certain web items when a particular user is logged in.
Is it possible?
My web template has 4 drop downs A,B,C and D
and one Analysis Item.
Suppose there are two types of users, Admins and normal users.
Portal sends the type of user url parameterization,
If Admin type user executes the report from portal - only dropdowns A and B should be displayed.
If normal user executes the report - only dropdowns C and D should be available.
When both values are selected, the Analysis item executes for the selected values and gets displayed.
I could manage the second half with cascading dropdowns, but not sure how I can hide or display depending on the type of user who executes the report.
Let me know if you have any ideas or need more information
Dipika Tyagi replied
Its possible through JS Code, to hide & unhide the object's for different user's.
We can access the web item's property through JS and set it there to show or not to show.
please check the below code to have an Idea about accessing the Values of web item in JS.