cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Webdynpro Tables and Scatter-chart

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (0)