Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread TDataSet.AfterLoad not working for TDataSet.LoadColumns
Mon, Oct 24 2016 3:16 PMPermanent Link

Bruno Larochelle

I知 trying to use the event TDataSet.AfterLoad to run some code after TDataSet.LoadColumns is completed. According to the documentation (http://www.elevatesoft.com/manual?action=viewevent&id=ewb2&comp=TDataSet&event=AfterLoad) this should be the correct event to implement.

I looked at the core file for WebData and it looks like to fire the TDataSet.AfterLoad event the method TDataSet.DoAfterLoad needs to be called and currently within WebData TDataSet.DoAfterLoad is only called in TDataSet.LoadRows (should it also be caleed within TDataSet.LoadColumns).

Ultimately I知 trying to detect when TDatabase.LoadColumns is complete (after making GET request to a php script), and it is my understanding that TDatabase.LoadColumns calls TDataSet.LoadColumns after the server request is finished. So to detect when TDatabase.LoadColumns is complete I知 listening for TDataSet.AfterLoad.

Any ideas/suggestions?

Philip Reddish
Environment Canada
Tue, Oct 25 2016 3:01 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Bruno,

<< I知 trying to use the event TDataSet.AfterLoad to run some code after TDataSet.LoadColumns is completed. According to the documentation (http://www.elevatesoft.com/manual?action=viewevent&id=ewb2&comp=TDataSet&event=AfterLoad) this should be the correct event to implement. >>

Yeah, that was originally the idea, but it didn't actually get implemented that way.  I'll have to add a fix for this, but it will most likely involve a new set of events for the loading of the columns.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Oct 26 2016 10:10 AMPermanent Link

Bruno Larochelle

thanks Tim

//

Tim Young [Elevate Software] wrote:

Bruno,

<< I知 trying to use the event TDataSet.AfterLoad to run some code after TDataSet.LoadColumns is completed. According to the documentation (http://www.elevatesoft.com/manual?action=viewevent&id=ewb2&comp=TDataSet&event=AfterLoad) this should be the correct event to implement. >>

Yeah, that was originally the idea, but it didn't actually get implemented that way.  I'll have to add a fix for this, but it will most likely involve a new set of events for the loading of the columns.

Tim Young
Elevate Software
www.elevatesoft.com
Image