I think that I've got Trace etched onto my eyeballs at the moment, Jan.
What happens is that on return to form 1 "SET VAR vColID TEXT =
.RBTI_FORM_COMPID"
evaluates as the last field exited from form 2.
Regards,
Alastair.
----- Original Message -----
From: jan johansen
To: RBASE-L Mailing List
Sent: Tuesday, July 21, 2009 8:48 PM
Subject: [RBASE-L] - Re: I'm not understanding a Form Property properly
Alastair,
In that case put a SET TRACE ON somewhere in Form1 so you can find out
what is going on.
Jan
-----Original Message-----
From: "Alastair Burr" <[email protected]>
To: [email protected] (RBASE-L Mailing List)
Date: Tue, 21 Jul 2009 20:38:28 +0100
Subject: [RBASE-L] - Re: I'm not understanding a Form Property properly
Thanks Jan & Victor.
I am getting the data okay and updating the first form once. It's just that
I don't seem able to repeat the process as the component id of the field on the
first form is getting picked up as the last field on the second form second
(and subsequent) times around the process. It's weird.
Regards,
Alastair.
----- Original Message -----
From: Victor Timmons
To: RBASE-L Mailing List
Sent: Tuesday, July 21, 2009 7:58 PM
Subject: [RBASE-L] - Re: I'm not understanding a Form Property properly
I think it would be more like this
EDIT USING Form1 +
MDI AS DataForm
What ever
EDIT USING FORM2
PROPERTYY DataForm ComponentID TEXTVALUE .vForm2ComponentID
Something like this
--------------------------------------------------------------------------
From: [email protected] [mailto:[email protected]] On Behalf Of jan
johansen
Sent: Tuesday, July 21, 2009 10:53 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: I'm not understanding a Form Property properly
Alastair,
If I am understanding correctly,
Form 1 has the enhanced speed button
Form 2 has the field you wish captured
In Form2 utilize a component ID such as
Form2ComponentID.
In On Exit EEP of the componet place
GETPROPERTY Form2ComponentID TEXTVALUE vForm2ComponentID
In Form 1 place a componentID on the field to receive the data.
In the enhanced speed button you should have something like
EDIT USING Form2
PROPERTY Form1ComponentID TEXTVALUE .vForm2ComponentID
RETURN
Jan
-----Original Message-----
From: "Alastair Burr" <[email protected]>
To: [email protected] (RBASE-L Mailing List)
Date: Tue, 21 Jul 2009 18:36:57 +0100
Subject: [RBASE-L] - I'm not understanding a Form Property properly
Hi all,
I'm probably trying to be too clever for my own good:
A bit of background first - what I want to do is to capture the
identity of a field on a form, then run another form by clicking on an enhanced
speed button (no focus), insert data from second form to the field on first
form (this works), then call the second form again.
What's happening is that the identity of the field is being changed
when I go back to first form to that of the last field on the second form and I
can't see why.
To try and force the identity to be re-captured correctly I have added
the following:
PROPERTY 'Images_SR|RBASE_FORM' SET_FOCUS 'TRUE' which gives an error
that the "component [name] not found in current form";
PROPERTY 'IDE_ImageTitle' SET_FOCUS 'TRUE' - which gives no error;
and also tried:
PROPERTY 'Images_SR|IDE_ImageTitle' SET_FOCUS 'TRUE' - which also gives
an error that the "component [name] not found in current form";
In all cases the cursor appears to be in the correct field on the
correct form on returning to the first form.
This is the code that captures the form & field data and the &Action
gets the right value the first time but not on any subsequent attempts because
vColID is then wrong:
SET= .RBTI_FORM_COMPID
SET VAR vFormID TEXT = . RBTI_FORM_FORMNAME
SET VAR vAction TEXT = ( 'GETPROPERTY' & . vColID & 'TEXTVALUE
vCopyName' )
& vAction
VAR vColID TEXT
and this is my attempt to force it:
SET= +
('PROPERTY' & . vQuotes + . vFormID + '|RBASE_FORM' + . vQuotes &
'SET_FOCUS ''TRUE'' ')
& vAction
SET VAR vAction TEXT = +
('PROPERTY' & . vQuotes + . vColID + . vQuotes & 'SET_FOCUS ''TRUE'' ' )
& vAction
VAR vAction TEXT
I must be missing something obvious but it's eluding me so any hints
gratefully accepted,
Regards,
Alastair
----------------------------
Alastair Burr
St. Albans
, UK.
[email protected]
-----------------------------
--------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.392 / Virus Database: 270.13.21/2252 - Release Date:
07/21/09 05:58:00
------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.392 / Virus Database: 270.13.21/2252 - Release Date: 07/21/09
05:58:00