cancel
Showing results for 
Search instead for 
Did you mean: 

Mask field values based on authorizations

preethi_santhanam
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

preethi_santhanam
Participant
0 Kudos

Hi,

Any views please?

Best Regards,

Preethi

Former Member
0 Kudos

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,