add rows in array widget

351 views
Skip to first unread message

ingen...@bammtech.cl

unread,
Feb 16, 2015, 9:35:03 AM2/16/15
to suppor...@runmyprocess.com
everytime I press the button "verificar" I want to add a new row with the data on the three text box in the "Datos" section. . If I change the value of the boxes a new line is added in the array. Can you help me with that? Now I only can add one row but can not add more than one with new data.
script.png
foto2.jpeg

Sweta Suman

unread,
Feb 17, 2015, 3:01:50 AM2/17/15
to suppor...@runmyprocess.com, ingen...@bammtech.cl
Hi ,

In order to do that write below js on button  "verificar"  -

var count = id_my_array.getRowsCount(); //get array rows
  if(temp==1)
{
var i=parseInt(count-1);
id_array.insertRow(i); //add rows to array
}
else
{
var i=parseInt(count-1);
var temp=1;
var text1 = RMPApplication.get("text1");
var text2 = RMPApplication.get("text2");
id_array.setVisible(true);
id_array.id_text1[i].setValue(text1);
id_array.id_text2[i].setValue(text2);
}

Hope this helps.

Thanks,
Sweta
Message has been deleted

ingen...@bammtech.cl

unread,
Feb 18, 2015, 6:56:53 AM2/18/15
to suppor...@runmyprocess.com, ingen...@bammtech.cl
thank you, I resolved my problem with your code

Grupo Ingenieria

unread,
Feb 20, 2015, 3:55:54 AM2/20/15
to suppor...@runmyprocess.com
mmm...with that code, everytime I press the "verificar" button it adds a new row but without the data of the text box. That only works on the first time. This is my code on the "verificar" button as javascript

Imágenes integradas 2

















Imágenes integradas 1

2015-02-17 5:01 GMT-03:00 Sweta Suman <ssu...@runmyprocess.com>:
Hi ,

In order to do that write below js on button  "verificar"  -

var count = id_my_array.getRowsCount(); //get array rows
  if(temp==1)
{
var i=parseInt(count-1);
id_array.insertRow(i); //add rows to array
}
else
{
var i=parseInt(count-1);
var temp=1;
var text1 = RMPApplication.get("text1");
var text2 = RMPApplication.get("text2");
id_array.setVisible(true);
id_array.id_text1[i].setValue(text1);
id_array.id_text2[i].setValue(text2);
}

Hope this helps.

Thanks,
Sweta
On Mon, Feb 16, 2015 at 8:05 PM, <ingen...@bammtech.cl> wrote:
everytime I press the button "verificar" I want to add a new row with the data on the three text box in the "Datos" section. . If I change the value of the boxes a new line is added in the array. Can you help me with that? Now I only can add one row but can not add more than one with new data.

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/53e7df25-52b0-4471-bcac-43f41c802439%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to a topic in the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/Ln1jBH-3UaI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/CAEibfQ8QbcHh4ROEkEdr2A764pDxFv7X-koCh%3DQBaMCsvjUpZQ%40mail.gmail.com.

Sweta Suman

unread,
Feb 20, 2015, 6:23:31 AM2/20/15
to suppor...@runmyprocess.com, ingen...@bammtech.cl
Hi,

Please check variable name and its identifier as same code is working fine at my end.

Please find attached screenshot.

Thanks and Regards,
Sweta

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
screenshot1.png
screenshot2.PNG
Reply all
Reply to author
Forward
0 new messages