cancel
Showing results for 
Search instead for 
Did you mean: 

How to edit the User Profile webdynpro application in Personalization

Former Member
0 Kudos

Hi All,

I need to edit the User Profile application in Portal,which is available in Personalize option. Here are the things need to do on the application

I need to disable the email address option.

or

when user enters the mail id which is not in the domain like

our company domain is user@abc.com, when the user enters mail id like user@gmail.com, it should not allow user to save the mail.

How to control this. As I know this can controled in the webdynpro application. where to get that application.

If anyone have an idea please help me.

Thanks in advance.

Regards

Ponnusamy P

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can use the following code to validate the email ID:

static final String expression = "(
s|>|^)(?!(:|www
.|
.))[A-Za-z0-9_.-]@([A-Za-z0-9_-]
.)+[A-Za-z]{2,4}(
s|
W|_|<|$)";

public boolean validateEmailId( java.lang.String emailId )

{

//@@begin validateEmailId()

java.util.regex.Pattern pattern;

String value = null;

boolean isValid = false;

try {

value = emailId.toString();

pattern = java.util.regex.Pattern.compile(expression);

isValid = pattern.matcher(value).matches();

} catch (Exception e) {

}

return isValid;

//@@end

}

Now if this method returns false then display a message to the user that "Please enter a valid Email ID" else allow the user to save the data.

Hope this will solve your problem.

thanks & regards,

Manoj

Former Member
0 Kudos

Hi Manoj,

Thanks for your response.

I know how to validate the id.

First I want to find the application and open it in NWDS.

Can u tel me where that webdynpro application is located and how to open in NWDS.

Thanks Again

Regards

Ponnusamy P

Former Member
0 Kudos

Hi,

It'll be an iview and not a webdynpro. A good starting point would be to look at com.sap.portal.navigation.masthead.

Thanks,

Rajit

Former Member
0 Kudos

Hi Rajit Srinivas,

Thanks for your reply.

I have checked it is a webdynpro application. I dont know how to import that application into NWDS.

Try to create a webdynpro iview and u can see the apllication under sap.com/tcsecumewdenduser.

Thanks Again

Ponnusamy P

Former Member
0 Kudos

Hi,

If you're sure sap.com/tcsecumewdenduser is the right webdynpro application, then you can try the following.

I'm sure source for this webdynpro is not available so only way for you is to hack it.

Give me your mail id and i'll send you the procedure.

Thanks,

Rajit

Former Member
0 Kudos

Hi Rajit Srinivas ,

You can find my mail id in my business card or profile.

Thanks

Ponnusamy P

Former Member
0 Kudos

Hi,

Mailed you what has to be done.

Its best to raise an OSS note and take SAP's help, if you ask me, unless you find source code for it.

Regards,

Rajit