on 12-28-2005 6:45 AM
hi every one,
i am inserting some data into the fields and selecting the button to insert.
but it is inserting even fields are empty..
i want to display "so and so field is empty.. please enter"
it should display a box and return if u press ok.
how to do this
hai arun,
is there no message box to display the information in the webdynpro...instead creating another view again...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi sunil,
try this code inside the condition u r checking for getting the dialog box.
If(//condition for fields that r empty )
IWDControllerInfo controllerInfo =
wdControllerAPI.getViewInfo().getViewController();
String dialogText = "The Field is Empty";
IWDConfirmationDialog dialog =
wdComponentAPI.getWindowManager().createConfirmationWindow(dialogText,controllerInfo.findInEventHandlers("ok"),
"ok");
dialog.open();
This should help u,
Regards,
Nagarajan.
Hi,
I think this code will help you.
public void onActionAddressSelected(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionAddressSelected(ServerEvent)
String dialogText = "Would you like to fetch this EmaiId ?";
IWDConfirmationDialog dialog = wdThis.wdGetLoginController().wdGetAPI().getWindowManager().createConfirmationWindow(dialogText,wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("Yes"),"Yes");
dialog.addChoice(wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("Cancel"),"Cancel");
//dialog.addChoice(eventHandler,"OK");
dialog.setWindowPosition(WDWindowPos.CENTER);
dialog.open();
//wdThis.wdGetLoginComponentController().fireAddressSelectedEvent();
//@@end
}
Regards,
Karthick
Hi,
please refer to <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/837d9290-0201">Error handling and validation message</a> tutorial.
Ashutosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sunil,
Check with this link it deals with the dialog box
to show some warnings and a button in the dialog box to
close it. Open this box according to ur condition.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tu... on creating dialog boxes - 10.htm
Regards,
Vijayakhanna Raman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hai sunil,
For displaying message in view at desired place u can use message area and u san align to any position by changing its property.For showing error message in box in same view u have pass value to another window(ex.popup r confirmation dialog) where u validate ur code this is only possible and use button ok for return back to main view . u cannot show error message in a box when u valid it first view.
hope this helps u,
Regards,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
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.