At 03:54 PM 10/1/2013, Dick Fey wrote:

OK all.... have this working perfectly, but would like to add one more thing
if possible.

I would like to do a Dialog box, allowing the user to either continue into
the menu, or kick out to the RPrompt, allowing custom command lines.

Have not been able to get this to work.  Perhaps it won't.

Advise?


Dick,

Remember, nothing is impossible!

Here's how:

01. Start R:BASE eXtreme 9.5 (32/64), Build: 9.5.3.21008 or higher ...

02. Open the application (.rba) form using the Application Designer

03. Use the following sample code as "On Start Action" ...

    Application Designer | Properties | On Start Action

    -- Sample code ...
    -- On After Start Action for R:BASE Application (.RBA) Form
    -- To continue using the RBA Menu or Switch to R> Prompt
    SET VAR vYesNo TEXT = 'No'
    SET VAR vEndKey TEXT = NULL
    DIALOG +
'Would You Like to Continue Using this Application or Switch to R> Prompt?' +
    vYesNo vEndKey Yes +
    CAPTION 'Make Up Your Mind ...' ICON QUESTION +
    OPTION MESSAGE_FONT_NAME Tahoma +
    |MESSAGE_FONT_COLOR NAVY +
    |MESSAGE_FONT_SIZE 11 +
    |BUTTON_YES_CAPTION Use &App +
    |BUTTON_NO_CAPTION Switch to &R> +
    |THEMENAME Longhorn
    IF vYesNo = 'No' OR vEndKey = '[Esc]' THEN
       PROPERTY RBA_FORM CLOSE 'TRUE'
    ENDIF
    CLEAR VARIABLES vYesNo,vEndKey
    RETURN

    -- The Dialog Message should look like this ...
    http://www.razzak.com/tips/RBA_On_After_Action.jpg

04. Save the application

That's all there is to it!

Please feel free to reach out to me with any questions.

Very Best R:egards,

Razzak.



On 10/1/2013 12:20 PM, A. Razzak Memon wrote:
At 01:01 PM 10/1/2013, Dick Fey wrote:

We have an excellent Menu system, built with Application Designer that
works on our current database.

At Year end, we save a copy of the current DB, under a newname, ie:
'YrEnd12' and store it in  "PrevYears"  Directory We then purge most
data older than 1 year from the current database.

It would be nice for employees to open those old DB's using our current
application.

I would like to make a copy of our current application using a different
name, that would start with a choose command before opening, allowing a
user to open a previous years DB and run the application on it.

Since the selection of a Database in Applicaton Designer is done before
the on start action is begun, I don't see how this is possible. I know
I could create a copy of the app for each year, but that seems more
difficult than should be necessary.

Any ideas ?


Dick,

Your current application file (.rba) most likely includes the built-in
Database Name and Path. This setup will ALWAYS connect to the identified
database.

Keeping that scenario in perspective, you have two (2) options to achieve
your desired goal.

01. Remove the Database Name & Path from your current application (.rba)
    using the Application Designer and use the custom EEP to prompt
    users to CHOOSE the appropriate database as "On Start Action".

    -- To Remove Database Name and Path
    Application Designer | Main Menu | Options | Set Database and Path

    -- To Create Custom CHOOSE Command to Select Database
    Application Designer | Properties | On Start Action

02. Re-Design a cool application using the "External Form" (.rff) which
    provides unlimited features, controls, design options, form actions,
    and is not associated with any database.

Hope that helps!

Please feel free to reach out to me with further questions.

Very Best R:egards,

Razzak.

www.rbase.com
www.facebook.com/rbase

--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE: Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body, place any text to search for.
================================================


Reply via email to