cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a simple validation.

Former Member
0 Kudos

Dear expert,

I have a question on adding a simple validation on essusbank dynpro. We imported the package to our nwdi. What we want to do add a validation when the user click on the "review" button. When we look at the layout of the application. We can't find any review button. My question is how can i add a validation when user click on the review button.

Thanks.

Regards,

Bryan

Accepted Solutions (1)

Accepted Solutions (1)

yogesh_galphade
Contributor
0 Kudos

Dear Brian

Please check for the Action called on Review button there you can write your custom code for validations.

Former Member
0 Kudos

Hi Yogesh,

Thanks Yogesh, but I can't see any review button on the view. How can i find the action? Do you mind to let me know details?

Thanks.

Regards,

Bryan

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

As per my knowledge you need to write your validation related coding in the method onBeforeOutput method in detail VAC,

may be this can help u,

Former Member
0 Kudos

Hi Brian,

Please see my reply that i have posted.Basically in the ESS package the edit,review and save button are coming from a general DC. SO you can't do any action against any of the button bacause it'll effect all other country DC.

So as i mentioned before in coding , you try this and it will resolve your problem.

I was also facing the same problem and rhis approach resolve my problem.

Let me know if you have any concern

Thanks

Kanai

Former Member
0 Kudos

Thanks everyone for the reply..........

I did the validation in the on event and it works now..

Regards,

Bryan

Former Member
0 Kudos

Hi,

You have the detail component for address name VcPerBankUSDetail.

Go to component controller and write the following code inside the function onFlush.

You can see the line wdThis.wdGetFcPerBankXXInterface().modifyRecord(); below of this function.

public void onFlush( )

{

-


-


//suppose am validating the payee field as it will not be blank

String payee=wdContext.currentSelectedInfotypeElement().getEmftx();

if (payee== null || payee.equals("")){

wdComponentAPI.getMessageManager().reportException("Payee cannot be blank");

}

else

wdThis.wdGetFcPerBankXXInterface().modifyRecord();

}

Hope this will resolve your problem

Thanks

Kanai