Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report within a datawindow control

Status
Not open for further replies.

beti

Programmer
Oct 6, 2002
26
US
I need to show a report on a datawindow control. when I created the report,it was able to retrieve the data (preview mode), However, when i embedded into the datawindow control and run the application, it can not load the data. Only the labels and title of the report shown. Can anyone answer my question??
Thanks
 
Did you explicity retrieve the data?
For instance in the window open() event

Code:
dw1.retrieve()
 
Dear jcura,

I'm new to the PB6...so I don't really understand what you meant "explicity retrieve"!

I used a open() event on the application to open the Window. Then I just use the the "DataWindow" icon to open the report inside the Window.

Can you please tell me more on how to display the data on the report within the Window. Thanks

 
You have an application that open's a window with the report, in the open() event of the window you put:

dw_name.retrieve()

where dw_name is the datawindow name
and that should get the data that you see on preview mode... (I hope :)))
 
Beti,

Jcura is correct but forgot to tell you about
SetTransObject.

Use the following code in your window's open event.

dw_1.SetTransObject(SQLCA)
dw_1.Retrieve()

In order to use SQLCA as transaction object you should
populate it before using it in your application.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top