on 11-25-2009 3:03 PM
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 !
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I did not get your question very clearly. Can u please explain a bit more. Please elaborate the exact situation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.