Page 1 of 1

Lookup Field Setup

Posted: 2021-04-19 19:26
by AEmpeno
I have three tables:
Cherry -> Sort -> Ship.

I set up all my field names in the "Ship" table as lookup field to "Sort", and I set up all my field names in "Sort" as lookup field to "Cherry". If I picked an id number in the "Ship" table all the lookup field names show the correct value, but once I hit save, it saved all lookup field names saved the id number instead of the actual value.

Does anyone experience this? Am I using the lookup field too much which preventing me to get the correct value?

Re: Lookup Field Setup

Posted: 2021-04-19 21:02
by pbottcher
Hi,

not sure I get your question, but the lookup will always store the ID ( Primary Key) of the table that contains the actual value.
Maybe you can post an example.

Re: Lookup Field Setup

Posted: 2021-04-19 21:29
by AEmpeno
Here is the Before SAVE

Re: Lookup Field Setup

Posted: 2021-04-19 21:29
by AEmpeno
After SAVE

Re: Lookup Field Setup

Posted: 2021-04-20 15:54
by pfrumkin
Yep, as @pböttcher said AG will store the id of the record, not the data itself. This makes sense so that you aren't storing data multiple times. You get the bonus that if you change the data, you change in one place and it changes in all references.

~Paul

Re: Lookup Field Setup

Posted: 2021-04-20 19:37
by pbottcher
Hi,

I think this may be related to

viewtopic.php?t=3618

That seems to be a bug