Skip to Content
0
Former Member
Sep 05, 2008 at 04:27 AM

How occur error messages when don't type data in required inputfield?

21 Views

Hi, experts,

I create 6 inputfields in the view(main_view) in Webdynpro for java application.

I have set 5 inputfield to required state, and I can see red "*" beside left in these 5 inputfields.

My problem is:

I need occur 5 error messages in the page if I don't type data in these required inputfields when I click a button to other page.

I need use the following code in Webdynpro for abap for resoling, But I don't know how to do the same thing in Webdynpro for java.

cl_wd_dynamic_tool=>check_mandatory_attr_on_view(

EXPORTING

view_controller = wd_this->m_view

display_messages = abap_true

IMPORTING

messages = messages

).

How can I do it? Do you give me some hint?

Thanks a lot.

Best regards,

tao