Can Javascript be of help in decision making here??
Hi
I am not too good in JavaScript and would like to take the help of experts.
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.
Can Javascript be of help?
How do I write IF conditions in Javascript and set the property of web items to hidden or display?
Let me know if you have any ideas or need more information
Cheers
Sri
Former Member replied
Hi Sri,
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.
How to read the value of a TEXT_ITEM with javascript in WAD
Thanks
Dipika