Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

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

Former Member
Former Member replied

You may refer [this|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/837d9290-0201-0010-1381-e633fe17cb14] tutorial. All please read the [IWDMessageManager|https://media.sdn.sap.com/html/submitted_docs/60_sp2_javadocs/webdynpro/com/sap/tc/webdynpro/progmodel/api/IWDMessageManager.html] API.

Bala

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question