![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
FMP 8 Adv: I have a text field and a number field that require auto-enter. They need to be data fields, no way to use calc. The text field has auto-entry lookup. I get the correct value as soon as I create the DS resp. have data up in the fields on the left side of the relation. The value of the number field is an auto-enter lookup, too, but the above mentioned text field is on the left side of the relation I use. As soon as I put data in the text field, the auto-enter of the number field works. However, the number field remains empty when I create a new record, althouth the text field has received its value. I need to refill the text field in order to trigger the auto-enter of the number field. I have tried auto-entry lookup and auto-entry calculation, evaluate and If ( 1 oder text field) both, but no joy. Seems there's no other way than to script it? |
(
)
#3
| |||
| |||
|
|
NumberField Auto-enter by calculation = If ( (NeededField1 = "") or (NeededField2 = "") or ...; ""; NeededField1 & NeededField2 & ... ) Basically you have to test to see if any of the required Fields are emtpy. If they are then leave the auto-enter Field empty as well, otherwise perform the calculation. FileMaker seems to see the empty auto-enter Field as "unprocessed" and calculates properly once all the required Fields have their data. |
#4
| |||
| |||
|
|
Helpful Harry wrote: NumberField Auto-enter by calculation = If ( (NeededField1 = "") or (NeededField2 = "") or ...; ""; NeededField1 & NeededField2 & ... ) Basically you have to test to see if any of the required Fields are emtpy. If they are then leave the auto-enter Field empty as well, otherwise perform the calculation. FileMaker seems to see the empty auto-enter Field as "unprocessed" and calculates properly once all the required Fields have their data. Great! It works with FMP 10 and gets me a correct value in the number field. It doesn't work for a second number fields that depends on a calc that depends on the first number field, but that's another story :-) |
)![]() |
| Thread Tools | |
| Display Modes | |
| |