cancel
Showing results for 
Search instead for 
Did you mean: 

Agentry Client Login Information

Former Member
0 Kudos

Hi,

We are working on SMP 3.0 for Agentry application development. We want to set two properties (user_id and user_password) under main object according to the user's client authentication information. We can not use SDML tags because our backend system connection is JAVA. Is there any way to get and use the login information on Agentry ?

Best Regards,
Serkan DEMIR

Accepted Solutions (0)

Answers (1)

Answers (1)

jason_latko
Active Contributor
0 Kudos

Serkan,

You can use SDML in Java.  The com.syclo.sap.User class has an eval method that allows this.  For example, if you wanted to retrieve the user's client language, you could do:

String lang = User.eval("<<user.client.Language>>"); 

Other tags that might work are <<id>> and <<password>>.  Those are the tags I found in old SQL scripts.

You can use the System function USERID from a rule to get the userid on the client.  The password is also kept in the java user object in a protected variable called _password.  You may need to change the visibility of this variable to public so you can access it freely.  I would then bring this down in a fetch or a CT or DT so you can access it from the client.  Make sure you keep your editor application encrypted so the password cannot be hacked.

Jason Latko - Senior Product Developer at SAP

Former Member
0 Kudos

The <<password>> SDML will only work during Login screens.

If you are tryng to bring in the password for "E-sig" on the client there is a type called "Password Validation" which will have the user enter in the password and the client will compare it to the saved password.  This field should also be masked so the password isn't seen.

But there the username, there is a Rule function under "System" called "USERID" which will return the current users ID.

Stephen