cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Tables

Former Member
0 Kudos

Hello Everyone:

I will do a Dynpro Application for use Dynpro table. I will search some data form BAPI, But when bind this data in table,the some Row is merge .who can tell me some example about this question .Thanks !

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jiang,

Are you trying to say that when you are trying to retrieve a table data from bapi then you are getting same values for all the rows? Correct me if I am wrong!

So, to get the elements from bapi table node under the model node using code similar to mentioned below and set it to your context node bound to the table:

String val = "";

IPrivate<YourView>.I<TableNode>Element tabEle = null;

wdContext.node<TableNode>().invalidate();

for(int i=0;i<wdContext.node<YourModelNode>().node<OutputNode>().node<BapiTableNode>.size();i++){

val = wdContext.node<YourModelNode>().node<OutputNode>().node<BapiTableNode>().get<BapiTableNode>ElementAt(i).get<TableColumnAttribute>();

tabEle = wdContext.create<TableNode>Element();

tabEle.set<ColumnAttribute>(val);

wdContext.node<TableNode>().addElement(tabEle);

}

Regards,

Tushar Sinha

Former Member
0 Kudos

Hi

When Search the data form BAPI. I will bing this data in the table .but in one row I need merge cells when this row's data is same.

Former Member
0 Kudos

Hi,

bind the groupingValue property of table column with the same context attribute with which you have binded your column editor text property. It will take care of your cell grouping.

Regards

Pranav

Former Member
0 Kudos

Hi Jiang,

Yes then for grouping same data together for rows in a column would be fine with binding of groupingValue property of the column with the table node's attribute to which the text/value property of tableCellEditor for the same column as suggested by Pranav.

Regards,

Tushar Sinha

Former Member
0 Kudos

Thank you very much!

I solven that question Through your pointing

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I did not get your question very clearly. Can u please explain a bit more. Please elaborate the exact situation.

Former Member
0 Kudos

Hello Himanshu K

In the table,I will merge cells in the Table. but the merge is Dynamic.the data all form BAPI in Table.