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??
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