cancel
Showing results for 
Search instead for 
Did you mean: 

Check Mandantory fields on view only in event cl_fpm_event=>gc_event_save

daniel_rothmund
Participant
0 Kudos

Hello ,

I have a problem with the check of mandantory fields.

In the method WDDOBEFOREACTION of my view i have the check for mandantory fields ( cl_wd_dynamic_tool=>check_mandatory_attr_on_view) but on all action the method is called.

But I only want an the event gc_event_save the check for mandantory fields. How can capture the event of the fpm in view ?

Or any other ideas ?

Thanks

regards

daniel

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Daniel,

As the name suggest WDDOBEFOREACTION method will get called after each action you perform on any view.

Solution Steps:

1 Create a event in component controller.

2. while saving the data (Save Method) fire this event.

3. Create a event handler on each view to handle the this event fired when u r saving the data.

4. Call method cl_wd_dynamic_tool=>check_mandatory_attr_on_view on this event.

Now this method will be called only when SAVE method will get called.

Hope this will help you.

Thaks & Regards,

Arvind