Home » Developer & Programmer » Reports & Discoverer » Global variabels (Reports 2.5)
Global variabels [message #297883] Mon, 04 February 2008 02:39 Go to next message
mdamjad
Messages: 45
Registered: May 2005
Member
Is is possible to pass global variable to reports by using run_product function

example
run_product(reports,'d:\software\dstock.rDF',synchronous,runtime,filesystem,:GLOBAL.KK,null);

where :global.kk is global variable in forms.

If it is possible then how to access global variable in reports
Re: Global variabels [message #297906 is a reply to message #297883] Mon, 04 February 2008 03:51 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Global variables are visible to the whole session; you don't have to transfer its value like that - just reference it in the report by its name.
Re: Global variabels [message #297980 is a reply to message #297906] Mon, 04 February 2008 06:55 Go to previous messageGo to next message
mdamjad
Messages: 45
Registered: May 2005
Member
how to access global variables in report
Re: Global variabels [message #297987 is a reply to message #297980] Mon, 04 February 2008 07:39 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Hm, it seems that I was wrong about it; I apologize if my previous answer gave you some hope for an easy solution of your problem.

I did some research and - I didn't find a way to transfer a global variable value from a form to a report "as is"; from form to form, yes (and that was the fact upon I made a wrong conclusion). To report - no. Or if there is a way, I don't know how to do that.

You'll have to create a parameter in a report and transfer form's global variable value to the report as a parameter, not a global variable.
Re: Global variabels [message #297991 is a reply to message #297987] Mon, 04 February 2008 07:53 Go to previous message
mdamjad
Messages: 45
Registered: May 2005
Member
How to access these values in user parameter
Previous Topic: Oracle Reports support Windows 64bit OS
Next Topic: Developing Barcode reports using XML Publisher
Goto Forum:
  


Current Time: Tue Nov 26 22:37:35 CST 2024