# Looked-up value vs. Auto-Enter \> Calculated value

**URL:** <https://the.fmsoup.org/t/looked-up-value-vs-auto-enter-calculated-value/1232>\
**Category:** Lounge (Discussions)\
**Created:** [August 10, 2020, 1:27pm UTC](https://the.fmsoup.org/t/looked-up-value-vs-auto-enter-calculated-value/1232 "2020-08-10T13:27:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonywhitelive](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/tonywhitelive/32/208_2.png) [@tonywhitelive](https://the.fmsoup.org/u/tonywhitelive)\
**Post date:** [August 10, 2020, 1:27pm UTC](https://the.fmsoup.org/t/looked-up-value-vs-auto-enter-calculated-value/1232/1 "2020-08-10T13:27:59Z")

</div>

One of the code modernizations that we like is converting Look-ups to Auto-Enters.

There seem to be a number of advantages to this and (other than repeating fields) no disadvantages.

Side note: Supertrim is a custom function (that I should lower case).

> **[FileMaker Custom Function: Supertrim ( text )](https://www.briandunning.com/cf/904)**
>
> Speedily (and with no recursion) remove leading and trailing white space (including spacing, tabs, returns and line feeds) from a text string.

This infoG is a bit rough around the edges...but still useful as is and perhaps to spark some additional thoughts.

Happy Monday.

 ![FileMaker Looked-up values vs. AEs_2020-08-10_v3.2](https://canada1.discourse-cdn.com/flex030/uploads/fmsoup/original/1X/0a314e4cca6bbf9146c25563ed71c15ae81cd6b5.png)

---

<div class="post-metadata">

**Author:** ![Cecile](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/cecile/32/98_2.png) [@Cecile](https://the.fmsoup.org/u/Cecile)\
**Post date:** [August 10, 2020, 3:08pm UTC](https://the.fmsoup.org/t/looked-up-value-vs-auto-enter-calculated-value/1232/2 "2020-08-10T15:08:42Z")

</div>

You mean converting a lookup script step into an auto enter by lookup?

---

<div class="post-metadata">

**Author:** ![tonywhitelive](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/tonywhitelive/32/208_2.png) [@tonywhitelive](https://the.fmsoup.org/u/tonywhitelive)\
**Post date:** [August 10, 2020, 3:24pm UTC](https://the.fmsoup.org/t/looked-up-value-vs-auto-enter-calculated-value/1232/3 "2020-08-10T15:24:48Z")

</div>

We like to convert LUs (a feature on the field definitions level...as shown above) to AEs (also on the field def level...as shown above)

In some cases we replace AEs with Scripted set field flows using pick list...a topic to itself.

---

<div class="post-metadata">

**Author:** ![Markus](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@Markus](https://the.fmsoup.org/u/Markus)\
**Post date:** [August 10, 2020, 3:30pm UTC](https://the.fmsoup.org/t/looked-up-value-vs-auto-enter-calculated-value/1232/4 "2020-08-10T15:30:41Z")

</div>

I got a new solution where the customer wants reporting based on a 14-days intervall, beginning on a date in the middle of a month, not on the first day of the interval...

How do we get the date of that intervall (first day of each 14-days interval)? Well... create a table with records for those 'milestones' - then do a lookup with the current date (or each other date) with the option to fill in the next lower value if there us no match. Easy...

---

<div class="post-metadata">

**Author:** ![jormond](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@jormond](https://the.fmsoup.org/u/jormond)\
**Post date:** [August 10, 2020, 8:43pm UTC](https://the.fmsoup.org/t/looked-up-value-vs-auto-enter-calculated-value/1232/5 "2020-08-10T20:43:53Z")

</div>

We have moved to not using schema-level calculations as much as possible. If we convert something, we pull it into our transaction model, and handle everything in a script.

The idea being: If a change is significant enough to trigger other data changes, it should be handled transactionally and be logged. Using an approach similar to Geist Interactive's Karbon, it is usually a fairly easy change to make, and all data manipulation is moved to a single space where it is logged and transaction safe.
