dbTalk Databases Forums  

Frustration with auto-enter fields

comp.databases.filemaker comp.databases.filemaker


Discuss Frustration with auto-enter fields in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Helpful Harry
 
Posts: n/a

Default Re: Frustration with auto-enter fields - 08-26-2005 , 06:41 PM






In article <11gqjao5j5hdi14 (AT) corp (DOT) supernews.com>, Howard Schlossberg
<howard (AT) antispahm (DOT) fmprosolutions.com> wrote:
Quote:
This is exactly the discussion going on in another group I belong to:
"can auto-enter calcs replace true calcs". Jury's still out on this,
but probably not. Just like a stored calc, an auto-enter calc requires
one of its field parameters to change in order to trigger the calc
itself to change. So if you have a calc of:

case(a=b+c, d, e)
then a, b or c would need to change in order for the new value of either
d or e to fill in. But if you want the calc to update when 'f' changes,
then you need to include 'f' in the calc, something like:

case(f="Never", "Nothing", a=b+c, d, e)
This will always force itself to re-evaluate whenever f changes,
assuming that f will never be equal to "Never". If f changes and it is
something other then "Never", then it will evaluate a=b+c and result in
either d or e.

There are other tricks to getting around the trigger problem, to have
the calc re-evaluate itself every time the record is committed, for
example, by having it evaluate the 'last modified time'.

So in this way, an auto-enter calc can behave just like a stored calc
field, and almost like a lookup field. With the LookupNext() function,
it can behave exactly like a lookup field.

A benefit to the auto-enter calc over a regular stored calc is that the
auto-enter can contain the value of related fields. But like a stored
calc, an auto-enter calc cannot be triggered by a related field as its
parameter. In other words, the related value can be part of the result,
but changes to the related field itself will not trigger the calc to
refresh, even if that related field is part of the parameter.

Hope this is all somewhat enlightening to someone...
Clear as mud. ;o)

That sort-of makes sense, but I think I'd have to play with some
examples before I really understood it fully ... if I ever have to
upgrade my version of FileMaker.

Hopefully they can still work the "normal" way as well using some
checkbox option so that the auto-enter calculation doesn't update at
all even if the source fields do. Otherwise it'll break some databases
that rely on the old way auto-enter fields work.



Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
  #12  
Old   
Dan
 
Posts: n/a

Default Re: Frustration with auto-enter fields - 08-27-2005 , 05:11 AM






Hi Harry

Yes they do work in the normal way if you select Do Not Replace Existing
Contents if any which, if I recall correctly, is the default option in
v7 when you select a calculated Auto-enter.

I have converted some v3 files without any problem - although I confess
I am looking carefully at them to see if there is room for updating the
Auto-enters.


Helpful Harry wrote:
<SNIP>
Quote:
Hopefully they can still work the "normal" way as well using some
checkbox option so that the auto-enter calculation doesn't update at
all even if the source fields do. Otherwise it'll break some databases
that rely on the old way auto-enter fields work.



Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships
;o)
--
Dan
Using
FMP7.03, WinXP SP2




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.