Hi
I'm using CRXI
I have a subreport that contains 3 shared variables (unit, unit_type and currency). The code are similar to this in all 3
whileprintingrecords;
Shared stringvar unit_type:= {UNIT.UNIT_TYPE};
The subreport is placed in the report header of the main report.
These 3 shared variables are to be used both in the main report and in two different subreports. I have created formulas to recieve these variables in main and the subreports that they should be used
shared stringvar unit_type;
unit_type
The problem is that the variables doesn't seem to work in the main and subreports. When I add them to a section below the subreport where they are defined they show up blank (the mainreport are currently returning no rows so this may be the reason).
I also tried to use the unit_type formula field in another formula:
if {@unit_type} = "VOLLUME" then
{DAILY_DEL_LINE.DEL_VOLUME}
else if {@unit_type} = "ENERGY" then
{DAILY_DEL_LINE.DEL_ENERGY};
but got an error message: "A summary has been specified on a non-recurring field."
I tried to use the currency formula in a subreport that returns data and the field turns up blank...
A long explanation here, but I hope it was understandable and that someone can help me!
thanks!
Greta
I'm using CRXI
I have a subreport that contains 3 shared variables (unit, unit_type and currency). The code are similar to this in all 3
whileprintingrecords;
Shared stringvar unit_type:= {UNIT.UNIT_TYPE};
The subreport is placed in the report header of the main report.
These 3 shared variables are to be used both in the main report and in two different subreports. I have created formulas to recieve these variables in main and the subreports that they should be used
shared stringvar unit_type;
unit_type
The problem is that the variables doesn't seem to work in the main and subreports. When I add them to a section below the subreport where they are defined they show up blank (the mainreport are currently returning no rows so this may be the reason).
I also tried to use the unit_type formula field in another formula:
if {@unit_type} = "VOLLUME" then
{DAILY_DEL_LINE.DEL_VOLUME}
else if {@unit_type} = "ENERGY" then
{DAILY_DEL_LINE.DEL_ENERGY};
but got an error message: "A summary has been specified on a non-recurring field."
I tried to use the currency formula in a subreport that returns data and the field turns up blank...
A long explanation here, but I hope it was understandable and that someone can help me!
thanks!
Greta