At 12:25 AM 6/2/2005, Javier Valencia wrote:

I really like being able to have all the form code contained within the form,
it is particularly helpful when upgrading version as the new form file has
all the support code. There is one place, Table Settings, that still requires
external EEPs such as "After Saving row;" has anyone figure out a way to
do this from an internal EEP? Can a Custom Action be called from this
location? It would sure be nice to have the capability to save the EEPs in
this section with the form. I can probably use a stored procedure but it
would defeat the purpose of having all the code within the form.

Javier,

Did you know that R:BASE 7.5 for Windows, includes
that feature?

http://www.rbase.com/rbg75

Here's how:

01. Start RBG75

02. Form Designer |Main Menu |Tables | Add Remove Tables...

    Table Settings ...

    Notice the "Custom" EEP options for:

    . On Row Entry
    . On Row Exit
    . After Saving Row
    . After Leaving Row

03. For a sample form to demonstrate this feature:

    Start RBG75
    CONNect to RRBYW10
    Database Explorer | Forms | SalesTransaction | Design
    Form Designer |Main Menu |Tables | Add Remove Tables...
    Notice the "Custom" EEP defined as "On Row Entry"


Next question, is there a PROPERTY option that would change the status of a form
from EDIT to BROWSE from within the form? What I want to do is call the form:
EDIT USING my_form WHERE my_condition
And on then from the "On Before Start EEP" or "On After Start EEP" check the user
privilege and if necessary change the status to BROWSE so only viewing and no
editing is allowed.


Here's how:

PROPERTY RBASE_FORM ENABLED 'FALSE'
RETURN

That will take care of everything!

For complete details and more options, refer to R:Docs!

Enjoy and make sure to have fun!

Very Best R:egards,

Razzak.

Reply via email to