Jump to content

controlling variable evaluation


batkins61

Recommended Posts

I have a subreport which is correctly returning values to the master.  When I print those values in the master in the same band as the summary (the page footer band) as a test, they appear correctly.  However, when I use them in an expression in another variable, they are not evaluated correctly (they are null).

I'm pretty sure, through readings in the forum, that this is because the variables are evaluated before the results of the subreport are available.  Is it possible to control when these variables (the ones that USE the return values, not the return value variables themselves) are evaluated?  The subreport and the fields that display the calculated variables must remain in the same band.

Fields can have their evaluation time set.  This would be exceedingly useful for variables as well.  The evaluation time of a variable does not appear to be changed based on the evaluation time of the field that displays it (which makes sense, and is why variables should have their own evaluation time settable).

If not, then I have a question.  How is it useful to have variables in a band calculated before subreport return variables in the same band are available?  Although perhaps easier to implement, this is clearly not desirable from a usage standpoint.  Can a defect/enhancement be files for this?

Regards,

BAtkins

Link to comment
Share on other sites

  • 2 months later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...