array widget question

239 views
Skip to first unread message

ingen...@bammtech.cl

unread,
Feb 10, 2015, 8:32:00 AM2/10/15
to suppor...@runmyprocess.com
Can I fill a text box into a widget array with another text box variable but that is outside the array widget. Can I do that?

ingen...@bammtech.cl

unread,
Feb 10, 2015, 8:42:36 AM2/10/15
to suppor...@runmyprocess.com, ingen...@bammtech.cl
El martes, 10 de febrero de 2015, 10:32:00 (UTC-3), ingen...@bammtech.cl escribió:
> Can I fill a text box into a widget array with another text box variable but that is outside the array widget. Can I do that?

those 3 text box (sku, precio de lista, descuento)I want to pass it into the array widget with the button verificar
form.png

Sweta Suman

unread,
Feb 11, 2015, 2:39:53 AM2/11/15
to suppor...@runmyprocess.com, ingen...@bammtech.cl
Hi,

Yes,you can do that.

On button verificar(action type -"Execute Script") write following js-

var sku = RMPApplication.get("sku");
var precio = RMPApplication.get("precio");
var descuento = RMPApplication.get("descuento");
id_my_array.id_sku[0].setValue(sku);
id_my_array.id_precio[0].setValue(precio);
id_my_array.id_descuento[0].setValue(descuento);

where -  id_my_array is array identifier
             id_sku,id_precio,id_descuento is column identifier
  sku,precio,descuento is value variable of Text input.

In order to sum all these values and store it in "Total" column of array refer - http://docs.runmyprocess.com/Developer_Guide/Web_Interface/Design/Summing_Array

If you are still facing any problem, please revert back.

Thanks,
Sweta


ingen...@bammtech.cl

unread,
Feb 13, 2015, 7:32:25 AM2/13/15
to suppor...@runmyprocess.com, ingen...@bammtech.cl
El martes, 10 de febrero de 2015, 10:32:00 (UTC-3), ingen...@bammtech.cl escribió:
> Can I fill a text box into a widget array with another text box variable but that is outside the array widget. Can I do that?

Thanks, it really works, and also the sum. But how can I do the same process but everytime I press the button i want to add a new row with the data on the three text box. If I change the value of the boxes a new line is added in the array. Can you help me with that?
Message has been deleted

Sweta Suman

unread,
Feb 18, 2015, 1:53:30 AM2/18/15
to suppor...@runmyprocess.com, ingen...@bammtech.cl
Reply all
Reply to author
Forward
0 new messages