Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
unidentified user
kylegunn
Posts: 4
Registered: 12-12-2011
0
Accepted Solution

Cant preview report in crystal

I am trying to preview an existing report in Crystal and all I keep getting is a blank report with just the title, headings, etc.  However when I run the report in MAS everything looks fine.  Any help would be appreciated.

 

Thanks,

 

Kyle Gunn

MAS 200 4.30.0.18

Crystal Reports 10.0.5.820

Super Contributor
connex
Posts: 794
Registered: 10-29-2008

Re: Cant preview report in crystal

[ Edited ]

What tables are you using in the report?  If the report uses table with the letters Wrk at then end of the name, then those are work tables that are refreshed by MAS 200 when the report is run and would explain why they are empty when run outside of MAS.

Dan Burleson
Sage Authorized Consultant - Ask me about advanced scripting!
e-mail me here
unidentified user
kylegunn
Posts: 4
Registered: 12-12-2011
0

Re: Cant preview report in crystal

Yup! That was it.  Thanks connex!!

 

Kyle

Switcher
BigLouie
Posts: 2,687
Registered: 10-28-2008
0

Re: Cant preview report in crystal

To expand on what my esteemed colleague posted. When a works table is use a temp table with a time stamp is created, this is what the report reads. For example SO_CustomerSlsHistByItemWrk.M4T becomes SO_CustomerSlsHistByItemWrkJJM090708896069.M4T. To be able to preview the report you would preview the report and then go find the works table. Rename the original adding _bak or something like that and then on the table with the time stamp, strip out the time stamp. Now when you finish working on the report you can run it and see data. When finish clean things up by deleting the files with data and renaming the blank works table back to it's correct name.

Big Louie No MBA but BMOC
--------------------------------------------------------------------------
You have enemies? Good. That means you've stood up for something in your life.
Super Contributor
connex
Posts: 794
Registered: 10-29-2008
0

Re: Cant preview report in crystal

To expand on what MY esteemed colleague posted.  I always leave test data in the work file and leave the original as _Original in case I ever need it again (which I haven't)

Dan Burleson
Sage Authorized Consultant - Ask me about advanced scripting!
e-mail me here
Regular Contributor
russnobbs
Posts: 256
Registered: 11-01-2008
0

Re: Cant preview report in crystal

Does the method of finding and renaming the data filled work table that these esteemed gentlemen describe work in the same manner for FORMS  as well as for reports?

Russ Nobbs
Founder, Rings & Things, Spokane, WA USA
Switcher
BigLouie
Posts: 2,687
Registered: 10-28-2008
0

Re: Cant preview report in crystal

I think my esteemed colleague would agree, the answer is Yes.

Big Louie No MBA but BMOC
--------------------------------------------------------------------------
You have enemies? Good. That means you've stood up for something in your life.
Super Contributor
connex
Posts: 794
Registered: 10-29-2008
0

Re: Cant preview report in crystal

Yes! It works for any Crystal report that uses a work table.

Dan Burleson
Sage Authorized Consultant - Ask me about advanced scripting!
e-mail me here
unidentified user
eludden
Posts: 1
Registered: 02-01-2012
0

Re: Cant preview report in crystal

For anyone that comes across this post that happens to be running the 4.5 SQL version, the WRK tables are created in the TEMPDB under Temporary Tables.  Following the same example, you could then use a SQL query SELECT * FROM tempdb.dbo.[##SO_CustomerSlsHistByItemWrkJJM090708896069] from SQL Server Management Studio to view the temorary WRK table records.

Super Contributor
connex
Posts: 794
Registered: 10-29-2008
0

Re: Cant preview report in crystal

With 4.5 SQL does this same technique work to copy the temporary file contents to the permananent work file (the one without the user and date/time stamp)?

Dan Burleson
Sage Authorized Consultant - Ask me about advanced scripting!
e-mail me here