copying/transfering datawindow results to another datawindow

I have a window which display all the records in the datawindow and at
runtime, I have the option of filtering the data.  Once the data is
filtered/unfiltered, I would like all the results to open in a new window
generated in a specific report (datawindow).

  So, how can I copy all the data from the filtered results? and how do I
pass these filtered results to the report datawindow?


0
Mark
1/10/2001 3:43:35 AM
sybase.powerbuilder.general 62418 articles. 19 followers. Follow

2 Replies
827 Views

Similar Articles

[PageSpeed] 20
Get it on Google Play
Get it on Apple App Store

This has been answered in another group, please don't cross post

--
Simon Caldwell
Get Real Systems Ltd
Holtby Manor, Stamford Bridge Road, York, YO19 5LL
Tel 01904 481999 Fax 01904 481666
Visit us at www.getrealsystems.com

Specialists in e-Procurement and supply chain technology


"Mark" <thegame_2000@hotmail.com> wrote in message
news:#bIhwmreAHA.294@forums.sybase.com...
> I have a window which display all the records in the datawindow and at
> runtime, I have the option of filtering the data.  Once the data is
> filtered/unfiltered, I would like all the results to open in a new window
> generated in a specific report (datawindow).
>
>   So, how can I copy all the data from the filtered results? and how do I
> pass these filtered results to the report datawindow?
>
>


0
Simon
1/10/2001 9:27:54 AM
I have done that in the past. It is fairly simple.

1.Pass the dw_source to another window using 
OpenWithParm(w_newwin, dw_store, parent)

2.Create a reference to the dw in the open event of the w_newwin
ldw_from_parent = Message.PowerObjectParm

3.Have a dw_in_new_win 
dw_in_newwin.dataobject = ldw_from_parent.dataobject
ldw_from_parent.RowsCopy(1, ldw_from_parent.RowCount(), Primary!, 
dw_in_newwin, 1, Primary!)

Be careful, do not use the reference (ldw_from_parent ) directly, since it 
has a reference it will modify the original dw.

This should do the trick. 

Sandeep


0
sgamare
1/12/2001 6:29:29 PM
Reply: