cancel
Showing results for 
Search instead for 
Did you mean: 

Developing a graph from a table

Former Member
0 Kudos

Hi,

I need to develop a graph using the values from a table.

Are there any tutorials related to this? Any useful links?

Regards,

Padmalatha.K

Points will be rewarded.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

For using Business Graphics, first you have to know about IGS.

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50c7a90f-21a3-2910-87b5-e1f0e39462ae">Using the Internet Graphics Server in Web Dynpro Java</a>

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/81/0c6ab1f4499e48ba590587d568d558/frameset.htm">Inserting a Business Graphic in the View</a>

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/717cae90-0201-0010-a5a4-bbc6713f3779">Introduction to Web Dynpro Business Graphics</a>

Regards

SURYA

Answers (6)

Answers (6)

arun_srinivasan
Contributor
0 Kudos

Hi

1) Create a table node and its attribute in component controller and also in view 2.

2) Define the usage of component controller in both the views

3) Map the table node and its value attribute of view 1 to component controller table node and its value attribute

4) Map the table node and its value attribute of view 2 to component controller table node and its value attribute

Then the value in view1 table node will there in view2 table node

5) Develop the picure rep using this values in Bussiness graphics

hope this helps,

Regards,

Arun

Former Member
0 Kudos

In my Web Dynpro application, I have two views. The first view has a table(with 2 columns) and a button. When i click on the button it should navigate to the next view and generate the graph based on the values from the table.

Can anyone please help me out with the code?

Regards,

Padmalatha.

Former Member
0 Kudos

Hi Padma..

need to bind the values of chart UI to the context attributes;

For tht u have to create category and series in the chart UI.

Then as per your requierement u have to bind the values with category and series.

Do navigations between the views from one page to another.

here is Sample coding u have to write in tht action button:

IPrivateDetailsView.IDetailsElement nod = wdContext.nodeDetails().createDetailsElement();

nod.setCity(wdContext.nodeGet().currentGetElement().getCity());

nod.setYear(""+wdContext.nodeGet().currentGetElement().getYear());

nod.setFemalPopulation(wdContext.nodeGet().currentGetElement().getFemalePopulation());

nod.setMalePopulation(wdContext.nodeGet().currentGetElement().getMalePopulation());

wdContext.nodeDetails().addElement(nod);

hop this helps..

GS

Former Member
0 Kudos

Hi

I am trying to create a simple graph......

Can anyone please explain how to fix the scale on the Y-AXIS of a graph? Is there any property that i need to set?

Also i dont want to develop the graph using the "random" function to generate the values.......I need to develop the graph using the values drawn from a table.

Please Help......

Regards,

Padmalatha.K

Points will be rewarded.

Former Member
0 Kudos

Hi padma..

I think You can do this by using Chart Designer. Right clicking ui , u can get chart designer.

GS

Former Member
0 Kudos

Hi

1. <a href="http://help.sap.com/saphelp_nw04/helpdata/en/dd/65d79bb3b2e34e8b68f59129e7d811/frameset.htm">Using business Graphics1</a>

2. <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3261cd90-0201-0010-268c-d8d72e358af6">Using business Graphics 2</a>

3. <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/documents/a1-8-4/tutorial%20on%20using%20business%20graphics%20in%20web%20dynpro%20applications.htm">using business Graphics 3</a>

Regards

Abhijith YS

Former Member