Home RAP
New Blog Posts: Merging Reports - Part 1 and Part 2

OnCreate event problem in version 11.06

edited September 2009 in RAP
Hi:

I upgraded from version 7 to version 11.06 enterprise of the report builder.

I have the following problem:

I do not use the Query designer.

In version 7 I replaced the sql text in the event "OnCreate".

In version 11 I am not working on event "OnCreate", if you do in the event
"OnInitializeParameters".

My problem is I have over 500 reports, which would be very difficult to make
the change, there is possibility that it works as in version 7 in the event
"OnCreate"?

Thanks

Edgar Britez
Sebaot Software

Comments

  • edited September 2009
    Ok...

    The problem is that when I try to replace the sql text in the event
    globaloncreate the rBuilder not make the change of sql text in the report.

    The same command in the event InitializeParameters working properly.

    Why not work in the event global oncreate ( in version 7 of rbuilder working
    properly)

    Recards

  • edited September 2009

    The timing of RAP Global OnCreate and OnInitializeParameters is almost
    identical. See ppReport.pas, the method TppReport.InitializeParameters. The
    OnCreate is fired, followed immediately by OnInitializeParameters.



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    "

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited September 2009

    Try using the DBDemos data to create a simple example project that
    demonstrates the issue. Send in zip format to support@digital-metaphors.com
    and we can research it here.

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited September 2009
    Already happens on the create event runs only once in rb 11. In rb 7 was
    always performed

    Thanks
  • edited September 2009

    This feature is working as designed. The RAP global OnCreate should only
    fire a single time. Firing multiple times was a bug reported long long ago
    and caused memory leaks and broken code.

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.