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!

Inheriting Data

Status
Not open for further replies.

CBass

Technical User
Sep 29, 2003
4
US
I have a datawindow that I need to populate with data from another datawindow. The problem is that the 2 datawindows are not in the same library. any suggesions?

thank you,
Craig
 
Hi,

If you need to have a replica of data in another datawindow, you may use the ShareData() functionality. It's so very easy to implement. You may have to synchronize the scrolling between the dws in the RowFocusChanged! event, if required. If you are using PFC, don't forget to of_SetUpdateable( FALSE ) for all the dws in the sharedata tree except the primary dw; otherwise, updates may be disguised. However, if you want to populate a range of/random data from one dw to another dw, you may use RowsCopy() function.

Existence of datawindows across libraries should not be a problem for sharing/copying data as long as you attach all those libraries to the Application's Library-path.

Regards,

--
PowerObject!
-----------------------------------------
 
so if the user is setting the data through one window through a function, a local variable, I can access that variable?
thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top