on 07-30-2008 5:49 PM
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
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.