×

Please give details of the problem

Skip to content

Summing Array

2012-03-21_135518

Here's the configuration of the array widget:

smartarray

Code in the script window :

1
2
3
var my_subtotal = parseFloat([[array_po.quantity]][P_index]) * parseFloat([[array_po.unit_price]][P_index]);  
id_array_po.id_subtotal[P_index].setText("" + my_subtotal);  
id_array_po.id_subtotal[P_index].setActive(false);