Execute Process on Multiple Records at Once

374 views
Skip to first unread message

Chuck Boecking

unread,
Sep 23, 2014, 2:17:16 PM9/23/14
to idem...@googlegroups.com
Hi Everyone,

iDempiere gives you the ability to add a Process to a Toolbar (link to feature) so that the Process can be easily called from grid view. Is there a plan to allow a user to use multi-row select and run a process against multiple records simultaneously/serially? In today's code, the process ignores the selected rows and only performs the process against the row with focus.

The 'niceness' factor is high. Here is a use case:
  • User opens a window and creates a filter to limit results to a specific number of records.
  • User clicks the Select All checkbox to select all visible rows
  • User runs a process against the selected rows
  • User specifies parameters as part of the process. The same parameters apply to all records.
  • Users sees the summary for all records in the typical dialog box.
An example would be to mass create Vendor Invoices for the last 10 Material Receipts.

Example Image:
Inline image 1

Reference links:

http://wiki.idempiere.org/en/NF001_ColumnToolbarButton

Thank you for your consideration.

Regards,


Chuck Boecking
erp-academy.chuckboecking.com

Hiep Lq

unread,
Sep 23, 2014, 9:00:39 PM9/23/14
to idem...@googlegroups.com

Hi Chuck.
process in info window can help.

current, info window only select at one page.
select all is in-progress by bellow ticket.
https://idempiere.atlassian.net/browse/IDEMPIERE-2040

i think select in many page (not all record just keep select of this page when move to other page)
also worth, but how design GUI for this case?

Deepak Pansheriya (Logilite.com)

unread,
Sep 25, 2014, 7:16:22 AM9/25/14
to idem...@googlegroups.com
Chuck,

this will be great. This can help in completing batch.

Thomas Bayen

unread,
Sep 25, 2014, 10:38:01 AM9/25/14
to idem...@googlegroups.com
I had a similar idea here:

https://idempiere.atlassian.net/browse/IDEMPIERE-270

My idea was to save all needed informations in the context to make this
work. Then I extract these context values to become parameters (the
length of the paramter fields has to be extended for that) - especially
the context value "TabInfoSQL". Especially that is needed as an extension:

https://idempiere.atlassian.net/browse/IDEMPIERE-1718

Then I wrote a special kind of abstract process class to use this
informations and to run a process for all records. Also I wanted to have
an abstract way to define the parameters in this abtract class. You can
find an older version here:


https://bitbucket.org/tbayen/de.bayen.freibier/src/ba0a5c85b40499593187eb7b34f4293045d0fea0/de.bayen.freibier/src/de/bayen/freibier/util/AbstractRecordProcessor.java?at=default

I had big problems extracting the right order from the tab (paying
attention to all lookups etc.). While doing that I lost focus and did
not finish this project. :-(

I do not use this code in exactly this kind any more but I would like to
help building something on these ideas. :-)

Thomas Bayen


Am 23.09.2014 20:16, schrieb Chuck Boecking:
> Hi Everyone,
>
> iDempiere gives you the ability to add a Process to a Toolbar (link to
> feature <http://wiki.idempiere.org/en/NF001_ColumnToolbarButton>) so
> that the Process can be easily called from grid view. Is there a plan to
> allow a user to use multi-row select and run a process against multiple
> records simultaneously/serially? In today's code, the process ignores
> the selected rows and only performs the process against the row with focus.
>
> The 'niceness' factor is high. Here is a use case:
>
> * User opens a window and creates a filter to limit results to a
> specific number of records.
> * User clicks the Select All checkbox to select all visible rows
> * User runs a process against the selected rows
> * User specifies parameters as part of the process. The same
> parameters apply to all records.
> * Users sees the summary for all records in the typical dialog box.
>
> An example would be to mass create Vendor Invoices for the last 10
> Material Receipts.
>
> Example Image:
> erp-academy.chuckboecking.com <http://erp-academy.chuckboecking.com>
>
> --
> You received this message because you are subscribed to the Google
> Groups "iDempiere" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to idempiere+...@googlegroups.com
> <mailto:idempiere+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/idempiere/CA%2Bw%3D76hxuz4OtL1BzoA0gNfw1fesUWfStBGSrjnyVhMZtRXaFg%40mail.gmail.com
> <https://groups.google.com/d/msgid/idempiere/CA%2Bw%3D76hxuz4OtL1BzoA0gNfw1fesUWfStBGSrjnyVhMZtRXaFg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

mit freundlichen Grüßen,

Thomas Bayen
--
Jakob Bayen KG, Bleichpfad 20-22, 47799 Krefeld
AG Krefeld HRA 416 Tel +49/2151/65 80 9-0

Carlos Antonio Ruiz Gomez

unread,
Sep 25, 2014, 12:26:36 PM9/25/14
to idem...@googlegroups.com
Hi Chuck, the process button at this moment doesn't support such feature, but I think that can be done easily developing an independent toolbar button.

Regards,

Carlos Ruiz




On 23/09/14 a las 13:16, Chuck Boecking wrote:
Hi Everyone,

iDempiere gives you the ability to add a Process to a Toolbar (link to feature) so that the Process can be easily called from grid view. Is there a plan to allow a user to use multi-row select and run a process against multiple records simultaneously/serially? In today's code, the process ignores the selected rows and only performs the process against the row with focus.

The 'niceness' factor is high. Here is a use case:
  • User opens a window and creates a filter to limit results to a specific number of records.
  • User clicks the Select All checkbox to select all visible rows
  • User runs a process against the selected rows
  • User specifies parameters as part of the process. The same parameters apply to all records.
  • Users sees the summary for all records in the typical dialog box.
An example would be to mass create Vendor Invoices for the last 10 Material Receipts.

Example Image:


Reply all
Reply to author
Forward
0 new messages