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

Extending DADE: hints on deriving TdaSession

edited October 2005 in Server
Hi.

I am in progress work to make a system for expanding DADE to use JvUIB
components (jcl + jvcl freeware Delphi components for
Interbase/Firebird) modifyng another freeware source.

I have some question and i haven't found answer in this list.

In TdaSession there isn't a method to call for prompting user to input
username, password and role. And eventually databasename.
Are there any pratical solution already built-in? I've not found
anything suitable navigating source code, but i was in a hurry.

Actually the simplest (but unprotected) solution seems code them into
source because native TJvUIBDataBase has not a LoginPrompt property, but
only a BeforeConnect event.
I don't like to do so; anyway is not simple to connect a procedure of
object (as a TNotifyEvent) in a class function: assigning to don't work
(obviously) and other systems lead to other package compilation error.

The simplest solution may be to derive TJvUIBDataBase and initialize
BeforeConnect event in the descendant Create() method but apparently
this give designtime errors. I've not considered actually to build a
property editor to initialize Database properties, but this maybe the
only viable solution.

Can You help me with some hints?

Many thanks in advance.

Development system is Delphi 2005 with reportbuilder server.


Dott. Umberto Masotti.
Università "G.d'Annunzio"
Chieti-Pescara

Comments

  • edited October 2005

    1. First check out the RBuilder\Demos\EndUser Databases\Interbase examples.
    You need to understand how these work for IBExpress and/or BDEExpress.

    There is a TIBConnection or TDatabase component that you place on the
    end-form. It contains the connection parameters and login prompt info. You
    then set the Designer.DatabaseSettings to reference the connection
    component.

    2. Simplest approach to creating a new DADE plug-in is to use an existing
    one as a starting point. Save it under a new name then modify the class
    names and implementations. For example you could use daIBExpress the DADE
    plug-in for Interbase Express as a starting point.







    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2005
    Nard Moseley (Digital Metaphors) wrote:

    Ok. It works. Only some debugging needed.


    I've now a new functional DADE plug-in for Project Jedi UIB objects,
    freeware set of components they claims to be multithreaded and
    compatible with Firebird 1.5.x and 2.0.
    I will test continously in the future, because i'll use in our web
    server reporting system.

    I may donate to public domain, if are people that need them.

    Thanks again.

    Dott. Umberto Masotti
    Università "G.d'Annunzio"
    Chieti-Pescara
  • edited October 2005

    Congrats :)

    If you decide you would like make the plug-in available to other developers,
    we can add a listing to the DADE plug-ins page on our web site

    http://www.digital-metaphors.com/download/dade_plugins.html




    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2005
    Hi,

  • edited October 2005

    Please send the .zip file to support@digital-metaphors.com.

    Include a brief description similar to the other entries on the DADE
    plug-ins page.

    Note: We can either host the download file on our web server or link URL on
    another site.


    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com



    Best regards,

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