cancel
Showing results for 
Search instead for 
Did you mean: 

Mandatory field in table control

Former Member
0 Kudos

Hi

I am entering some values in table control in my WD4A application and saving it.

I want all the column to be mandatory fields. How we can do it.

I dont want to check each and every column for its emptyness.

Regards

Vishal kapoor

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Vishal,

It is quite simple! You can change the property 'state' of your Input field (cell editor in the column) to 'required' (instead of noraml item).

However, the WD framework does not check this automatically. You need to call the cl_wd_dynamic_tool=>check_mandatory_attributes method. You can refer to note 948753 for further information.

Regards,

Neha

Former Member
0 Kudos

You can also refer to component WDR_TEST_MANDATORY

Former Member
0 Kudos

Hi Neha

Table control fields dont have this property.

Regards

Vishal

Former Member
0 Kudos

Hi neha

I got it ! it is there. come of my col are of text view so it was not there. silly mistake by me.

Thanks for your help.

Answers (1)

Answers (1)

Former Member
0 Kudos

I'm afraid there is no other option.

the option Mandatory isn't available, so you have to build the checks yourself.

Regards,

Jos