Skip to Content

Mask field values based on authorizations

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Feb 01, 2012 at 10:19 AM

    Hi,

    Any views please?

    Best Regards,

    Preethi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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,

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.