on 10-21-2008 3:20 AM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dipika
I tried to get the value of text item, but it is not returning the value.
suppose I have text item value as Sri
my variable in JavaScript should get that value.
However I understood how to set the properties dynamically but just a condition is missing.
Now all I need is, get the text item or dropdown item or any web item value to a variable in JavaScript
I can then apply that variable as a toggling variable and switch the display properties.
Thanks
Sri
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can you assign different roles for different users ? If that can be done, you can have 2 queries on the same Dat Provider with different DropDowns (A&B and C&D). Give the Admin User one role and the Normal User another role.
I think this is easier, but depends on your requirement. Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.