Ticket #447 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

table-editor: create the possibility to allow the table-editor's multi select to submit multiple id's for one actions (delete, clone, etc)

Reported by: janneke@… Owned by: work@…
Priority: major Milestone: 0.8.2
Component: GDT Version: 0.8.1
Keywords: Cc:
Product: Operating system:
URL: Hardware:

Description (last modified by work@…) (diff)

Currently, you are only able to perform one controller action per table row (e.g. delete, clone, etcetera) as every button in a row calls the specific action in the controller. For example, the delete button in a row, calls the delete action in the controller with the Identity of the particular instance (for example, the delete button, or the clone button).

However, it would be nice to have if one could use the table editor to select multiple rows, and have the Identities of those rows sent to the controller.

However, this issue is a difficult to tackle in a generic manner as the table editor is a generic javascript class which is not aware of server side bussiness logic (and also shouldn't be!) and the action buttons are actually being rendered as ajax submits, just like the previous / next buttons.

Perhaps it would be an idea to change these action buttons in to non-action buttons which call a generic JavaScript? to submit an id, or a collection of id's.

However, not a simple fix...

Change History

Changed 3 years ago by janneke@…

The newly cloned event should then also be appearing directly under the one which is cloned. Now the newly added always comes at last, whereas I want to have them grouped together for example.

A drag and drop function in here would be handy.

Changed 3 years ago by work@…

  • status changed from new to assigned
  • milestone changed from 0.8.2 to Could have
  • description modified (diff)
  • summary changed from multiple cloning of events to table-editor: create the possibility to allow the table-editor's multi select to submit multiple id's for one actions (delete, clone, etc)

While this sounds like a minor change, it really is not as it involves the multi select / table editor generic front-end logic and specific back end logic. Same goes for multi deletes, etcetera... everything that is a combination of multi-select and a controller action.

Made the description / title more generic to cover everything involved and moved to 'could have'

Changed 3 years ago by work@…

  • component changed from Study create/edit wizard to GDT

Changed 3 years ago by work@…

  • status changed from assigned to accepted
  • milestone changed from Could have to 0.8.2

Changed 3 years ago by work@…

  • owner changed from work@… to janneke@…
  • status changed from accepted to assigned

- resolved in  GDT 0.0.49, r1865. Please retest on ci...

Changed 3 years ago by work@…

correction, correct GDT change url is:  GDT 0.0.49

Changed 3 years ago by janneke@…

  • owner changed from janneke@… to work@…

fixed...works indeed fine
maybe you can add a message, when deleting all subjects: "samples from these subjects will also be deleted"

Changed 3 years ago by work@…

  • status changed from assigned to closed
  • resolution set to fixed

improved feedback in r1867

Note: See TracTickets for help on using tickets.