Getting data from two table fields with calculation

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
dallo
Posts: 8
Joined: 2014-05-19 14:43

Getting data from two table fields with calculation

Post by dallo » 2014-05-19 15:03

hi, can someone pls help me out.

i am trying to display the result of the subtraction of two tables, then update a field .

What i expect it to do is this MY_WALLET = MY_WALLET_COST - TREATMENT_COST, then it should further update MY_WALLET_COST


Thanks,
Dallo
Attachments
ba.jpg
ba.jpg (167.35 KiB) Viewed 2605 times

User avatar
a.gneady
Site Admin
Posts: 1287
Joined: 2012-09-27 14:46
Contact:

Re: Getting data from two table fields with calculation

Post by a.gneady » 2014-06-07 16:36

Please see the example for the before_insert hook: http://bigprof.com/appgini/help/advance ... ore_insert
:idea: AppGini plugins to add more power to your apps:
  • DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

Post Reply