Feature request #15589

Duplicate record function

Added by Andreas Neumann about 8 years ago. Updated over 6 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Attribute table
Pull Request or Patch supplied:No Resolution:fixed/implemented
Easy fix?:No Copied to github as #:23513

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, 2016-09-20 06:02 AM

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


Related issues

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

Associated revisions

Revision 1de71c12
Added by Matthias Kuhn about 8 years ago

Chained filters for relation reference search widget

Fix #15589

Revision 24f34603
Added by Matthias Kuhn about 8 years ago

Chained filters for relation reference search widget

Fix #15589

History

#1 Updated by Anonymous about 8 years ago

  • Status changed from Open to Closed

#2 Updated by Matthias Kuhn about 8 years ago

  • Status changed from Closed to Open

Closed accidentally

#3 Updated by Giovanni Manghi over 7 years ago

  • Easy fix? set to No

#4 Updated by Anonymous over 7 years ago

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

#5 Updated by Andreas Neumann over 7 years 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 over 7 years 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 over 7 years 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 over 7 years ago

  • Status changed from Feedback to Open

#9 Updated by Andreas Neumann over 7 years 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 over 7 years 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 over 7 years ago

#12 Updated by Harrissou Santanna over 6 years ago

  • Status changed from Open to Feedback

#13 Updated by Andreas Neumann over 6 years ago

  • Status changed from Feedback to Closed
  • Resolution set to fixed/implemented

is now available in QGIS 3.x

Also available in: Atom PDF