cancel
Showing results for 
Search instead for 
Did you mean: 

Table Input field validation

Former Member
0 Kudos

Hi Experts

I have an OIF Application in which I have an Input enabled table and it is mandatory to enter the date range fields. When the user clicks 'SAVE', I have to validate if the start and end dates are entered in each record, and give an error message if blank. I wanted to know if I have to loop through each record and validate manually or if there is a better way?

Thanks

Neo

Accepted Solutions (0)

Answers (1)

Answers (1)

saravanan_narayanan
Active Contributor
0 Kudos

Hello Neo,

you can use the utility method CL_WD_DYNAMIC_TOOL=>CHECK_MANDATORY_ATTR_ON_VIEW to check for the mandatory attributes.

For this you need to set the STATE property of the inputfield (in the table column) to REQUIRED.

BR, Saravanan