I do initialize the button and can see it but the eep does not fire.
I noticed that the cut and paste did not do any justice on my code.
Here it is reformatted.
CREATEOBJECT bitbtn 'ceditunitbtn' 'RBASE_FORM' 345 525 96 41
SET VAR vquote = (CVAL('QUOTES'))
SET VAR vcommand1 TEXT = +
('PROPERTY rbase_form_action editviewunit '&vquote&' '&vquote&';RETURN')
PROPERTY ceditunitbtn 'Custom_EEP->OnClickEEP' .vcommand1
PROPERTY ceditunitbtn init true
PROPERTY ceditunitbtn caption 'Edit/View a Unit'
Dan Goldberg
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Emmitt Dove
Sent: Tuesday, April 28, 2009 9:08 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - RE: createobject
Dan,
Do you initialize the button?
You need to:
PROPERTY ceditunitbtn INIT 'TRUE'
... after the CREATE OBJECT before it will be available to use. I'd suggest
this be done before assigning the eep to execute.
Emmitt Dove
Manager, Converting Applications Development Evergreen Packaging, Inc.
[email protected]
(203) 214-5683 m
(203) 643-8022 o
(203) 643-8086 f
[email protected]
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dan Goldberg
Sent: Tuesday, April 28, 2009 11:43 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - createobject
I am playing with the create object for the first time and have run into a
couple of snags.
I am creating a bit button that runs a form action when pressed.
I have the code below running in the "after start eep" of the form.
CREATEOBJECT bitbtn 'ceditunitbtn' 'RBASE_FORM' 345 525 96 41 SET VAR vquote
= (CVAL('QUOTES')) SET VAR vcommand1 TEXT = + ('PROPERTY rbase_form_action
editviewunit '&vquote&' '&vquote&';RETURN') PROPERTY ceditunitbtn
'Custom_EEP->OnClickEEP' .vcommand1 PROPERTY ceditunitbtn init true PROPERTY
ceditunitbtn caption 'Edit/View a Unit'
1. It creates the button but when I click on the button the eep does not
fire.
2. I am using the "one clear blue" theme. The bit button created above does
not reflect the theme
and looks different than my other buttons.
I traced the eep and it does not give any errors when running.
Any suggestions or help is greatly appreciated.
Dan Goldberg