[scribus] adding values in a custom calculation script

ale rimoldi ale.comp_06 at xox.ch
Tue Jun 21 07:16:53 UTC 2016

hi georgia

On 21/06/16 07:56, Georgia Christakos wrote:
> Hi,  I hope someone can help me with my question.  I am creating an
> interactive Pdf file and have created a custom calculation script to
> calculate the "difference" in some fields within my file eg Text 1 - Text 2
> However,  when I go to sum these values into a separate Summary Table, the
> values do not calculate correctly.  It seems that the sum function in
> Scribus does not see these values as a fixed number, but as a formula and
> continues to add/deduct them from the overall total.
> Has anyone had this problem before and any ideas on how to fix it?
> Below is an example of my custom calculation script.
> var v1=getField("TotalBudgetEstimate2").value;var
> v2=getField("TotalQuotedPrice2").value;event.value=v2-v1

can you please upload somewhere (google drive?) a sample .sla and .pdf 
file that shows the problem?

... and share the link in here...


More information about the scribus mailing list