Skip to Content

How to display user's information iby accing DB in Web dynpro

I have taken a bean class where i have deifined SearchUser() method in which i am retriving the user's information from sql server.I am imporintng this bean class to Web dynpro application.In my web dynpro application i have taken ResultView where i want to display the user's informatin.In the Result view i have written,

public void onPlugFromMyProfileCompView(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onPlugFromMyProfileCompView(ServerEvent)

IWDMessageManager msgMgr=wdComponentAPI.getMessageManager();

try

{

wdContext.currentMyProfileBeanElement().modelObject().SearchUser();

wdContext.currentMyProfileBeanElement().modelObject().getEmpId();

//msgMgr.reportSuccess("Congratulations,User Added to the Database tables..inside try");

}

catch(Exception e)

{

msgMgr.reportSuccess("Congratulations,User Id is not exist in the Database tables...Caught by exception");

msgMgr.reportException(e.getLocalizedMessage(),true);

}

But while running my application its not showing the user's information in the result view..

Can you plesae tell me how i will display the information in webdynpro?Is there any another way??

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 05:36 AM

    Hi Susmita,

    You can print the message using IWDMessageManager api i.e.,

    IWDMessageManager msgMgr=wdComponentAPI.getMessageManager();

    msgMgr.reportSuccess("Congratulations,User Added to the Database tables..inside try");

    <b>

    What ever you have done is correct. </b>

    You have given the <b>comment to reportSuccess messge in try block try by uncommenting it.</b>.

    Regards,

    Jhansi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 05:47 AM

    hi,

    check out this capture-portal-user-id-in-web-dynpro-application

    Regards,

    gopi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.