Help, Footer

Not if you can do.
In a footer can update the total sum of an order?

[QUOTE=quieropaginaweb;22177]Not if you can do.
In a footer can update the total sum of an order?[/QUOTE]

With a trick you can add a global variable in the footer. TO fill it you need to sc_redir to the same application after calculating and setting the sum in the global.

It is possible that you indicate to me with an example.
thanks

I assume you have a detail of products with the sum. After adding a product you need to recalculate the sum? That means that you can use the onafterinsert to calculate the sum, i.e. by sql. Then you fill a global variable with this value [glob_myval]=$mysum; The you do a sc_redir(myapp.php). In the footer you need to put the [glob_myval]; Don’t forget to use the sc_commit_trans() in the onafterinit, otherwise your insert might fail.
It’s a bit of a puzzle, but it’s doable.

I ask the same can not, image attached.
I have a multiple form records using ajax Total calculator.
I do not calculate the cumulative, if can not.
But as indicated in the foot persent know if can calculate the total cost of your order using ajax.
Do not insert any record to the end of the order

thanks

FORM.jpg

The idea is to pass the value through ajax in real time.
I’ve tried putting a variable in the foot only thing that loads when I post the form.
I wish it was more like a field and it was updated.
Is that you can not do?

thanks