Skip to Content
author's profile photo Former Member
Former Member

How to mask the characters in WEB UI

Hi Gurus,

I am new to SAP CRM. i have to mask first 5 characters of EmpID with * in WEB UI. Rest of the characters should be printed as they are. How this can be acheived?

Regards,

Amey

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jul 13, 2011 at 09:08 AM

    HI

    Generate the get set methods for the empid node.

    In the get method, there is a parameters called "value". you can modify this i.e. replace the first 5 characters with "*".

    If you do not want to modify the original empid field you could follow the steps below.

    Create a new attribute on your context node.

    Generate the get and set methods

    In the get method of your new attribute get the original employee id and mask the first 5 characters with '*".

    Assign this value to the value attribute in the method.

    Modify your ui configuration to display the new empid node instead of the original.

    Darren

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 20, 2011 at 04:35 AM

    Thank you all 😊

    Add a comment
    10|10000 characters needed characters exceeded

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.