Erwin's StarOffice Tango
Erwin Tenhumberg's Insights into Open Source and Dancing
... or why Open Competition matters

20050421 Donnerstag April 21, 2005

Just switch! - Calculations in XML Form Documents - Part I
Today I want to explain to you how you can do simple calculations in XML form documents. Here is what I did:

First, I added three "Formatted Fields" to the form document and set the model and binding names as shown ... for the amount field ...



... for the price field ...



... and for the total field. In order to define the calculation, one simply has to click on the "..."-button next to "Calculation" and type in "../Amount * ../Price" and close the windows. That's it!



With the "Formatted Fields" it is also possible to set the formatting to a currency formatting. In this example I also changed the alignment to right and the font size to 14.



I will talk more about doing calculations in XForm documents in the near future, but as you can already see here, it is pretty easy to do calculations in XML form documents.
( Apr 21 2005, 02:41:21 PM CEST ) Permalink Kommentare [1]


Kommentare:

I am very much a newbie to XML forms (Xforms). I have been searching the web at length but not having any luck answering this question - once I have created an Xform in OpenOffice or Star Office how do I get that form into a web page? I would welcome any links to relevant articles or tutorials. Any help you can offer would be appreciated.

Gesendet von Stevan am Dezember 29, 2005 at 05:31 PM CET #

Senden Sie einen Kommentar:

Kommentare sind ausgeschaltet.

Archive
Links
Referenzierte URLs