![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi everybody, I'm having trouble getting an auto-enter field to work properly. Basically, I want a text field that will auto-fill with a single word and never change. I am using this as a way to filter a portal; I have a 'Contacts' table that connects to a 'Contacts Log' table by userID, and I want to filter out just the "Phone Call" entries. I have tried creating: 1.A global text field, g_PhoneCall, that I set by hand. Problem here is the value seems to occasionally erase itself (possibly due to the multi-user environment?) 2. A global text field with "auto-enter" of value "Phone Call". The value remains blank until I create a new record. I don't understand the impact this will have. If I manually create a record to perform the auto-fill, will it stay set forever? Or do I have to worry about it not being set on various client machines? 3. A calculation field with value "Phone Call". Same as 2., it only fills when I create a new record. Any clarification of how these different options work would be much appreciated. Kevin |
#3
| |||
| |||
|
|
I'm having trouble getting an auto-enter field to work properly. Basically, I want a text field that will auto-fill with a single word and never change. I am using this as a way to filter a portal; I have a 'Contacts' table that connects to a 'Contacts Log' table by userID, and I want to filter out just the "Phone Call" entries. I have tried creating: 1.A global text field, g_PhoneCall, that I set by hand. Problem here is the value seems to occasionally erase itself (possibly due to the multi-user environment?) |
|
2. A global text field with "auto-enter" of value "Phone Call". The value remains blank until I create a new record. I don't understand the impact this will have. If I manually create a record to perform the auto-fill, will it stay set forever? Or do I have to worry about it not being set on various client machines? |
|
3. A calculation field with value "Phone Call". Same as 2., it only fills when I create a new record. |
#4
| |||
| |||
|
|
2. A global text field with "auto-enter" of value "Phone Call". The value remains blank until I create a new record. I don't understand the impact this will have. If I manually create a record to perform the auto-fill, will it stay set forever? Or do I have to worry about it not being set on various client machines? 3. A calculation field with value "Phone Call". Same as 2., it only fills when I create a new record. |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
On Wed, 24 Aug 2005 08:57:00 +1200, Helpful Harry wrote: Auto-enter options are only "run" when a record is created, so you WILL only get the value in new records. For existing records you'll have to set the field's value manually or using the Replace option (VERY carefully - make a backup first!) found in the Records menu. Are you sure? So how could the checkbox make sense to override field contents? To my knowledge an auto enter fields works very much as the former lookup fields, while you may use auto enter now recursively, checking its own contents. Thus auto-enter may be performed whenever one of the used fields (for auto-enter by calculation) is changed. For that reason an auto-enter field may be even more powerful than a calculation field. - Martin |
#7
| |||
| |||
|
|
On Wed, 24 Aug 2005 08:57:00 +1200, Helpful Harry wrote: Auto-enter options are only "run" when a record is created, so you WILL only get the value in new records. For existing records you'll have to set the field's value manually, via a script or using the Replace option (VERY carefully - make a backup first!) found in the Records menu. Are you sure? So how could the checkbox make sense to override field contents? To my knowledge an auto enter fields works very much as the former lookup fields, while you may use auto enter now recursively, checking its own contents. Thus auto-enter may be performed whenever one of the used fields (for auto-enter by calculation) is changed. For that reason an auto-enter field may be even more powerful than a calculation field. |
#8
| |||
| |||
|
|
In article <slrndgojts.sm3.t-use (AT) ID-685 (DOT) user.individual.de>, Martin Trautmann <t-use (AT) gmx (DOT) net> wrote: On Wed, 24 Aug 2005 08:57:00 +1200, Helpful Harry wrote: Auto-enter options are only "run" when a record is created, so you WILL only get the value in new records. For existing records you'll have to set the field's value manually, via a script or using the Replace option (VERY carefully - make a backup first!) found in the Records menu. Are you sure? So how could the checkbox make sense to override field contents? To my knowledge an auto enter fields works very much as the former lookup fields, while you may use auto enter now recursively, checking its own contents. Thus auto-enter may be performed whenever one of the used fields (for auto-enter by calculation) is changed. For that reason an auto-enter field may be even more powerful than a calculation field. I'm positive that this is how auto-enter fields work, before Filemaker 7 anyway. Normal fields using "auto-enter" options (whether that's data, calculation, lookup, etc.) only get their data when the record is created ... OR by a bit of trickery, when the fields they're based on get data. Obviously this last option doesn't work when using the Data option, since that's hard-coded into the field's definition. These fields can have this initial data over-ridden / changed by later data entered by the user, a script, etc., but it can't change automatically simply when any of the fields it's based on are changed - that's what Calculation fields are for. For Filemaker 7 and onwards, I have no real idea, but such a drastic change in the ability would break quite a few existing databases so I doubt it's changed THAT much. Helpful Harry Hopefully helping harassed humans happily handle handiwork hardships ;o) |
#9
| |||
| |||
|
|
I cannot say what the situation was in earlier versions than 7 but I can say that Auto-enter is really too mild a description for what is possible now. Auto-update would be a better name in some cases.. A simple example put on a forum by "Queue" demonstrating conversion from inches to centimeters and vice-versa was the trigger as far as I was concerned Make Cent a number with an auto-enter calculation, and 'do not replace existing value' deselected, of If( Get(ActiveFieldName) = "Inch"; 2.54 * Inch; Cent ) Similarly, make Inch an auto-enter calc, with 'do not replace existing value' deselected, of If( Get(ActiveFieldName) = "Cent"; Cent / 2.54; Inch ) . Enter a value into one of these fields and it is automatically converted into the other. I've extended this idea in one of my solutions to do auto-updating calculations between Net, Tax,Gross and including taking into account TaxRate changes; but the possibilities are endless. |
#10
| |||
| |||
|
|
In article <FfydneGHPr2ncJHeRVnyjQ (AT) brightview (DOT) com>, "Dan" <dan (AT) owlsnet (DOT) co.uk> wrote: Enter a value into one of these fields and it is automatically converted into the other. I've extended this idea in one of my solutions to do auto-updating calculations between Net, Tax,Gross and including taking into account TaxRate changes; but the possibilities are endless. OK, so you enter a Cent data value and Inch auto-enter the converted value ... BUT, what happens if you the change the value of Cent (or Inch for that matter)?? In pre-7 versions of FileMaker the auto-enter field would stay with the original value. If in version 7 they can now alter their own values (presumably user-definable to allow compatibility with older versions) when the source field changes, then they're sort of a cross between normal fields and Calculation fields - they automatically change if the source field changes, but can also be manually entered into. That is useful in some situations (in pre-7 versions you have to do a workaround), but it makes pure Calculation fields a bit redundant - you would simply use one of these new-fangled "auto-update" fields and turn off the 'allow changes' option. |
![]() |
| Thread Tools | |
| Display Modes | |
| |