You can access properties of components of another form using the following
construct:
The Called Form must have a CompID.
GETPROPERTY NameOfFormCompID|CompID Property 'vSomeTextVariable'
----- Original Message -----
From: "Jim Belisle" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Friday, April 10, 2009 8:42 AM
Subject: [RBASE-L] - RE: Get Property
John,
You hit the nail on the head. I am just starting to use the Component
functions so I understand the concept but do not know how to apply them
yet.
Jim
________________________________
From: [email protected] [mailto:[email protected]] On Behalf Of John
Engwer
Sent: Thursday, April 09, 2009 9:53 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - RE: Get Property
Jim, I believe your "GETPROPERTY Order_Model TEXTVALUE vModel" needs to
be in the KayParkProduct form.
John
From: [email protected] [mailto:[email protected]] On Behalf Of Jim
Belisle
Sent: Thursday, April 09, 2009 9:23 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Get Property
Often, our sales people have a need to enter a new product into the
PRODUCT table while giving a quote. This is due to a slight change in
an already existing product. I have a BIT button places on the detail
line that will bring up the form.
Now what I want to do is have specific fields entered into another table
I have so I will know I have to format the new product. I gave the
MODEL field a component ID of Order_Model. Here is the EEP that IS in
the BIT button
SET VAR vFormMode = 'Enter'
ENTER USING KayParkProduct FOR 1 ROW
PROPERTY Order_Model REFRESHLIST TRUE
GETPROPERTY Order_Model TEXTVALUE vModel
INSERT INTO PRODUCT_NEW VALUES +
(.vOrderID, .vModel, 'N', 'N', 'N', 'N', 'N', 'N', 'N', '-0-')
RETURN
I am able to enter the new item into the PRODUCT table. The OrderID and
all the other values are entered into the PRODUCT_NEW table
EXCEPT the model. The field is blank in the table.
I know this is simple, but your help is appreciated.
Jim