At 08:27 AM 3/16/2008, Lin MacDonald wrote:
Razzak;
That's great. And, I found a 'left-over' eep that should have been
removed that way!!
But what I was hoping to be able to see was even more basic than that.
I wanted to see what the commands were behind the "Predefined" EEps
that you could use. Is that possible somehow?
Lin,
Hmmm... we never had a request to document the action behind any
Predefined EEPs. This might be something valuable to document the
form.
You may submit an enhancement request for R:BASE 9.0 for Windows.
http://www.rbase.com/rbg9rdcc/
On the other hand, you can dynamically assign/change the Predefined
EEP action using the following PROPERTY command:
Syntax:
PROPERTY <BuutonCompID> EEPNum nn
Where "nn" is the internally assigned ID for Predefined action.
. Add Row (0)
. Add Row and Exit (1)
. Delete Row (2)
. Discard Row (3)
. Discard Row and Exit (4)
. Duplicate Row (5)
. Exit (6)
. Next Row (7)
. Next Table (8)
. Previous Row (9)
. Previous Table (10)
. Save Row (11)
. Last Row (12)
. First Row (13)
. Save Row and Exit (14)
. Refresh Current Table (15)
Let's say you would like to assign/change the Predefined Action for
'Test Button' with Component ID 'CompID_PB' to 'Discard Row and Exit'.
You would use the following PROPERTY command:
-- Example 01
PROPERTY CompID_PB EEP ' '
PROPERTY CompID EEPNum 4
RETURN
The first PROPERTY command tells the form not to use Custom Embedded
EEP. The second PROPERTY command assigns 'Discard Row and Exit' as
the Predefined Action for Push Button.
Let's say you wish to use the External EEP named 'MyCustomEEP.EEP'
as the Custom External file. You would use the following command:
-- Example 02
PROPERTY CompID_PB EEPNum -1
PROPERTY CompID_PB EEP 'MyCustomEEP.EEP'
RETURN
The first PROPERTY command tells the form that you'll be using Custom
(External) file. The second PROPERTY command defines the actual name
of external EEP.
To use Stored Procedure (if defined in the same database) as an EEP,
use the following PROPERTY command:
-- Example 03
PROPERTY <ComponentID> EEP ' '
PROPERTY <ComponentID> EEPNum -2
PROPERTY <ComponentID> EEP 'StoredProcedureName'
RETURN
To use the Built-In Custom Form Action as an EEP, use the following
command:
-- Example 04
PROPERTY <ComponentID> EEP ' '
PROPERTY <ComponentID> EEPNum -3
PROPERTY <ComponentID> EEP 'CustomFormActionCommandName'
RETURN
Very Best R:egards,
Razzak.