cancel
Showing results for 
Search instead for 
Did you mean: 

calling a view in a method of comp.controller.

Former Member
0 Kudos

Hi experts,

I have many views in my wd component. I want to check the mandatory fields in a specific view , which is a part of tabstrip.

I wrote code for the validation in the onactiontab,but the thing is it is getting displayed in the next tab.

My requirement is to display that msg in the same tab itself.

I thought that it can be done in the component controller method beforenavigation.

but the thing is how can i make the method to process only when that view is triggered.

Regards...

Arun.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Arun,

When you call REPORT_ERROR_MESSAGE of IF_WD_MESSAGE_MANAGER make sure you pass cancel_navigation = 'X'.

I have not tried this but hope his works.

Regards,

Neha

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi

You can always check if MessageManager consists error or not

You can create an attribute and maintain the current visible tab and

in WDDOMODIFYVIEW method just check if message manager consists error then make the current tab to your stored attribute value.

Regards

Abhimanyu L