cancel
Showing results for 
Search instead for 
Did you mean: 

cancel the navigation

Former Member
0 Kudos

Hello everybody,

I have 3 Views:

1) Navigation-View with 2 Buttons to jump from View 2 to View 3 (This view is permanent visible)

2) View_2

3) View_3

If the user is on view 2 and clicks on Button "view_3" I have a to do some checks for the values in view 2. If an error occurs, I dont want to navigate to view_3.

How can I cancel the navigation?

Thanks a lot, Regards Mario

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

HI,

In view 2 , put condition that where ever you are expecting an error, throw an error message and fire plug to intial view (view1),

if the functionality works the way you intended just fire an action to view 3

judgement depends on your requirement/functionality

Hope this helped you

Regards,

RK

Former Member
0 Kudos

Hi Mario,

If an error occurs do not fire the plug to the target view otherwise fire it.

If you need still further information kindly let us know.

Thanks and regards

RK

Yashpal
Active Contributor
0 Kudos

Hi ,

if some condition are not met u can raise exception .....in which u can set message and also cancel the navigation .........

wdComponentAPI.getMessageManager().raiseException()

Regards,

Yash