Good evening
I have a database that works well, the staff enter hours by choosing in a combo field, but the value is always recorded with the id and not with the number, the amount. How do I save the amount and not the id in my database?
How do I save the amount and not the id in my database?
I'm attaching copies to be clearer,
thank you
formulaire
mysql
How do I save the amount and not the id in my database?
Re: How do I save the amount and not the id in my database?
That's the way lookups work. They store the primary key of the chosen record.
Consider adding another field and configure it as calculated field. The SQL command should fetch the value from the 2nd table where table2.pk=table1.fk
Consider adding another field and configure it as calculated field. The SQL command should fetch the value from the 2nd table where table2.pk=table1.fk
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 25.10 + 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 25.10 + all AppGini Helper tools
Re: How do I save the amount and not the id in my database?
Hi pasbonte,
maybe you explain a bit more what you try to acheive and why you need to store that data in the same table. That could help in finding a solution.
maybe you explain a bit more what you try to acheive and why you need to store that data in the same table. That could help in finding a solution.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
- baudwalker
- Veteran Member
- Posts: 188
- Joined: 2015-02-03 08:08
- Location: Bellingen NSW Australia