cancel
Showing results for 
Search instead for 
Did you mean: 

Validation of input fields on Click of button

ChandraMahajan
Active Contributor
0 Kudos

Hello All,

in my WD application, i have few input fields and i made the state as 'required'. now on click of button i want to validate input fields so that no blank value can be passed.

rightnow using message managers method i am able to set error message for one input field. but is there any way to show error that all required fields need to have value.

please let me know.

Regards,

Chandra

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi Chandrashekhar,

in the event handler, you can use the following code

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 ).

Regards

Abhimanyu L

Message was edited by:

Abhimanyu Lagishetti

ChandraMahajan
Active Contributor
0 Kudos

Thanks Abhimanyu,

the problem get solved!!!!!

Answers (0)