hansdebadde
Technical User
I am using CR2008, my data is in SQL. I am trying to chart some print time formulas. I have done this successfully before and am using the BO PDF document that illustrates how to do this. The problem is when i try to chart or crosstab my data it either says the value is non numeric or the array has to be between 1 and the size of the array.
Basically i have OnChangeOf and ShowValue that are passed into the subreport, but are not linked to a field.
I can show the OnChangeOf in the crosstabs or charts.
ShowValue is the issue:
//@ShowValue
shared numbervar qtr;
shared numbervar num;
shared stringvar strShowValue;
strShowValue:=strShowValue+totext((if qtr>0 and num>0 then qtr/num))+"^";
In the subreport i have a formula
//@Showvalue
tonumber(split({?Pm-@ShowValue}, "^")[RecordNumber])
When i just put the ?Pm-@ShowValue field in the subreport i see the klnd of values i expect, numeric with ^ between values. Is it because of some hidden null value or something? I am stuck. Can anyone help?
Basically i have OnChangeOf and ShowValue that are passed into the subreport, but are not linked to a field.
I can show the OnChangeOf in the crosstabs or charts.
ShowValue is the issue:
//@ShowValue
shared numbervar qtr;
shared numbervar num;
shared stringvar strShowValue;
strShowValue:=strShowValue+totext((if qtr>0 and num>0 then qtr/num))+"^";
In the subreport i have a formula
//@Showvalue
tonumber(split({?Pm-@ShowValue}, "^")[RecordNumber])
When i just put the ?Pm-@ShowValue field in the subreport i see the klnd of values i expect, numeric with ^ between values. Is it because of some hidden null value or something? I am stuck. Can anyone help?