cancel
Showing results for 
Search instead for 
Did you mean: 

POPUP window after OVS selection

0 Kudos

Hi experts,

After selecting an entry in an OVS I need to do a check with the selected value.

To do this, in the custom controller I create a class that implements IWDOVSContextNotificationListener and do my check in the method applyResult.

In case the check fails, I would like to:

1 - prompt an error message in a modal dialog and

2- navigate to another view.

How can I achieve this ?

thanks in advance

Filippo

Accepted Solutions (1)

Accepted Solutions (1)

former_member191044
Active Contributor
0 Kudos

You could set an onChange event on your input field. There you could check the value and open a popup / navigate to another view. I would not do that in the applyResult. I assume you know how to create popups and do navigation in wd4j.

Regards,

Tobias

0 Kudos

Hi Tobias,

thanks for your kind replay.

The input field is not editable: it gets filled by the ovs.

I was thinking about using the method wdDoBeforeNavigation in the component controller.

What do you think ?

Filippo

former_member191044
Active Contributor
0 Kudos

Hi Filippo,

your OVS has to be bound to a InputField and the value changes when you apply your OVS-Result. So then the onChange of the InputField should be triggered and you could do your checks there. Haven't tryed it but i think it should work this way. Maybe just give it a try,

Regards,

Tobias

0 Kudos

Hi Tobias,

it worked !!!

thanks so much

Filippo

former_member191044
Active Contributor
0 Kudos

You're welcome. I'm glad i could help.

Answers (0)