cancel
Showing results for 
Search instead for 
Did you mean: 

How to impose client/server side validations in Web dynpro java application

Former Member
0 Kudos

Dear All,

I want to run some validations while saving data through form and while user add data in forms. Can it possible that the all validation messages shows in a popup dialog/window when i submit the view to save data. plz help.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

thks all

former_member185086
Active Contributor
0 Kudos

Hi

Apart from the previous reply ,Optimum solution for this is create a dedicated view and window ,define one method in Component Controller with String and IWDWindow parameter (which take care of LifeSpan of dialog window and Messages including validation feild) and called it throughout the component.So just pass the validation message which will change in each case remaining things will same

[For further help|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/903fed0d-7be4-2a10-cd96-9136707374e1]

Best Regards

Satish Kumar

Former Member
0 Kudos

Hi,

it's possible for you to validate the field after entering values and before submition of form.

Even you can open one exrternal window with the help of IWDWindow and pass error parameter which you can display.

IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);

window.setWindowPosition (300, 150);

window.show();

In Web Dynpro java you can validate the field viause node's attirbure value attached to it and display error msg using MessageManager and you can use message pool too.

You can use this link for more help:-http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20d2def3-f0ec-2a10-6b80-877a71eccb68&overridelayout=true

Deepak!!!