C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

DataSetLogic AfterGenerateSql event is not firing when used on a SchemaRef

rated by 0 users
This post has 1 Reply | 0 Followers

Top 100 Contributor
Posts 53
Elmar Posted: Wed, Apr 22 2009 12:20 PM
hello!
i have a datalibrary class and a winform project.
on the form i place a c1schemaref and a c1datasetlogic (referencing
schemaref).

now the problem:
aftergeneratesql is not firing.

it's not a big thing, since i can work around...
am i missing somehing or is it planned behaviour?

kind regards
elmar
Top 10 Contributor
Posts 1,645
Hi Elmar,

I see no problem with a C1SchemaRef. You may take a look at
the attached application. I have added the following handler
to the C1DataSetLogic.AfterGenerateSql event in DataClass1:

private void c1DataSetLogic1_AfterGenerateSql(object sender, GenerateSqlEventArgs e)
{
Debug.WriteLine("AfterGenerateSql");
}

And I can see this message when running the program in debug mode.

> on the form i place a c1schemaref and a c1datasetlogic (referencing
> schemaref).

"on the form"? And how many forms are in your datalibrary? :)

If you placed a C1SchemaRef in the winform project it won't work.
The C1SchemaRef must be in the same project as C1SchemaDef.
They will not find each other otherwise.

Regards,

-Andrey
Page 1 of 1 (2 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.