Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Runtime datasets and events
Tue, May 31 2016 6:17 AMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Hi All,

I have a dataset created at runtime, but somehow i cannot access event
rowchanged for this dataset, is it not possible?

I have created a  type ->  procedure DatasetRuntimeRowChanged(Sender:
TObject; Column: TDataColumn);

and a procedure for it:

procedure TMainform.DatasetRuntimeRowChanged(Sender: TObject; Column:
TDataColumn);
begin
Showmessage('Go');
end;

Regards,

Hüseyin

Tue, May 31 2016 8:00 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Huseyin,

<< I have a dataset created at runtime, but somehow i cannot access event rowchanged for this dataset, is it not possible? >>

Did you assign the event handler to the TDataSet instance in code ?

Tim Young
Elevate Software
www.elevatesoft.com
Tue, May 31 2016 8:12 AMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Tim,

How do I do that? Smile

Regards,

Hüseyin


On 31-05-2016 14:00, Tim Young [Elevate Software] wrote:
> Huseyin,
>
> << I have a dataset created at runtime, but somehow i cannot access event rowchanged for this dataset, is it not possible? >>
>
> Did you assign the event handler to the TDataSet instance in code ?
>
> Tim Young
> Elevate Software
> www.elevatesoft.com
>
Tue, May 31 2016 9:17 AMPermanent Link

Raul

Team Elevate Team Elevate

On 5/31/2016 8:12 AM, Hüseyin Aliz wrote:
> How do I do that? Smile

Hüseyin,

You need to assign the procedure you created to OnRowChanged event handler.

When you're creating the dataset in code it's a good time to do this so
event is right away wired up :

myRuntimeCreatedDataset.OnRowChanged := DatasetRuntimeRowChanged;


Raul
Tue, May 31 2016 9:47 AMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Raul,

Thanks, tried and it works Smile

Regards,

Hüseyin


On 31-05-2016 15:17, Raul wrote:
> myRuntimeCreatedDataset.OnRowChanged := DatasetRuntimeRowChanged;
Image