on 06-19-2007 5:02 AM
hi Experts,
I am using Bussiness Graphics UI Element in Webdyn Pro
chart type is Lines
i want to display tool tip value wehenever i place mouse there
i have taken series in bg inside series points
inside points values
pls can anybody give me soln
pls dont send me bg links
give me correct soln
which property
thanks
Hi Vani,
Check this URL <a href="http://help.sap.com/saphelp_nw04/helpdata/en/18/d4d43fb9490c65e10000000a114b1d/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/18/d4d43fb9490c65e10000000a114b1d/frameset.htm</a>
Check Category Subelement section in this document.I think its same thing what u want for ur application.
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<b>Hi vani,
Check the link below
Using Business Graphics in Web Dynpro Applications
https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#60
View Programming
Regards
chandran</b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vani
There is direct property for bussiness graphics UI element named with ToolTop.
You have to bind with contextattribute.Set that attribute init() method of view
Rgds
-SS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi i knw we cant use bindable tool tip for simple series so i took series
its value is generated by rfc
for all series element its showing same tool tip value
is there any need to write event
call any method so that the vale of tool tip changes if we place mouseover each point
pls help me its urgent
today is my prj deadline
Hi Vani,
Check this code.
IPrivateGanttTestView.ISeriesNode seriesNode = wdContext.nodeSeries();
for (int seriesIndex = 0; seriesIndex < timeValues.length; ++seriesIndex)
{
IPrivateGanttTestView.ISeriesElement
seriesElement = seriesNode.createSeriesElement();
seriesNode.addElement(seriesElement);
// set series attributes (...)
IPrivateGanttTestView.IPointNode pointNode = seriesElement.nodePoint();
// loop over points
for (int pointIndex = 0; pointIndex < timeValues[seriesIndex].length;
++pointIndex)
{
IPrivateGanttTestView.IPointElement
pointElement = pointNode.createPointElement();
pointNode.addElement(pointElement);
String ename = wdContext.nodeEmployee().getElementAt(pointIndex).getAttributeValue("Ename").toString();
pointElement.setStartValue(timeValues[seriesIndex][pointIndex][0]);
pointElement.setEndValue(timeValues[seriesIndex][pointIndex][1]);
pointElement.setCuId(pointCustomizing[seriesIndex][pointIndex]);
pointElement.setLabel(pointLabels[seriesIndex][pointIndex]);
pointElement.setToolTip("Details of Employee : "+ename );
}
}
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/84/d33481f0bd794ba9b9ef8f4b5fa73b/frameset.htm">Code Example for Displaying a Gantt Chart</a>
Regards,
Mithu
Hi Vani,
It is not necessary to fire an event for this.
You have the chart.Where you have design the chart you have to use this code there
You have a loop for the series.Under the series you have to take a loop for the points that is under the series.
For tool trip text code.
String ename = wdContext.nodeEmployee().getElementAt(pointIndex).getAttributeValue("Ename").toString();
pointElement.setToolTip("Details of Employee : "+ename );
if you see the document it would be more clear to you.
Regards,
Mithu
hi i have context like
series
inside that one point inside that
one value
i have point inside series node i dnt have point node what i shld do
IPrivateBussinessgraphictrial.ICtNode ctNode = wdContext.nodeCt();
for (int i = 0; i < asset_tabletype1.getNumRows(); i++)
{
IPrivateBussinessgraphictrial.ICtElement celm=ctNode.createCtElement();
ctNode.addElement(celm);
celm.setCategory(""(i1));
IPrivateBussinessgraphictrial.ISeriesnodeNode snode=celm.nodeSeriesnode();
for (int j= 0; j < asset_tabletype1.getNumRows(); j++)
{
IPrivateBussinessgraphictrial.ISeriesnodeElement selm= snode.createSeriesnodeElement();
selm.setSt1(asset_tabletype1.getValue("UTLI").toString());
//wdContext.currentCtElement().setAttributeValue(s);
wdComponentAPI.getMessageManager().reportSuccess(asset_tabletype1.getValue("UTLI").toString());
selm.setSt2(asset_tabletype1.getValue("UNTULI").toString());
snode.addElement(selm);
asset_tabletype1.nextRow();
this is the code generating line graph
where i shld take that point node
point node is same as series node
}
Hi Vani,
The Line Chart is a simple graph that follows a set of data over time and is used for analyzing trends in a specific variable. For example, you could graph the average energy of all the turtles on the screen over time. In the Plot Properties window which was just opened, there are several options available. You can input the title of your new graph at the top of the dialogue box. You can input labels for your x-axis and y-axis in their respective positions. You can also set a specific range on the x-axis and/or y-axis which you specifically want to display. This is especially useful for graphs which have a varying x and y range.
A Time / Value Chart can paint an extremely vivid picture of just how much waste in the form of waiting and queuing time there is in a process. It shows you in no uncertain terms what the potential benefits can be if you make the process
Regards,
Mithu
hi can u change this code so that it wks for tool tip
for points its not showing tooltip property
r there any setting we need to do in chart design
pls suggest me
when i place mouse over point it shold show value that point holds
IPrivateBussinessgraphictrial.ISeriesNode snode = wdContext.nodeSeries();
for (int i = 0; i < asset_tabletype1.getNumRows(); i++)
{
IPrivateBussinessgraphictrial.ISeriesElement selm=snode.createSeriesElement();
snode.addElement(selm);
selm.setCategory(""(i1));
IPrivateBussinessgraphictrial.IPointNode pnode=selm.nodePoint();
for (int j= 0; j < asset_tabletype1.getNumRows(); j++)
{
IPrivateBussinessgraphictrial.IPointElement pelm= pnode.createPointElement();
pelm.setX(asset_tabletype1.getValue("UTLI").toString());
pnode.addElement(pelm);
asset_tabletype1.nextRow();
}
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.