Well this should be really easy but I have searched the Wiki and the Forums and come up blank.
On a form you have a textField that uses a column as its dataProvider. You want to copy that textField’s value to another textField that does not have a dataProvider.
Let’s say you have 3 columns: price, amount and total
To calculate the total you want to multiply the price with the amount.
For this you need just one line of code:
total = amount * price;
```Easy, right?
Basically, you don't care about showing the value in the textfield, Servoy handles that for you (automatic data binding)
Here shown in developer where the amount and price fields use the same method on their onDataChange event. So whenever one of them changes, the total is calculated automatically:
[attachment=0]script.png[/attachment]