cancel
Showing results for 
Search instead for 
Did you mean: 

How to set readonly property true only for some rows in a table.

Former Member
0 Kudos

Dear Experts,

I have a table in which I have a column which is a input field,

now i want this input field to be readonly for some rows only .

Please suggest.

Warm Regards

Upendra Agrawal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Add a boolean attribute "readOnly" to your context:


Context
+ Rows (node, c=0:n, data source for table)
   + value (string)
   + readOnly (boolean)

Bind the "readOnly" property of the input field cell editor to the "readOnly" context attribute. Then all input fields will be read-only where in the corresponding context element the attribute "readOnly" has value "true".

Armin

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Use two cell variant(TableStandardCell) for the column and insert cell editor as inputField. Create two attribute for the variant key and map it to the variantKey property for both the cell variant.

On wdDoInit() or any action choose which variant use want to use for the column by setting the selectedCellVariant property for the table column (again using an attribute).

Hope it helps.

Cheers,

Manoj