on 08-13-2010 7:57 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.