subreport value more help
Forgive my ignorance on this but have not been using it long, not sure what
RAP is with regard to the reply in my last post (adding the result of a
subreport to the main page).
All i have done is on the firstmain page of the report (Main:Customer) is
added a subreport to it (SubReport1:Windowinfo). I have then clicked onto
the SubReport1:Windowinfo tab and added a variable to this in the detail
band (variable1). Then i click onto the calc tab and clicked on that
variable and in the code box at the bottom left added a line like:
Value := Windowinfo['Itemcostprice']
So on my report this would show a value i.e. ?100
What i want to do is on the main page is show what the result of the above
variable is so i can add it to another field.
So what i need to know is what exactly would i have to type in the variable
i add to the main page (variable2) to pick up the value of variable 1 on the
sub report
i.e. in the code section on variable 2 on the main page something like:
Value: = subreport1.variable1
Hope this makes sense, thanks for your time and help
Stuart
RAP is with regard to the reply in my last post (adding the result of a
subreport to the main page).
All i have done is on the firstmain page of the report (Main:Customer) is
added a subreport to it (SubReport1:Windowinfo). I have then clicked onto
the SubReport1:Windowinfo tab and added a variable to this in the detail
band (variable1). Then i click onto the calc tab and clicked on that
variable and in the code box at the bottom left added a line like:
Value := Windowinfo['Itemcostprice']
So on my report this would show a value i.e. ?100
What i want to do is on the main page is show what the result of the above
variable is so i can add it to another field.
So what i need to know is what exactly would i have to type in the variable
i add to the main page (variable2) to pick up the value of variable 1 on the
sub report
i.e. in the code section on variable 2 on the main page something like:
Value: = subreport1.variable1
Hope this makes sense, thanks for your time and help
Stuart
This discussion has been closed.
Comments
Take a look at the example I posted in your previous post. This report
template contains code in the Calc tab (RAP) that does precisely what you
describe below.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com