![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, FM5 Windows XP A relationship Invoices::Vehicles allows record creation; uses a number for a match field. When a new instance of Vehicle is created as above, I would like to have vehicle record auto enter data from a field in the Invoices file using a Vehicles::Invoices relationship that uses the same match fields. So far it won't work, I suspect because of evaluation order. |
)
#3
| |||
| |||
|
#4
| |||
| |||
|
|
auto enter data works only once, at the creation of the record. |
)
#5
| |||
| |||
|
|
In article <0e976e29-a65c-4a38-961f-01594ce5fa7a (AT) googlegroups (DOT) com>, bilbod bjaynes (AT) montanaport (DOT) net> wrote: Hello, FM5 Windows XP A relationship Invoices::Vehicles allows record creation; uses a number for a match field. When a new instance of Vehicle is created as above, I would like to have vehicle record auto enter data from a field in the Invoices file using a Vehicles::Invoices relationship that uses the same match fields. So far it won't work, I suspect because of evaluation order. There's an option to only evaluate Auto-enter calculations when the referenced fields are not empty ... but it tends to be a bit flakey, so I enforce it within the calculation. Instead of the Field's auto-enter calucation being something like: = Invoices:VehicleField change it to be: = If (MatchField = "", "", Invoices:VehicleField) That way the auto-enter calculation remains empty until there is data in the MatchField (and hopefully then a valid Relationship link) before retrieving the VehicleFIeld data. Helpful Harry )
|
#6
| |||
| |||
|
|
In article <0e976e29-a65c-4a38-961f-01594ce5fa7a (AT) googlegroups (DOT) com>, bilbod bjaynes (AT) montanaport (DOT) net> wrote: Hello, FM5 Windows XP A relationship Invoices::Vehicles allows record creation; uses a number for a match field. When a new instance of Vehicle is created as above, I would like to have vehicle record auto enter data from a field in the Invoices file using a Vehicles::Invoices relationship that uses the same match fields. So far it won't work, I suspect because of evaluation order. There's an option to only evaluate Auto-enter calculations when the referenced fields are not empty ... but it tends to be a bit flakey, so I enforce it within the calculation. Instead of the Field's auto-enter calucation being something like: = Invoices:VehicleField change it to be: = If (MatchField = "", "", Invoices:VehicleField) That way the auto-enter calculation remains empty until there is data in the MatchField (and hopefully then a valid Relationship link) before retrieving the VehicleFIeld data. Helpful Harry )
|
#7
| |||
| |||
|
|
Since your New Customer ID is never going to change I don't see any reason to use an Auto Entered Value. Use a normal calculation instead. ursus "bilbod" schreef in bericht news:4f504aac-ace5-450a-86db-48303cce73da (AT) googlegroups (DOT) com... Hi Harry, Thanks so much for looking at this issue. Evidently you've had your own struggles with auto-enter. I did set up a field with your calculation and, so far, won't populate the field. The match field for a Vehicle on creation by ::invoice file is Vehicle ID in the Vehicle file, right side of relationship. We're after the ::customer ID which is already in ::Invoices, wanting Vehicle to auto enter that in its own Customer ID. So Customer ID Auto Enters by Calculation as below Case( Vehicle ID = "", "", Invoice::New Customer ID ) Is this what you were suggesting? Best regards, Bill On Wednesday, August 1, 2012 7:29:35 PM UTC-6, Helpful Harry wrote: In article <0e976e29-a65c-4a38-961f-01594ce5fa7a (AT) googlegroups (DOT) com>, bilbod bjaynes (AT) mot (DOT) net> wrote: Hello, FM5 Windows XP A relationship Invoices::Vehicles allows record creation; uses a number for a match field. When a new instance of Vehicle is created as above, I would like to have vehicle record auto enter data from a field in the Invoices file using a Vehicles::Invoices relationship that uses the same match fields. So far it won't work, I suspect because of evaluation order. There's an option to only evaluate Auto-enter calculations when the referenced fields are not empty ... but it tends to be a bit flakey, so I enforce it within the calculation. Instead of the Field's auto-enter calucation being something like: = Invoices:VehicleField change it to be: = If (MatchField = "", "", Invoices:VehicleField) That way the auto-enter calculation remains empty until there is data in the MatchField (and hopefully then a valid Relationship link) before retrieving the VehicleFIeld data. Helpful Harry )
|
#8
| |||
| |||
|
|
Hi Harry, Thanks so much for looking at this issue. Evidently you've had your own struggles with auto-enter. I did set up a field with your calculation and, so far, won't populate the field. The match field for a Vehicle on creation by ::invoice file is Vehicle ID in the Vehicle file, right side of relationship. We're after the ::customer ID which is already in ::Invoices, wanting Vehicle to auto enter that in its own Customer ID. So Customer ID Auto Enters by Calculation as below Case( Vehicle ID = "", "", Invoice::New Customer ID ) Is this what you were suggesting? |
)![]() |
| Thread Tools | |
| Display Modes | |
| |