on 01-11-2006 10:08 AM
I have a Webservice who returns two one-dimensional arrays. I want to know how to fill one table with these arrays. And how to get this data displayed in an two dimensional scatter-chart as x and y Values.
Create a context node "Rows", cardinality 0:N, add attributes A, B (type as needed e.g. "string").
Fill the node with the content of your arrays array1, array2 (assuming both arrays have same length):
for (int j = 0; j < array1.length; ++j)
{
IRowElement row = wdContext.nodeRows().createRowsElement();
wdContext.nodeRows().addElement(row);
row.setA(array1[j]);
row.setB(array2[j]);
}
Display in a Table: Create a Table T, add columns CA / CB, add to each a TextView as cell editor. Bind cell editor's property "text" to attribute A / B.
For display in BusinessGraphics element, read the documentation at
http://help.sap.com/saphelp_nw04/helpdata/en/e5/08b6eb35637a44830b9e6df22987aa/content.htm
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.