cancel
Showing results for 
Search instead for 
Did you mean: 

Design Table Cell Editor at Runtime

Former Member
0 Kudos

Dear All,

I am working with table ui element. i got Problem in Two Scenarios .

First one is, the data coming from backend that i am displaying in the table. in table one Column the Table Cell Editor is DDBI. i binded that with one context attribute. if for example there is 3 records in the Table, if select the one value from DDBI in one row. after that if i select one value from the DDBI in next row, the selected value is reflected in the first roe DDBI also. and also while data saving it is saving only wat value we selected at last.

Second one is, in one column in a Table based on the data coming from backend i need to change the Table Cell Editor Dynamiclly.(either it is a Input Field or it is DDBK).

Please any one can help.

Accepted Solutions (1)

Accepted Solutions (1)

PradeepBondla
Active Contributor
0 Kudos

Hi,

for the first problem.... I have faced similar one with DDBK some months back.... and its solved.... check this

for second one... do you have any condition when to take input filed and when to take DDBI??

if yes, in your dynamic table depending on your condition create the table cell editors as you want.

PradeeP

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

To change TableCellEditor dynamically, use table CellVariants

Refer this link

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/using%2btable%2bcell%2bvariants%2bin%2bnw%...

Regards

LN

Former Member
0 Kudos

Hi,

To change TableCellEditor dynamically, use table cellvariants..

refer https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/using%2btable%2bcell%2bvariants%2bin%2bnw%...

Regards

LN

Former Member
0 Kudos

Ad 1: The attribute to which the "selectedKey" property is bound must live under the table data source node.

Ad 2: Use table cell variants to have different cell editors in one column.

Armin