cancel
Showing results for 
Search instead for 
Did you mean: 

how to display tooltip in bussiness graphics

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos
Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member751941
Active Contributor
0 Kudos

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

Former Member
0 Kudos

hi

are where i shold paste this code

i have to call any event

i am getting tooltip for points as same value for all points

how can i achieve varying values

former_member751941
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

}

former_member751941
Active Contributor
0 Kudos

Hi Vani,

Take the context like.

Series(node)

|-Point(Node)

|------x(attribute)

|------y(attribute)

attribute x,y under PointNode

You will not be able to set the tooltip for series.

Regars,

Mithu

Former Member
0 Kudos

i have taken i am not und timevalues?

u have taken in for loop

could u pls explin that

former_member751941
Active Contributor
0 Kudos

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

Former Member
0 Kudos

sir i got u

i am getting graph

but i am not getting tool tip

graph is ploting

but tooltip not dis..

i set propery tooltip to that context var

i am send u code

for point i am not getting tooltip proprerty while coding

pls tell me what is that times value in u r coding

Former Member
0 Kudos

sir,

i knw tooltip propery if i set that to ctx var..

its showing same cvalue for all points

pls suggest me how to solve that

its urgent

Former Member
0 Kudos

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();

}

Former Member
0 Kudos

hi can u pls tell me what is that timevalues in u br code

former_member751941
Active Contributor
0 Kudos

Hi Vani,

Give me your mail id.

I will send you the code.

And also tell your exact requirement?? what you want to do??

What type of chat you required??

Regards,

Mithu