Solved

Crystal reports - Find where variable value is set

Posted on 2011-02-25
4
742 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 35

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 35

Expert Comment

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

 James
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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 …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 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