on 11-05-2007 9:00 AM
Hi
In my application When I login through portal ,one page gets displayed having certain links.
When I clicked on one of the links it opens webdynpro view having some inputfields along with the default data of the customer who has logged in.
e.g . custID ,address,name of the cust.
Is it possible ? How to do that?
I am new to webdynpro.Please reply in detail
Thanks
Prajakta
After getting the details of the customer from the web-service, you can easily display them in the input fields as default values.
You can call the getLogedInUser method in wdDoInit(), get the customerId and pass it to the web-service which will give you all the details.
thanks & regards,
Manoj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
You can retrieve the Login Id of the customer from the portal login page using the following code:
public java.lang.String getLogedInUser( )
{
//@@begin getLogedInUser()
try {
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
if (user != null)
{
IUserAccount[] acct = user.getUserAccounts();
if(acct[0] != null)
{
userName = acct[0].getLogonUid();
}
}
}catch(Exception e){
e.printStackTrace();
}
return userName;
//@@end
}
Then you can have a web-service method which can take this LoginId (i.e custID) and return all the info related for this Customer from the backend.
Hope this will help you
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.