Hi, been using appgini for a while, now i bump with this silly error, and maybe its something im missing, but
I do use a lookup field, its takes the value and shows up, then I try to calc using it and it just take the record numer not the value...
THIS IS THE CALCULATED FIELD
SELECT
{ `ep`.`notaria` * 1 }
FROM `ep`
WHERE `ep`.`id`='%ID%'
Look up mutiplicates by RecordNumber not value..
-
- Veteran Member
- Posts: 104
- Joined: 2018-12-10 21:52
Re: Look up mutiplicates by RecordNumber not value..
Lookups and autofills always store the foreign key (the primary key of the parent table)
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools
- baudwalker
- Veteran Member
- Posts: 188
- Joined: 2015-02-03 08:08
- Location: Bellingen NSW Australia
Re: Look up mutiplicates by RecordNumber not value..
If I read you correctly, its the same problem I had a few years ago.
I hope this may help... viewtopic.php?f=6&t=2618
Regarrds Barry
I hope this may help... viewtopic.php?f=6&t=2618
Regarrds Barry
-
- Veteran Member
- Posts: 104
- Joined: 2018-12-10 21:52
SOLVED Re: Look up mutiplicates by RecordNumber not value..
SOLVED
Hi again, I was sure I got something wrong since I be using lookup fields for a while without any problems.
As JSetzer said: “Lookups and autofills always store the foreign key (the primary key of the parent table)†I just make a quick fix making the value I need to be a primary key and voila.
And BaudWalker posted a really interesting clue on the issue, even touched by the AppGini creator.
Thanks Guys.
Hi again, I was sure I got something wrong since I be using lookup fields for a while without any problems.
As JSetzer said: “Lookups and autofills always store the foreign key (the primary key of the parent table)†I just make a quick fix making the value I need to be a primary key and voila.
And BaudWalker posted a really interesting clue on the issue, even touched by the AppGini creator.
Thanks Guys.
Re: Look up mutiplicates by RecordNumber not value..
Hi arcanebits
I'm hydrald7 a brand new AppGini user.
I allow myself to send you this email because I am facing the same problem as you with the calculated fields that we cannot use because the stored value is that of the primary key.
But I saw that you had found a solution, your response of 22-05-04 to JSetzer: "As JSetzer said: “Lookups and autofills always store the foreign key (the primary key of the parent table)†I just make a quick fix making the value I need to be a primary key and voila."
Could you be kind enough, please, to explain your solution more precisely and perhaps attach me an example code.
It would be a big help for me.
Thank you very much for the time you will agree to grant me for the answer.
See you soon maybe and above all be well
Cordially
I'm hydrald7 a brand new AppGini user.
I allow myself to send you this email because I am facing the same problem as you with the calculated fields that we cannot use because the stored value is that of the primary key.
But I saw that you had found a solution, your response of 22-05-04 to JSetzer: "As JSetzer said: “Lookups and autofills always store the foreign key (the primary key of the parent table)†I just make a quick fix making the value I need to be a primary key and voila."
Could you be kind enough, please, to explain your solution more precisely and perhaps attach me an example code.
It would be a big help for me.
Thank you very much for the time you will agree to grant me for the answer.
See you soon maybe and above all be well
Cordially