Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate policy on QgsFields when duplicate features (Request in QGIS) #9085

Open
qgis-bot opened this issue May 8, 2024 · 1 comment
Open
Labels
3.38 QGIS 3.38 new features Properties
Milestone

Comments

@qgis-bot
Copy link
Collaborator

qgis-bot commented May 8, 2024

Request for documentation

From pull request qgis/QGIS#57217
Author: @signedav
QGIS version: 3.38

Duplicate policy on QgsFields when duplicate features

PR Description:

Description

On duplicating a feature (and it's children) the duplicate policy will be concerned for fields. There are three options:

Screenshot from 2024-04-22 11-38-37

Default is "Duplicate Value".

A good use case where this is useful is on a timestamp as default value, when this feature has been created (means duplicated).

Technical info

This functionality is implemented the same way than the split policy, although the split policy is based on the policy of the field domain (if available) what means it concerns the OGRFieldDomainSplitPolicy. This is not part of the duplicate policy. The duplicate policy only concerns the QgsFields and is configured over the attribute form properties.

Still I named the enum FieldDomainDuplicatePolicy - because maybe one time the OGR api offers this policy as well and with this we can use it the same way.

That's why it's named FieldDuplicatePolicy.

Commits tagged with [need-docs] or [FEATURE]

@github-actions github-actions bot added the 3.38 QGIS 3.38 new features label May 8, 2024
@github-actions github-actions bot added this to the QGIS 3.40 milestone May 8, 2024
@signedav
Copy link

signedav commented May 8, 2024

Technical info is not relevant for the documentation...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.38 QGIS 3.38 new features Properties
Projects
None yet
Development

No branches or pull requests

3 participants