Feature request #15589

Duplicate record function

Added by Andreas Neumann about 1 year ago. Updated 5 months ago.

Status:Open
Priority:Normal
Assignee:-
Category:Attribute table
Pull Request or Patch supplied:No Resolution:
Easy fix?:No

Description

A duplicate record button should be added to the attribute table and in the feature form when using embedded forms.

The button should be active if one or more records are selected. The attributes of the selected records are all copied over to the new records except for primary key columns or columns with unique constraints, where they should be fetched from the (provider) constraints (see Nyalls proposal about unique constraints).

The duplicate function should also be added to the context menu of a row in the attribute table and to the preview column of an embedded form.

See screenshots with more explanations.

duplicate_record_embedded_form.png - Duplicate record with embedded form (214 KB) Andreas Neumann, 09/20/2016 06:02 AM

duplicate_record_attribute_table.png - Duplicate record attribute table (450 KB) Andreas Neumann, 09/20/2016 06:02 AM


Related issues

Related to QGIS Application - Feature request #16827: Duplicate record function with related features Open 07/10/2017

Associated revisions

Revision 1de71c12
Added by Matthias Kuhn about 1 year ago

Chained filters for relation reference search widget

Fix #15589

Revision 24f34603
Added by Matthias Kuhn about 1 year ago

Chained filters for relation reference search widget

Fix #15589

History

#1 Updated by Anonymous about 1 year ago

  • Status changed from Open to Closed

#2 Updated by Matthias Kuhn about 1 year ago

  • Status changed from Closed to Open

Closed accidentally

#3 Updated by Giovanni Manghi 7 months ago

  • Easy fix? set to No

#4 Updated by Anonymous 6 months ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

#5 Updated by Andreas Neumann 5 months ago

  • Status changed from Closed to Open
  • Description updated (diff)

Why was this closed again by "Anonymous"? As far as I know, this is not yet implemented?

Setting Status again to "Open".

#6 Updated by Giovanni Manghi 5 months ago

  • Status changed from Open to Feedback

Andreas Neumann wrote:

Why was this closed again by "Anonymous"? As far as I know, this is not yet implemented?

Setting Status again to "Open".

so this?
https://issues.qgis.org/projects/qgis/repository/revisions/1de71c12d6758f46697827f181ef06c549df6130
https://issues.qgis.org/projects/qgis/repository/revisions/24f34603a10db5a64f4a0afe11558e46869f998e

#7 Updated by Andreas Neumann 5 months ago

This was an accident/mistake by Matthias. The feature request issue "duplicate records" here has nothing to do with the "chained filters for relation reference widget" which was fixed.

#8 Updated by Giovanni Manghi 5 months ago

  • Status changed from Feedback to Open

#9 Updated by Andreas Neumann 5 months ago

Additional requirement:

1. duplication of a single record for geometry layers:
If the concerned layer is a geometry layer and only one feature is selected, the user should have the ability to digitize a new geometry. If the duplicate record functionality is triggered, the form should be hidden and the "Add Feature" function should be enabled, allowing the user to digigitize a new geometry. Once, the geometry editing is finished, the attribute form of the new feature should be displayed, with all the values copied from the selected original feature.

2. The "duplicate feature" action should also be added to the attribute form menu.

#10 Updated by Andreas Neumann 5 months ago

It needs to be discussed if only a single record can be duplicated, or if multiple records can be duplicated at once (makes only sense for non-geometry layers).

#11 Updated by Jürgen Fischer 5 months ago

Also available in: Atom PDF