Editable Grid - SelectBox / Remove lines
So, I have a new task here at office that consists in showing at the screen an 'Excel Like' table. This table must be filled, each line, with some DB stuff. No big deal so far.
However, there is always a problem. :)
One of the steps of my process must be a manager who see this table and 'erase' some lines to send it to a supervisor who will 'erase' another lines. Then there will be a final approval.
The best thing I've found to do that is by an Editable grid. But I have 2 problems:
1 - I can't find a way to 'erase' the lines in the middle of the grid, only the bottom ones.
2 - I can't set a 'selectbox' to at least 'show' which lines should stay to next step and the ones that should be removed.
Is there any way to do such thing?
Any other ideas for my problem?
Thanks in advance.
Thanks for your answer!
I got your point. Good idea! But... how am I supposed to delete only the selected lines? Any groovy stuff to do so?
When you call for first time the connector you will populate a List
(I supose) so when you want to select rows and click on submit you can use a groovy script(or java) to store in the same list removing the selected lines...
In subscription you can do the same but without changing yet the list only the available values of the table widget
To allow selection on table you need to check one checkbox... )
The groovy script can be this...
You can use the table (not the editable one) and allow selection.
In subscription you can add a dependency to remove those lines (from database if needed) and update the table without submit the form (so you can erase one by one if needed) and then in the next task (supervisor one) you can do the same
If you are in community you can do the same but in several steps, in the first task you select rows to delete, after submit you remove it, and in next task you show to supervisor the table update with same behaviour