Re: DataSetLogic AfterGenerateSql event is not firing when used on a SchemaRef

WinForms

ComponentOne's WinForms controls

DataSetLogic AfterGenerateSql event is not firing when used on a SchemaRef

  • rated by 0 users
  • This post has 1 Reply |
  • 0 Followers
  • 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
  • Test.zip
    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)