Hello everyone,
I am creating an application with multiple tables. These tables have different function-calls (onAdd, onDelete, etc.) that calculate the value of a sub-total field for the corresponding table. These fields are calculated correctly and are also shown with the right value when pressing the print-button in later stages.
Another subsection calculates all these sub-totals into one field as a kind of summary for the user. Both the calculation-sections and the summary-section are only visible after the form was first commited. The total however, despite being displayed correctly within the form itself, always shows 0,00€ when opening the print mask.
I was wondering if somebody knows about this or can replicate / help with that issue.
We are using the latest version of Leap.
Thanks in advance
Ian
Hi Ian, how is the total determined? Is it using a formula or custom javascript? Can you provide a form that demonstrates the behavior?
I created my own sample using a formula and the value is being printed correctly.
Hey Christopher,
it's using a custom script but sadly I cannot provide the form itself. I can try to describe it better however:
tablerow is added/edited/deleted -> recalculate and update a number -> everytime that number gets updated [so every time the user changes the table], a subtotal is also calculated and written in a field
this is pretty much what happens for a few tables.
every time one of these "subtotal" fields from a table updates, the onChange event calls an function that recalculates the overall total across all tables and puts them into a field at the bottom
Since populating the fields works correctly and the only problem seems to be with printing, I thought that maybe the print-function doesnt wait for every event to be finished before displaying the view but I cannot confirm that.