When you set id_widget.setDeleteRows() to false, it applies to all existing lines of the array widget: the blue minus sign disappear for all lines of the widget.
But when you set it back to true, it applies only to new created lines but not to existing lines : the blue minus line doesn't re-appear for existing lines.
How to have the blue minus sign to appear again for existing lines
Regards
Yves
Try following scheme :
Configure widget (see Configuration attachement)
- create an array widget my_array with a single date column
- in the 'add rows' script button, enter : id_my_array.setDeleteRows(true);
_ in the 'delete rows' script button, enter : var size = id_my_array.getRowsCount();
if (size == 4) {id_my_array.setDeleteRows(false);}
Step 1
- create 5 rows by clicking on the 'plus' sign
Step 2
- Delete one row by clicking on the minus sign. As 'RowsCount' now equal 4, the Delete rows JS applies and the 'minus' button disappear
Step 3
- Add a row : the newly added row doesn't have the 'minus' sign
Step 4
-Repeat step 2 and 3 and you get an array widget with no minus sign except on one line
Regards
Yves
Any news ?
Regards
Yves
Hello,
Any news ?
Regards
Yves
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" 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/86b1d8a7-3a3c-43e5-82c9-aa2614779a50%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.