It's very odd. In OnBeforeLoad in the dashboard I have
Code:
Procedure OnBeforeShow
// Each time this view is shown we will update the appropriate information.
Send DoLoadWebChart of (oWebChartClients(oWebMainPanel))
Send DoLoadChart of (oChart(oWebMainPanel))
End_Procedure
Only the first chart loads :-(
Then I added Radiobuttons:
Code:
Object oWebRadio2 is a cWebRadio
Set piColumnSpan to 6
Set psCaption to "Cash Money"
Set psRadioValue to "A"
Set pbServerOnSelect to True
Procedure OnSelect
String sValue
WebGet psValue of oWebRadio2 to sValue
If (sValue = "A") Begin
Send DoLoadWebChart of (oWebChartClients(oWebMainPanel))
End
Else Begin
Send DoLoadChart of (oChart(oWebMainPanel))
End
End_Procedure
End_Object
Object oWebRadio1 is a cWebRadio
Set piColumnSpan to 6
Set psCaption to "People Count"
Set psRadioValue to "B"
Set pbServerOnSelect to True
Procedure OnSelect
String sValue
WebGet psValue of oWebRadio2 to sValue
If (sValue = "A") Begin
Send DoLoadWebChart of (oWebChartClients(oWebMainPanel))
End
Else Begin
Send DoLoadChart of (oChart(oWebMainPanel))
End
End_Procedure
End_Object
If I then click the second radio button the OTHER chart appears below the first.