cancel
Showing results for 
Search instead for 
Did you mean: 

Mandatory fields

Former Member
0 Kudos

Gudday,

I need to mark a asterisk(*) adjacent to the mandatory fields in my WDA iview.

Can anyone suggest me how can we do it??

Awaiting your reply.

Thanks,

Deepthi.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi martina........

for each and every ui element you have a roperty called required... you can make use of that and also you can make use of the method check_mandatory_attributes in cl_wd_dynamic_tool to check whether fields have been filled and display them in red if not so.

---regards,

alex b justin

Former Member
0 Kudos

Gudday,

Can you Please tell me how should i use that method check_mandatory_attributes in cl_wd_dynamic_tool,

means what are the parameters i should pass...a piece of code?

It is not checking whether the field is mandatory or not if it is marked as required....so i want to use this method.

Awaiting your reply.

Thanks,

Deepthi.

Former Member
0 Kudos

hi martina...

use CHECK_MANDATORY_ATTR_ON_VIEW

you can call this method and pass the view name and check it.

---regards,

alex b justin

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can try this.

Put this source in action button (Save).

DATA:

lo_view_controller TYPE REF TO if_wd_view_controller,

msg_tab TYPE cl_wd_dynamic_tool=>t_check_result_message_tab.

lo_view_controller = wd_this->wd_get_api( ).

cl_wd_dynamic_tool=>check_mandatory_attr_on_view(

EXPORTING

view_controller = lo_view_controller

IMPORTING

messages = msg_tab ).