cancel
Showing results for 
Search instead for 
Did you mean: 

Rows

Former Member
0 Kudos

Hi, i want to know if its possible to enable or to disable a single row in a table within a view.

If its possible, please tell me how?

Thanks and Regards.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

Hi Joaquin,

you can try to use following approach as workaround:

1) Create in node value attribute with type boolean (valid)

2) in wdDoModifyView add code:


final IWDTable table   = (IWDTable)view.getElement("tableName");
final IWDTableColumn[] columns = table.getColumns();
    	
for (int i = 0; i < columns.length; i++)
{
	final IWDTableColumn column = columns[ i ];
	((IWDUIElement)column.getTableCellEditor()).bindEnabled("node.valid");
}

3) Set node.valid to appropriate value.

regards Maxim R.

Former Member
0 Kudos

Additional remark: No need to do this programmatically, you can also define the data binding in the view designer.

Armin

former_member182372
Active Contributor
0 Kudos

Hi Armin,

yes, you are right, but it is more general and easy for large quantity of columns and dynamic created columns to use "programmatically" approach.

Regards Maxim R.