Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BeforeReadingRecords in XI

Status
Not open for further replies.

jschya

Programmer
Aug 20, 2002
18
DE
Hi,
migrating Crystal Reports from version 9 to XI generates an error if you evaluate a formula "BeforeReadingRecords".

though mentioned in the documentation it's obviously not supported anymore.

Any help on this topic is appreciated,

joe schya
nuremberg, germany
 
Please provide more detail. As far as I know, the limitation applies only to certain types of expressions (e.g., formatting expressions).

- Ido

view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Try the following formula:

beforereadingrecords;
numbervar x:=0

Works in XI here.

So, rather than guessing at what is happening, why not post what you actually tried and the error it returned.

-k
 
Sorry folks for not answering your questions in time, but
I had a accident riding my bike to the office and was knocked out by a broken ellbow for almost 3 weeks.

I have a report with a parameter which is either "a company" or a wildcard "*" for the companies alltogether.
Depending on the parameter given I have different layout options for the report.

In CR Version 9 something it worked like this:
-----------------------
BeforeReadingRecords
If {?company} = "*" then
formula = true
Else
formula = false
End if
------------------------
and triggered the different header and footer section.

Migrating to BOXI XI we got the following error message at runtime:

Fehler in Datei "D:\Programme\Business Objects\BusinessObjects Enterprise 11.5\Data\procSched\n2358021.dst.baintern.de.crjobserver.1\~tmp22d448da78bdb1d7.rpt": Fehler in Formel <Section_Visibility>. 'BeforeReadingRecords; ' Formatierungsformeln müssen Druckzeitformeln sein. Details: errorKind.

The german error message means literally: "formatting formulas" must be evaluated "whileprintingrecords"

My workaround was to change the formula like this:

-------------------------
WhilePrintingRecords
If {?Regionaldirektion} = "*" then
formula = true
Else
formula = false
End if
-------------------------
and it works in XI.

From my point of view it's at least a bit strange:

- the parameter is given to the report and is neither read from nor compared to a database item i.e. could imho used "beforereading" as it worked in CR 9.

regards,

a one-armed programmer with aching ellbow

- of course the left one because I'm left-handed

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top