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

Relation-Reference Widget: Values not saved #108

Closed
saemiw opened this issue Feb 21, 2017 · 4 comments
Closed

Relation-Reference Widget: Values not saved #108

saemiw opened this issue Feb 21, 2017 · 4 comments

Comments

@saemiw
Copy link

saemiw commented Feb 21, 2017

You can well select the values from another table as defined by the relation-reference-widget. The values are however not saved to the table. Also if you modify the record it won't save the entry.

Reproduction Steps:

  1. digitize a feature and enter a value in a field that is defined by the relation-reference widget
  2. select that point to see its attributes
  3. in my case the attribute is named "observer". It is not saved and cannot be modified.

Expected behavior:

Save the chosen selection (save chosen "observer" - see video)

Observed behavior:

my field "observer" is not saved (see video)

Video showing the behaviour of QField

https://youtu.be/vckV_gQsUag

Setting in QGIS Desktop Project

relationreference
proj-properties

QField version: [0.9.3]
QGIS Desktop version: [2.18.3]

Additional information:

  • Problem started happening recently, didn't happen in an older version of QField: [Yes]
  • Problem can be reliably reproduced, doesn't happen randomly: [Yes]
  • Problem happens with all files and projects, not only some files or projects: [didn't check but expect so]
  • I used geopackes
@saemiw
Copy link
Author

saemiw commented Feb 22, 2017

If I add a "observer" is not NULL constraint to that field I am (correctly) not able to save the field. This is an indication that the value reference widget really doesn't write a value into that field (despite the visual appearance).

@m-kuhn m-kuhn closed this as completed in b929035 Feb 22, 2017
@saemiw
Copy link
Author

saemiw commented Feb 22, 2017

update:

First of all it seems important that the fieldname in the referencing and referenced table are identical. When I changed this the widget works and the values are written to the table.

Secondly I notice that the display of the values is slow. In the following video I

  1. start QField select point 5. Notice how the observer-field is emtpy.
  2. select another point, point 4. Here the value for observer is displayed correctly.
  3. Now I go back to point 5 and - surprise - the observer entry is now also visible.

https://youtu.be/hPsJiU3guPc

It seems to me that QField takes some time to get the value? Is that possible? Any explanations for this behaviour?

@m-kuhn
Copy link
Member

m-kuhn commented Feb 22, 2017

The issue with different field names is solved in https://github.com/opengisch/QField/releases/tag/release-0.9.4

m-kuhn added a commit that referenced this issue Feb 22, 2017
@m-kuhn
Copy link
Member

m-kuhn commented Feb 22, 2017

Issue with usage in identification view addressed in
https://github.com/opengisch/QField/releases/tag/release-0.9.5

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

No branches or pull requests

2 participants