on 05-26-2010 11:13 AM
Hi
I have to display the current logged in User of the Mobile client in my application. I think I have to use the User and UserManager API for that. But the thing is I am not able to instantiate the class to use the methods in it.I think I have to create a session object for using these classes, but in Session API I can see that I will have to create a new session and I want to use the current session.
Please tell me how to use these APIs and get the instance of User or UserManager.
Regards,
Priya
try using OCARoot.getInstance() to get the user details.
Regards,
Nipun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Priya,
You can try with:
User user = UserManager.getInstance().getCurrentUser();
The User interface has methods to get relevant information (for ie. getName() or getFirstName()), take a look on the [javadocs|http://help.sap.com/javadocs/nwmobile/SP3/laptops/com/sap/ip/me/api/user/User.html]
Best Regards,
Simon.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.