on 01-26-2012 10:41 AM
Hi,
I have a requirement that values in certain fields could be viewed only by users with a particular authorization. I check for the authorization in web dynpro, and update a field on form if user has authorization. Using javascript,
I could use field.rawValue = '**' , but that stores the value of the field as '**' in db tables. I can't use the password field element from library as that will always display masked values.
Could you please suggest something to get this done?
Best Regards,
Preethi.
Hi,
Any views please?
Best Regards,
Preethi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Instead of displaying the value of the field straight away you should declare another variable which is to be used to show data on the forms.
First check the authorisation of the user, then if the user is authorised to see the data pass the value from databaseField in the field(that is being shown in the form) else pass a '***' or whatever you want to show as hidden. In the manner the actual database field value still remains unchanged.
Hope this helps.
Rgds,
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.