I've got a question that's simple to answer--but difficult for me to explain 
:)

I've got nested ClientDataSets. Let's call the main one CDS1. CDS2 is one of 
CDS1's fields. Although CDS1 is connected to a variety of DBAware controls, 
CDS2 is displayed & edited only via a DataGrid. So here's what I'm trying to 
do ...

When an item is added to CDS1, CDS2's grid should display a 
template--selected grid fields will be pre-filled, some will have a 
pickList, and others will be blank. In every other CDS1 state or condition, 
however, I want CDS2 to display the way it "normally" would when you've got 
nested datasets--CDS2 will display for the (CDS1) selected record whatever 
was saved the last time CDS1.Post was called.

I hope this is clear, 'cause I'm not sure it's clear even to me! Basically, 
though, instead of having CDS2 display a blank grid when a new record is 
created in CDS1, I want a file to be loaded that will enter info into some 
of CDS2's displays.

I'm sort of assuming I'll write code along the lines of "if CDS1.State in 
[dsInsert] then CDS2.FileName:=aTemplate.xml else DoWhatYouNormallyDo" Does 
this sound like I'm on the right track?

Thanks, as always -- Al

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

_______________________________________________
Delphi-DB mailing list
Delphi-DB@elists.org
http://www.elists.org/mailman/listinfo/delphi-db

Reply via email to