on 08-04-2008 4:17 PM
Hi, is there a method or and option to handle required fields in WD4A before and action, without having to get the node context and check all the required attributes manually.
I can see that when using the component usage for select options, when you click on search, it does that kind of validation, it blocks you until you complete the required fields,
thanks
Alex
Yes there is an SAP supplied ultility class that will check for required fields for you. cl_wd_dynamic_tool=>check_mandatory_attr_on_view. Call this from the WDDOBEFOREACTION.
data l_view_controller type ref to if_wd_view_controller.
l_view_controller = wd_this->wd_get_api( ).
cl_wd_dynamic_tool=>check_mandatory_attr_on_view( view_controller = l_view_controller ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.