SOGRIZ@QGRAPH.COM
This is where my oversight was! In Supervisor, I have set the SQL to always regenerate. It’s been a while and I forgot that setting.
Thanks for reminding me.
Snezana Ogrizovic
======================================================================== One of the problems with particle physics is that it is difficult to run experiments on a sub-atomic level. There is no way to monitor the experiment without altering the outcome. In other words, if you weren’t looking, then a different result would occur! So how can you have experiments that you can never watch? I guess that’s a question for the particle physics list.
What does that have to do with BusinessObjects? And more specifically, the idea of regenerating the SQL? See notes below…
In a message dated 00-03-21 12:46:32 EST, you write:
Specifically how did you refresh your report? If you simply hit the refresh
icon it does not always regenerate the SQL for me.
My understanding is that clicking on the “Refresh” button on the toolbar does NOT regenerate the SQL. Even if a universe has changed. You can validate this quite easily if your universe has contexts. If you select certain objects (in Island Resorts select only the Resort and the Customer objects) then you are prompted for a context. Only after selecting a context is the SQL generated.
Once you run the query, you can use the Refresh button on the toolbar and you will never be prompted for a context selection. It simply re-uses the SQL that was already generated by the Query Panel.
Now, on to the subject of “looking”…
Hi
The SQL is regenerated the 1st time that you open & refresh the report. I’ ve
been doing this for quite a while and did a simple test. Give this a try:
- Create a report off of a universe.
- Save the report after you note the SQL generated. 3. Exit BusinessObjects.
- Change the table source or field source for one of the objects you used
in your report.
- Save your universe.
- Start Business Objects and Open your previously saved report. 7. Refresh the report.
- Note the differences in your SQL.
The only way you can note the difference in your SQL is to look at it. And the process of looking at the SQL (via the SQL button on the query panel) causes BusObj to regenerate the SQL.
In other words:
You can’t verify the SQL changes without looking Looking does regenerate the SQL, and so shows the universe changes Not looking does not regenerate the SQL
So you will only see universe changes if you look, which makes it seem as if it is working.
Here’s an experiment to run (and this one you CAN watch ):
Create a new variable and place it on your report. The variable can be called “DP SQL”, and the formula is something like (for my Island Resorts example):
=DataProviderSQL(DataProvider())
This formula will retrieve the SQL from the query and display it on the document. After doing this, change an object definition in your universe, save, and export it. Open the document and click on the “Refresh” button on the toolbar. You will not see the SQL changes.
Interestingly enough, in 4.1 I even removed an object from the universe that was used in the document. The query ran as is, without recognizing that the object was no longer available. When I invoked the query panel, then and only then did I get the message about “obsolete” objects being removed.
In version 5 you will see this same behavior.
If you need to have the SQL regenerated even by using the Refresh button on the toolbar (as opposed to running from the Query Panel) then you can alter this behavior.
In Supervisor, right-click on BusinessObjects and select Properties.
In v5, select the “Query Technique” folder from the left hand side. In v4, select the “Query Technique” setting from the pull-down menu. There is a setting for “Do not always regenerate SQL” that is on (enabled) by default. Disable this setting, and your documents will always regenerated the SQL.
Regards,
Dave Rathbun
Integra Solutions
www.islink.com
Listserv Archives (BOB member since 2002-06-25)