James,
You can call a Custom from action only from within the form where it is
defined. However, there are ways where you can store the code you want and call
from anywhere you want.
For example. I have a set of Administrative tasks that I like to run from
within many forms and thus I created a table where I store the code and then I
called as needed. The table structure is as follows:
Table: IntCmd
Descr: Table to Store Internal Commands for EEPs
No. Column Name Attributes
--- ------------------ ------------------------------------------------------
1 CmdName Type : TEXT 18 NOT NULL
Consrnt: PRIMARY KEY
2 CmdData Type : LONG VARCHAR NOT NULL
Current number of rows: 9
I have currently 9 universal command stored. I assign a name to the code and
store it in the CmdName column and store the actual code in the CmdData column,
then I can call that code from anywhere using the command
RUN SELECT CmdData FROM IntCmd WHERE CmdName = 'RemoteAdmin'
In this case the name of the code I want to run is “RemoteAdmin” minus the
quotes of course. It work very well and I believe it is what you are looking
for.
Javier,
Javier Valencia, PE
O: 913-829-0888
H: 913-397-9605
C: 913-915-3137
From: [email protected] [mailto:[email protected]] On Behalf Of James Bentley
Sent: Thursday, May 28, 2015 11:16 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Forms: Custon Form Action
Within a form you can define eeps for the following events:
* On Before Start EEP
* On After Start EEP
* On Before Design Action
* On Close Designer Action
my question is if I have defined a Custom Form Action
Say "DefFormVariables"
Are there restrictions on when I can use
PROPERTY RBASE_FORM_ACTION DefFormVariables ' '
I have several forms that require extensive
SET VARIABLE statements.
I would like to consolidate them into a Form Custom Action
and call them in then above mentioned EEPs. I can not find
in the Help Documentation a mention of restrictions on using a
PROPERTY RBASE_FORM_ACTION command.
Any help would be appreciated.
Jim Bentley,
American Celiac Society
1-504-737-3293