Sum of Auto-fill column AppGini 5.98

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
Moh Youba
Veteran Member
Posts: 239
Joined: 2017-03-12 09:31

Sum of Auto-fill column AppGini 5.98

Post by Moh Youba » 2022-02-12 19:28

Hello

I am trying to get sum of Auto-fill column but do not work. Any help please.

Thank you
Slide2.JPG
Slide2.JPG (108.54 KiB) Viewed 1404 times
Slide1.JPG
Slide1.JPG (78.26 KiB) Viewed 1404 times

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1944
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Sum of Auto-fill column AppGini 5.98

Post by jsetzer » 2022-02-13 10:28

Autofill fields are just lookups: They store the foreign key of the master-record, not the chosen display value. They show the chosen display value in UI, only.

Check the table data of actes with your SQL-tool. You will see that patients.montant will hold the primary key of selected record of actes table, not the value of actes.tarif.
tarif is just the display formula for this autofill field. This is not a bug but by design.

If you need the (numeric) values of actes.tarif, you may consider adding a calculated field reading the tarif from the related master table. Then check [x] Sum for the new calculated field.
Kind regards,
<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 readability

AppGini 25.10 + all AppGini Helper tools

Moh Youba
Veteran Member
Posts: 239
Joined: 2017-03-12 09:31

Re: Sum of Auto-fill column AppGini 5.98

Post by Moh Youba » 2022-02-13 10:37

thank you sir, I understand now.
Going to try.

Best regards,

Post Reply