Business Graph
Has anyone dealed with the UI element Business Graphic??
If yes can someone tell me how can we handle that??
I need steps for it to be used for data from a table.
Thanks,
Sneha Singh.
Hi sneha..
Chk this..
BUSINESS GRAPHICS
http://help.sap.com/saphelp_nw04/helpdata/en/9a/a04d26a6d611d2960500a0c9308b1f/frameset.htm
USING BUSINESS GRAPHICS
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3261cd90-0201-0010-268c-d8d72e358af6
http://help.sap.com/saphelp_nw04/helpdata/en/e5/08b6eb35637a44830b9e6df22987aa/frameset.htm
INTRODUCTION TO WEBDYN PRO BUSINESS GRAPHICS WEBAS 6.40
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/717cae90-0201-0010-a5a4-bbc6713f3779
ACCESSING FURTHER MODELS IN BUSINESS GRAPHIC ELEMENTS
http://help.sap.com/saphelp_nw04s/helpdata/en/42/e61cd068dc3ee4e10000000a1553f7/frameset.htm
BUSINESS GRAPHICS LIBRARY
http://help.sap.com/saphelp_nw04s/helpdata/en/13/7d8741bf56040de10000000a1550b0/frameset.htm
Step by step..
1. Create Business graphics UI.
2. Create category in the UI.
3. Create series types and assign the context attributes tht u have alredy created for u r application.
4. Right click the UI and use chart designer.
you jus assign the context attributes to the category and series. It will retrieve the apprpriate data from the table.
Hop this will helps..
GS
Message was edited by:
Sathishkumar GS
Similar Messages
-
Issue in Business graph with 3 dimension
Hi All,
I am facing an issue in displaying the business graph-Three dimensional using WD abap.
I have defined only one series and the series values are defined(2 series with 2 colors) in the XML and this was set to graph property customizing.
I am able to see the graph but each stacked column of the category in the graph is having X series colur even there is no value defined.
And on top of each stacked column category i am getting same X series color.
I dont want to show this color on top of every category and if there is no series defined it should not give X series color.
Please provide your inputs on this.If any one faced this kind of problem.
Regards,
Lavanya.GHi Bilal,
So the Sales_Value rule runs regardless of what rule you attach to the form?
How are you running the rule? Run on Save, or through a right click menu? Just by clicking the rule on the left?
Can you confirm that:
In the Administer Forms and Ad Hoc Grids screen, the "Production_Quantity" rule id definitely attached and that in the Properties tab, you have the correct box ticked for that rule (e.g. Run on Save etc).
Can you also make sure that the "Sales_Value" rule is NOT present in the form in the same screen?
Do you get the same results when you run via Smart View?
Have you deployed the application since you changed the form/Added the rule to the Form? -
Tooltip for each series of Business Graph in webdynpro
Hi Experts,
Here In the Business Graph of webdynpro, on x-axis am taking sales order&corresponding purchase orders on each day
and in the y-axis am taking Prices...Iam able to display successfully,Here the requirement is whenever the user place on
the peak point of the column(or tooltip of each series or at edge of the column either it is purchase order or sales order).We need to maintain
the sales order amount(if the column is sales order) or purchase order amount(if the column is purchse order)....
anyone could suggest me suitable solution for this...thanks in advance....OK! Its done! The solution does not help exact, but it gives my the way! With the coordinates of the MouseEvent I can get the Value of the current table row and set the ToolTip text new. Teh ToolTipManager automatically repaints the ToolTip whit the new text and position.
-
Problem in Business Graph - no chart in my graph
Hi ,
I have tried a scenario on Business Graph as per the below link.
http://****************/Tutorials/WebDynproABAP/Graphics/page4.htm
i am getting the values in table ,but there was no any chart inside my graph , whereas i can see the values along x - axis.
following is the code i have used.
METHOD ONACTIONGET_EMP_DETAILS .
WD_THIS->FIRE_TO_ALV_TABLE_PLG( ).
DATA LO_ND_EMPLOYEE TYPE REF TO IF_WD_CONTEXT_NODE.
DATA LO_EL_EMPLOYEE TYPE REF TO IF_WD_CONTEXT_ELEMENT.
DATA LT_EMPLOYEE TYPE WD_THIS->ELEMENTS_EMP_DETAILS.
DATA LS_EMPLOYEE TYPE WD_THIS->ELEMENT_EMP_DETAILS.
navigate from <CONTEXT> to <EMPLOYEE> via lead selection
LO_ND_EMPLOYEE = WD_CONTEXT->GET_CHILD_NODE('EMP_DETAILS').
DATA LO_EL_CONTEXT TYPE REF TO IF_WD_CONTEXT_ELEMENT.
DATA LS_CONTEXT TYPE WD_THIS->ELEMENT_CONTEXT.
DATA LV_EMP_NO LIKE LS_CONTEXT-EMP_NO.
DATA LV_NUM TYPE I.
get element via lead selection
LO_EL_CONTEXT = WD_CONTEXT->GET_ELEMENT( ).
get single attribute
LO_EL_CONTEXT->GET_ATTRIBUTE(
EXPORTING
NAME = `EMP_NO`
IMPORTING
VALUE = LV_EMP_NO ).
SELECT ZASSIGNCOMP BEGDA ENDDA INTO CORRESPONDING FIELDS OF TABLE
LT_EMPLOYEE FROM PA9030 WHERE PERNR EQ LV_EMP_NO." AND ENDDA EQ '99991013'.
DESCRIBE TABLE LT_EMPLOYEE LINES LV_NUM.
LO_ND_EMPLOYEE->BIND_TABLE( LT_EMPLOYEE ).
DATA LO_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
LO_CMP_USAGE = WD_THIS->WD_CPUSE_ALV( ).
IF LO_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
LO_CMP_USAGE->CREATE_COMPONENT( ).
ENDIF.
DATA LO_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
LO_INTERFACECONTROLLER = WD_THIS->WD_CPIFC_ALV( ).
DATA LO_VALUE TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
LO_VALUE = LO_INTERFACECONTROLLER->GET_MODEL( ).
Set Visible Row Count as 5
LO_VALUE->IF_SALV_WD_TABLE_SETTINGS~SET_VISIBLE_ROW_COUNT( LV_NUM ).
The Config Table Setting to Display Table & Business Graphics
DATA: L_REF_CONFIG_TABLE TYPE REF TO IF_SALV_WD_TABLE_SETTINGS,
L_DISPLAY_AS TYPE SALV_WD_CONSTANT VALUE '02'.
L_REF_CONFIG_TABLE ?= LO_VALUE.
L_REF_CONFIG_TABLE->SET_DISPLAY_AS( VALUE = L_DISPLAY_AS ).
ENDMETHOD.Hello Siva ,
Which node you have bind to the business graphics ui element ?
Which attribute you have used to for Series in business graphics ?
Regards
Vivek -
Hi,
I had a requirement that download the business graph to excel.Not as an internal table but as a graph.
Regards,
Vasavi.Having the same problem with Illustrator CS3. All Excel 3D graph/chart are individual shapes. Looks horrible.
Don't have Office 2003 installed. So sure if it only an Excel 2007 issue.
No problem with Excel 2004 on the Mac. -
IGS (Business Graphs) not working
Hi,
I want to create some business graphs in web dynpro java. for this I have configured IGS URL in Visual admin
I went to Server>Services>Configuration Adapter>webdynpro>sap.com>tcwddispwda>PropertySheetdefault.
than i clicked on IGSURL and added the following entry in the custom value field
http://servername.companyname.com:40080/ and I restarted the server, but even now its showing graphic rendering problem, graphs are not coming.
Also when I run this url ( http://server.companyname.com:40080/ ) in webbrowser its showing me SAP IGS is running.
Also, eveything is working fine in Portal Dev server with the above configuration, graphs are coming properly in Dev Portal server , but in Portal QA server graphs are not coming even after the above configuration.
So what could be the problem in Portal Qa server when graphs are coming properly in piortal Dev server with the above configuration.
please reply..Check the following link:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a552a4fb-0701-0010-4191-a55bbb6a9a2d?quicklink=index&overridelayout=true
Regards -
Business Graph Giving Dump.
Hello Experts,
I want to display some data in Business Graph . So i add the UI element in the view also created some node and attributes and bind it with the business graph properties (but not yet do any coding for fetching the data ). But after that while i am trying to run the application its giving me dump. The details of the dump is given below.
The following error text was processed in the system R3D : Exception condition "COMMUNICATION_ERROR" raised.
The error occurred on the application server AUSR3DEVDC02_R3D_00 and in the work process 4 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: EXECUTE of program CL_IGS_CHART_ENGINE===========CP
Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/CBUSINESS_GRAPHICS======CP
Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C7STANDARD==============CP
Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C7STANDARD==============CP
Please advice if i missed something.
Thanks In Advance.
SatyaHave you checked the [Note 454042 - IGS: Installing and Configuring the IGS|https://websmp104.sap-ag.de/LOGIN]?
Also check the Thread [Exception Analysis|Re: /sap/bc/webdynpro/sap/ags_workcenter was not called due to an error; having same type of issue. -
Business Graph customization in webdynpro
Hi,
How to provide description for data series in business graph?
in graph customization, i tried to edit data series. when i pressed enter and checked it again it showing same, as before editing it was.
like before editing it was 'Series1', i made it as 'Comp'. but after enter when i come out and checked it again, it is coming as 'Series'.
Regards
Vishnu GuptaHi Vishnu,
Can be more clear.
Do you want to change the label names for the series .
When you check the wdr_test_eevtns->BG_SIMPLE you can see the series as COFFEE and ESPRESSO being used and their lable names.
As per my undersatnding you want to change the header of the series ie(X-Axis Name/title). Is it so.
Please check out this links -
Re: Business Graphics Customizing
Dynamically changing Title in Business Graphs
Regards,
Lekha. -
Saving or Printing a Business Graph
Hi Experts,
I am very new to Business Graphs. I have an requirement of saving/printing a business graph which is plot from some int. table data.
Is that possible to save/ print a graph from application?
Is it possible to copy a graph and save it on our Desktop?
Please reply asap.
Thanks,
RunalHi Guys
Not sure on this, just went thru the BW_IGS_CHART_TEST report program. Place in the reports source code, where you display the IGS graph in html control, we actually right HTML Source. You can extend that part to include JavaScipt and also create a PRINT button. Onclick action of this HTML Button can invoke the Browser print.
Check how to do in java script
[http://javascript.about.com/library/blprint.htm]
Greetings
Prashant -
How to work in Business Graphies (Internet Graphics Server)
Hi Friends
I have some help
1. How to work in Business Graphies.
2. How to Configuration IGS (Internet Graphics Server)
3. How to Increase and decrease that u201CBarcodesu201D depending on our Customer details.
Like Business Application. Once Business Profit has high that time u201CBarcodesu201D also Increase where as Once Business Profit has low that time u201CBarcodesu201D also decreases.
Can u tell me?
Regards
Vijay KalluriHi Vijay,
Refer the below links, can give you a fair idea about using Business Graphics in Portal (WDJ/WDA).
Using Business Graphics
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3261cd90-0201-0010-268c-d8d72e358af6?quicklink=index&overridelayout=true
How to Create Business Graphics in Web Dynpro for ABAP
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca932ebc-0901-0010-68a0-b4dd81a4bf81
Introduction to Web Dynpro Business Graphics in SAP
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/717cae90-0201-0010-a5a4-bbc6713f3779?quicklink=events&overridelayout=true
Web Dynpro - Using the Internet Graphics Server in Web Dynpro Java
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50c7a90f-21a3-2910-87b5-e1f0e39462ae?quicklink=index&overridelayout=true
Business Graphics in WD Java Demo
http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/203df40b-6c7a-2a10-418d-99f87d32d3ca&overridelayout=true
Check the below URL if your IGS configured or not:
http://<hostname>:4XX80/
this should result in 'SAP IGS is running' on browser.
Thanks,
MS -
No chart in the business graph
i am getting the values in table ,but there is no any chart inside my graph ....I can see the values along x - axis.
following is the code i have used.
METHOD ONACTIONGET_EMP_DETAILS .
WD_THIS->FIRE_TO_ALV_TABLE_PLG( ).
DATA LO_ND_EMPLOYEE TYPE REF TO IF_WD_CONTEXT_NODE.
DATA LO_EL_EMPLOYEE TYPE REF TO IF_WD_CONTEXT_ELEMENT.
DATA LT_EMPLOYEE TYPE WD_THIS->ELEMENTS_EMP_DETAILS.
DATA LS_EMPLOYEE TYPE WD_THIS->ELEMENT_EMP_DETAILS.
navigate from <CONTEXT> to <EMPLOYEE> via lead selection
LO_ND_EMPLOYEE = WD_CONTEXT->GET_CHILD_NODE('EMP_DETAILS').
DATA LO_EL_CONTEXT TYPE REF TO IF_WD_CONTEXT_ELEMENT.
DATA LS_CONTEXT TYPE WD_THIS->ELEMENT_CONTEXT.
DATA LV_EMP_NO LIKE LS_CONTEXT-EMP_NO.
DATA LV_NUM TYPE I.
get element via lead selection
LO_EL_CONTEXT = WD_CONTEXT->GET_ELEMENT( ).
get single attribute
LO_EL_CONTEXT->GET_ATTRIBUTE(
EXPORTING
NAME = `EMP_NO`
IMPORTING
VALUE = LV_EMP_NO ).
wa-zzorgeh = '00124063'.
wa-zz_per_assg = '0.3'.
wa-begda = '20111111'.
wa-endda = '20120101'.
append wa to lt_employee.
wa-zzorgeh = '00124062'.
wa-zz_per_assg = '0.5'.
wa-begda = '20111111'.
wa-endda = '20120101'.
append wa to lt_employee
DESCRIBE TABLE LT_EMPLOYEE LINES LV_NUM.
LO_ND_EMPLOYEE->BIND_TABLE( LT_EMPLOYEE ).
DATA LO_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
LO_CMP_USAGE = WD_THIS->WD_CPUSE_ALV( ).
IF LO_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
LO_CMP_USAGE->CREATE_COMPONENT( ).
ENDIF.
DATA LO_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
LO_INTERFACECONTROLLER = WD_THIS->WD_CPIFC_ALV( ).
DATA LO_VALUE TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
LO_VALUE = LO_INTERFACECONTROLLER->GET_MODEL( ).
Set Visible Row Count as 5
LO_VALUE->IF_SALV_WD_TABLE_SETTINGS~SET_VISIBLE_ROW_COUNT( LV_NUM ).
The Config Table Setting to Display Table & Business Graphics
DATA: L_REF_CONFIG_TABLE TYPE REF TO IF_SALV_WD_TABLE_SETTINGS,
L_DISPLAY_AS TYPE SALV_WD_CONSTANT VALUE '02'.
L_REF_CONFIG_TABLE ?= LO_VALUE.
L_REF_CONFIG_TABLE->SET_DISPLAY_AS( VALUE = L_DISPLAY_AS ).
I am getting the 1st column in the internal table along X axis but nothing for the zz_per_assg field on the Y axis....
Edited by: hema T on Feb 2, 2012 12:05 PMi am following the link http://www.****************/Tutorials/WebDynproABAP/Graphics/page1.htm
but i cannot see the chart -
Dynamically controlling the label of the series in Business Graph
Hi All,
I am using the Stacked Column type Graph in my application. For every stacked column in the graph i am displaying its corresponding value. if there was no value for a particular stack, 0 is getting displayed. is it possible to remove this 0? (i.e) label of the series need to displayed only if the value is greater than 0.
Thanks,
MuguHi Samir.......
Name itself suggests that you can maintain the numbering series manually.
Generally if you define the particular No. Series then it will take nos. sequentially but
if you want the documents to take the no. randomly in such case you can define the
Document No. of any sequence. But The nos. can not be repeated once you defined........
Hope this clarified you more......
Regards,
Rahul -
Business Graphics like Graph, charts.
Hi,
can you provide me with some materials or any video that can help me creating business graphs like charts, graphs, etc dynamically. i am working on analyticals, so you can try and understand the scope.
Thanks
Piyush DeoraHi,
Use the following document to create Business Graphics in WDA.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca932ebc-0901-0010-68a0-b4dd81a4bf81
For further information, have a look at the WDP component WDR_TEST_EVENTS, views BG*.
Also go through the Business Graphics UI elements in the Reference section of the WDP Documentation.
http://help.sap.com/saphelp_nw04s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
reward points if helpful.
Edited by: Kranthi Gurram on May 20, 2008 9:51 AM -
Business Graphics from Table and Series UI Element
Hallo experts,
i try to provide a business graph, but have some problems with functionality of Series UI Element as i suppose.
At design Time i don't know how many series i have, it's depend on data wich i get from table. So as i found for this i can use Series UI Element instead of SimpleSeries.
So i in Layout i have following structure:
Categorie
Series(List)->SeriesPoint->Numeric Value
In Context:
MainNode with following children:
Date attribute (String)
SeriesNode with following children:
Name(String)
PoinNode with attribute:
(Integer) Summe
I set singelton of PointNode and SeriesNode to false;
Date Attribute is mapped to Catergorie
(Integer)Summe to Point Value
SeriesNode to to Series(List)
Here is part of code how i generate elements of some Node:
for(int m=0;m<allCodelineNames.size();m++){
String name=(String)allCodelineNames.get(m)
IPublicChangeList.ISeriesElement elem=
(IPublicChangeList.ISeriesElement)
wdThis.wdGetChangeListController().wdGetContext().nodeSeries().createSeriesElement();
IPublicChangeList.ISeriesPointElement elem2=
(IPublicChangeList.ISeriesPointElement)
wdThis.wdGetChangeListController().wdGetContext().nodeSeriesPoint().createSeriesPointElement();
LinkedHashMap result=(LinkedHashMap)codelineMap.get(name);
elem.setCodelineName(name);
int changeLists=Integer.parseInt((String)result.get(date));
elem2.setChangelistSum(changeLists);
wdThis.wdGetChangeListController().wdGetContext().nodeSeriesPoint().addElement(elem2);
wdThis.wdGetChangeListController().wdGetContext().nodeSeries().addElement(elem);
The problem is so that i still don't see different series i see only the first one.
Also it's not clear how the mainNode knew which nodeSeries elemnts it had
i also tried to implement this way;
statElem.node().getChildNode("Series",i).addElement(elem);
where statElem is element of mainNode, but it makes no difference
Have you have any ideas, could it be that i make something generell wrong with this UI Element?
Thank you in advance!!
Best Regards,
Daria
Edited by: Daria Sosunova on May 30, 2008 8:56 AMHi Daria
Good news so far: layout structure is correct
>
Daria Sosunova wrote:
> So i in Layout i have following structure:
> Categorie
> Series(List)->SeriesPoint->Numeric Value
However the context structure should be a little bit different (if I understand your structure correctly)
>
Daria Sosunova wrote:
> In Context:
> MainNode with following children:
> Date attribute (String)
> SeriesNode with following children:
> Name(String)
> PoinNode with attribute:
> (Integer) Summe
This is how it should be:
<ul>
<li>MainNode (for categories, singleton=true)</li>
<ul><li>Date attr (String)</li></ul>
<li>SeriesNode (for series, singleton=true)</li>
<ul>
<li>Name attr (String)</li>
<li>PointNode(for points, singleton=false)</li>
<ul><li>Summe attr (Integer)</li></ul>
</ul>
</ul>
Mapping should be done like this:
<ul>
<li>Date attr to Category->Description</li>
<li>SeriesNode to BusinessGraphic->seriesSource</li>
<li>PointNode to SeriesList->PointSource</li>
<li>PointNode to SeriesPoint->ValueSource</li>
<li>Summe attr to Values->Value</li>
</ul>
That's it for design time. As for code it should generate series like this:
ISeriesNode nodeSeries = wdContext.nodeSeries();
for(int j =0; j<seriesAmount; j++){
ISeriesElement seriesElement = nodeSeries.createSeriesElement();
nodeSeries.addElement(seriesElement);
seriesElement.setName("Test "+j);
IPoint2Node nodePoint2 = seriesElement.nodePoint2();
for(int k=0; k<pointsAmount; k++){
IPoint2Element point2Element = nodePoint2.createPoint2Element();
nodePoint2.addElement(point2Element);
if(k==4 && j==0)continue; // skip fifth element
point2Element.setValue(""+(1+j*10 + k));
Set seriesAmount=allCodelineNames.size() and pointsAmount=amountOfCategories to get what you want.
I know that it's not very easy to understand but it works
Regards
Ivan Dulko -
Hi Exports,
I have requirement where i need to implement the Business Graphics on Action Method and Display the Data Relevent to the Series / Category.
I have tried implementing on action method it is working fine ,but i am not able to get the Selected Series/Category Element
Please help me if someone already did this
Thanks & Regards,
Pavan Kumar MarlaHi Pavan,
Under the Business Graph UI add the Category as usual, add a single Series. Under the Series add a Point and for the Point add a Value of type NumericValue.
Create a Node for Category Say Vn_Category and an Attribute Under it say Va_CategoryName and bind Description property of Category to Vn_Category-->Va_CategoryName .
Create another node structure as shown below for Series,
Vn_Series
--Vn_Point(Child Node)
Va_Value(Type Int)
Va_PointIndex(Type String)
Va_ToolTip(Type String)
Set the Singleton property of Vn_Point node as false.
The PointSource property of Series to be bound to Vn_Series-->Vn_Point.
The ValueSource property of Point to be bound to Vn_Series>Vn_Point, Tooltip to Vn_Series>Vn_Point>Va_ToolTip and eventid property to Vn_Series>Vn_Point-->Va_PointIndex.
The Value property of NumericValue to Vn_Series>Vn_Point>Va_Value, and make sure Type is defined as "Y".
Create so many series(parent node) elements as many series you need in the graph and using each series(parent node) element create so many point(Child node) elements as many bars or as many categories are there in the graph.
Example:
//Creating 4 Series
IPrivateKpiChartView.IVn_SeriesElement elSeriesElement1 = null;
IPrivateKpiChartView.IVn_SeriesElement elSeriesElement2 = null;
IPrivateKpiChartView.IVn_SeriesElement elSeriesElement3 = null;
IPrivateKpiChartView.IVn_SeriesElement elSeriesElement4 = null;
elSeriesElement1 = wdContext.nodeVn_Series().createAndAddVn_SeriesElement();
elSeriesElement2 = wdContext.nodeVn_Series().createAndAddVn_SeriesElement();
elSeriesElement3 = wdContext.nodeVn_Series().createAndAddVn_SeriesElement();
elSeriesElement4 = wdContext.nodeVn_Series().createAndAddVn_SeriesElement();
//Populating 5 Categories and corresponding values,
IPrivateKpiChartView.IVn_CategoryElement elCategoryElement = null;
IPrivateKpiChartView.IVn_PointElement elPointElement1 = null;
IPrivateKpiChartView.IVn_PointElement elPointElement2 = null;
IPrivateKpiChartView.IVn_PointElement elPointElement3 = null;
IPrivateKpiChartView.IVn_PointElement elPointElement4 = null;
for (int index = 0; index < 5; index++) {
elCategoryElement = wdContext.nodeVn_Category().createAndAddVn_CategoryElement();
elCategoryElement.setVa_CategoryName("Category"+index);
elPointElement1 = elSeriesElement1.nodeVn_Point().createAndAddVn_PointElement();
elPointElement1.setVa_PointIndex("0s"+index);
elPointElement1.setVa_Value(index+1); //The value to be displayed on the graph.
elPointElement1.setVa_ToolTip("Series 1");
elPointElement2 = elSeriesElement2.nodeVn_Point().createAndAddVn_PointElement();
elPointElement2.setVa_PointIndex("1s"+index);
elPointElement1.setVa_Value(index+2);
elPointElement2.setVa_ToolTip("Series 2");
elPointElement3 = elSeriesElement3.nodeVn_Point().createAndAddVn_PointElement();
elPointElement3.setVa_PointIndex("2s"+index);
elPointElement1.setVa_Value(index+3);
elPointElement3.setVa_ToolTip("Series 3");
elPointElement4 = elSeriesElement4.nodeVn_Point().createAndAddVn_PointElement();
elPointElement4.setVa_PointIndex("3s"+index);
elPointElement1.setVa_Value(index+4);
elPointElement4.setVa_ToolTip("Series 4");
Using the snippet in my previous replay, u can extract the selected series point's value and the corresponding category.
Also you can refer the wiki link [WIKI|http://wiki.sdn.sap.com/wiki/display/WDJava/WebDynproDynamicBusiness+Graphics]
Regards,
Vishweshwara P.K.M.
Edited by: Vishweshwara P.K.M on Nov 16, 2011 4:28 PM
Maybe you are looking for
-
Chinese (Hanin) Keyboard Mapping Problems
I have just upgraded to OS X Leopard and noticed that when I switch to the Chinese (Hanin) input method, the "Z" key is mapping to the wrong phonetic character which is the same as the one produced by the ";" key. Has anyone else noticed this problem
-
Capture One Export opening Lightroom
Out of the blue, when I am exporting a file from Capture One to a folder, Lightroom is opening to import it. Capture One is set to "Open with None". Yesterday, it did't do that and I don't believe I changed anything in either application. Is there a
-
Data Merge: How to use script on the preview next a record and pre a record?
Preview data records too much, want to use the script implementation preview next a record and pre a record, and set shortcut keys for the script. the following script can be opened and closed to preview: app.menuActions.itemByID(108035).checked But
-
I can watch the preview but says can't purchase the movie because it is not HDCP compatible. Why?
-
ICloud renewal, billing issues
My iCloud is up for renewal, I was sent an email saying that my billing information was incorrect. I double checked and reentered the information and it keeps saying that my security code is incorrect. I am able to make other purchases without any is