For Programmers: Free Programming Magazines  


Home > Archive > PowerBuilder > March 2004 > How configure my graph?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How configure my graph?
Paola

2004-03-27, 12:22 am

Hi,
I'm beginner in power builder and I need your help to set values in my
graph.
I'm using Power Builder 6.5.1 and Oracle 8.

In my main window I select a range of dates end 8 different values to
display on my graph.
I select these 8 values trought check boxes. So chk1.checked means that I
want to view field1 and so on.
Main window contains a data window called dw_1 that will be loaded with my
graph.
After selected the values I want , in the script of my push button run
loading graph.
This is my code without the values select:

dw_1.dataobject='dw_graphmocdxa' // name of my graph
dw_1.settransobject(sqlca)
dw_1.retrieve (cpat.patnum,'01/01/1900 00:00','01/01/3999 00:00') //
retrieve ok
dw_1.visible=true

I think I must insert something like this:
integer SeriesNbr, CategoryNbr
// Get the number of the series.
SeriesNbr = dw_1.FindSeries("dw_graphmocdxa", "TScore")
dw_1.dataobject.graph.DeleteData(SeriesNbr, 1) // ********** ERROR
******//

// Get the numbers of the series and category.
SeriesNbr =dw_1.FindSeries("dw_graphmocdxa", "TScore")
CategoryNbr = dw_1.FindCategory("dw_graphmocdxa","Tempo")
if chk1.checked then
dw_1.dataobject.graph.InsertData(SeriesNbr, CategoryNbr,
"tscore_distlomb", "D.Lombare") // ********** ERROR ******//
end if

if chk2.checked then
dw_1.dataobject.graph.InsertData(SeriesNbr, CategoryNbr,
"tscore_distfemodx", "D.Femorale dx")
end if
........................

So, is it right insert the loading parameter of graph in the push button
scripts?
What's the right syntax to write the call of InsertData?
I hope that although my english, someone has understood something about my
question.
Bye and thanks in advance.
Paola



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com