cancel
Showing results for 
Search instead for 
Did you mean: 

UME Logon User ID Validity check and Year Format

praveenkumar_kadi
Active Contributor
0 Kudos

Hi

I have two issues:-

1. How to validate a given UME user ID is valid or not ?

(For ex: If Use abc123, It should check it's valid or not against UME before calling getUserByUniqueName(abc123) below?. In this case abc123 is invalid, is there any boolean return value to check UME API's.)

We know that second line below throws UM Exception. but I want to validate before throwing it. Is there any boolean value to check here. Please help

If( "abc123". isvalid?)

IUserFactory userFact = UMFactory.getUserFactory();

IUser ID = userFact.getUserByUniqueName(abc123);

2. I need to input a year (for ex:2000) on enter it generates 2001, 2002, 2003 etc on other fields.

If I use Integer, it generates like 2,001 2, 002 2,003 etc with "," comma in between. It should be removed.

Please let me know how do i it in plain format using any other type or customizing Integer value entered above?

Thanks in advance

Praveen

Accepted Solutions (0)

Answers (2)

Answers (2)

praveenkumar_kadi
Active Contributor
0 Kudos

Solved

former_member185086
Active Contributor
0 Kudos

Hi

1 . For this case retrive the currently logged in user and check it with existing database, you itself can create a boolean return type and use it

[Help|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/297f35cf-0201-0010-00b2-fe2f3e23d360?quicklink=index&overridelayout=true]

2. Comma can not be removed from integer format , better to deal with String type, as you said after first input other will be generated so internally do the coding , later just display it to end user.

Best Regards

Satish Kumar