Solved

Crystal reports - Find where variable value is set

Posted on 2011-02-25
4
738 Views
Last Modified: 2012-06-21
I am working on a Crystal report written by someone else. It has formulas that contain shared variables. The problem is I cannot find where the values are loaded. I suspected since they are shared variables, there is a subreport, but I cannot find it. There is one subreport, but the only thing it does is supply a heading. I am attaching a report definition. One of the formulas is j1. It contains shared numbervar F001_TC_3; That is all it contains.  sales-tax-calculation---jan-2011.txt This is Crystal XI.
0
Comment
Question by:qbjgqbjg
  • 2
4 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 34981258
I don't find anywhere it is set.

You can search with the binoculars when you are in a formula

mlmcc
0
 
LVL 34

Accepted Solution

by:
James0628 earned 500 total points
ID: 34986879
FWIW, in my experience, report definitions don't include everything (in fact, the few times I've tried them, they were very far from including everything).  You could post your report, if there's nothing "confidential" in it, and we could take a look at that.

 If you want to see if there are other subreports, you could try deleting the one that you found (temporarily, of course) and then going to Database > "Set Datasource Location" and seeing if any supreport datasources are still listed.  If not, that was the only subreport.

 The variable could be set in a field or section "formatting" formula, like a section suppression formula, or anywhere else that a formula can be entered.  To look for things like this, I go to the formula editor, then open up the Selection Formulas item on the left, and everything under Formatting Formulas.  Then I select the bottom thing in the list and start using the Up Arrow to go up the list.  Whenever I hit a formula, it pops up in the editor window and I can check it for the variable, or whatever.  I think you can check pretty much every formula in a report that way (I can't think of any exceptions, but I may be missing something).

 You can open any subreports in the subreport editor and do the same thing in them.

 I am assuming, of course, that that variable has some value other than 0.  If it's just 0, maybe it's just never set.

 James
0
 

Author Closing Comment

by:qbjgqbjg
ID: 34998162
It was in a section suppression formula. I would have never looked there. Thanks.
0
 
LVL 34

Expert Comment

by:James0628
ID: 35005772
You're welcome.  Glad I could help.

 James
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question