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

The list in "Link to existing child features" does not help in selecting the right child features #53410

Closed
2 tasks done
jssavola opened this issue Jun 8, 2023 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms

Comments

@jssavola
Copy link

jssavola commented Jun 8, 2023

What is the bug or the crash?

When adding a link to an existing child feature in attribute form, the selection list element is very bare and does not contain any information to help select the right features:

db42d323-5cdb-41e5-97ef-f744c01a5624

Couldn't display expressions be used here as well? (See screenshot below.)

dfa3ac49-28c4-464c-8d1d-5bb94f301fd4

Steps to reproduce the issue

  1. Configure Attributes Form for a layer that has Many to one relation with widget type Relation editor. (Screenshot 1).
  2. Configure Attributes Form for another layer that is the referenced relation (widget type: Relation Reference). Add a Display expression. (Screenshot 2)
  3. Go to Feature Attributes for the referencing layer and select a the referenced relation and click Link existing child feature(s) button. (Screenshot 3)
  4. Observe that the selection list does not use display expression or anything identifiable. (Screenshot 4.)

Screenshot 1
b0e8aabd-e582-4320-960c-576637201a18

Screenshot 2
dfa3ac49-28c4-464c-8d1d-5bb94f301fd4

Screenshot 3
efc70063-c37d-4ef5-9ade-f436d7213348

Screenshot 4
db42d323-5cdb-41e5-97ef-f744c01a5624

Versions

3.28.4-Firenze (fd0fb72)

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

@jssavola jssavola added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jun 8, 2023
@jssavola jssavola changed the title The list in "Link to existing child features" does not help in selecting the right child feature The list in "Link to existing child features" does not help in selecting the right child features Jun 8, 2023
@elpaso elpaso added the Forms label Jun 19, 2023
@elpaso
Copy link
Contributor

elpaso commented Jun 19, 2023

The list is blank because of the expression used to display the features:

image

You can change the display expression to suit your needs.

@elpaso elpaso closed this as not planned Won't fix, can't repro, duplicate, stale Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms
Projects
None yet
Development

No branches or pull requests

2 participants