Smart questions
Smart answers
Smart people
Join Tek-Tips Forums
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Bendjlee (Programmer) (OP)
9 May 11 23:56
I have a "master" datawindow which contains (for argument sake) a population sample categorized by age group i.e. teens, adults and pensioners (again this is for argument sake; we have three categories)

For each category i am building a separate datawindow tailored specific to that group.
I wish to utilize share data for this purpose for each of my three corresponding datawindow objects. however for each datawindow i wish to limit the result set to only the records of the aforementioned group (teens, adults, pensioners)

How can i achieve the above? PB11.

Thanks in advance
mbalent (Programmer)
10 May 11 8:04
You can't unless your master only has records from one of your three groups.  If you are thinking you can retrieve the entire data set into the master, filter for a single group, assign to a second datawindow via sharedata, filter the master for a second group, assign to a third datawindow via sharedata, etc. this is not possible via sharedata since once you issue the sharedata command, the datawindows share all their buffers.

You are better off using some sort of method which copies the rows from the master over to the individual datawindows and then back to the master (only copy rows back which have changed/inserted/deleted).

Matt

 

"Nature forges everything on the anvil of time"
www.anvil-of-time.com

Bendjlee (Programmer) (OP)
10 May 11 17:47
Thanks mbalent,

thanks for pointing out this method would only work to sharedata between two datawindows (after filtering) and that the technique won't work for subsequent dw's

would have made my life much easier if it could have taken a one main datawindow and filtered it three ways and bound each dataset to separate child window simultaneously...   

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close