cancel
Showing results for 
Search instead for 
Did you mean: 

selectively disabling cells in a table in wd4a

Former Member
0 Kudos

Hi All,

I want to disable some of the cells in a table based on some conditions.How can i do the same disabeling a full colum is easy by binding the visibility property , but how to do it for a cell ?

Thanks & Regards

Gaurav Jain

Accepted Solutions (1)

Accepted Solutions (1)

baskaran00
Active Participant
0 Kudos

Hi Gaurav Jain,

You can do disabe at cell level.

To do u have add a cell variant to ur table column properties and bind a attribute to enable/disable property of ur table column.

To do this uncheck 'Initialization Lead selection' property from ur context node which u will bind with ur table control.

Pls follow below steps:

1. select Table column properties of a cell u want disable/enable - specify a text(example: Test) in SelectedCellVariant property.

2.Create a CellVariant of type TableSingleMarkableCell.

3.Set below properties for CellVariant

1.attributtomark - select a attribute from ur context node to which u want to do enable/disable

2.celldesign - u should create a attribue in ur table control context node of type 'WDUI_TABLE_CELL_DESIGN'

3.markeddata - create a attribute of type 'WDR_EXT_ATTRIBUTE_POINTER'. This can be created as a single attribute.

4.variantkey - Test(u have given this in Table col. properties)

Now u can do validation.

if u want to enable a cell with color , update value to ur celldesign as

<celldesignattribute> = cl_wd_table_column=>e_cell_design-negative.

<cellreadonly >= ' '."X for disable.

Hope u get an idea.

Thanks...

Answers (0)