cancel
Showing results for 
Search instead for 
Did you mean: 

reg data retrieval

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi

right now server is down,I will let You know.

Thanks for the reply.

Thanks

Prajakta

Former Member
0 Kudos

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