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

New form widget for binary(BLOB) fields added issue #3151 #8507

Merged
merged 5 commits into from
Sep 22, 2023

Conversation

selmaVH1
Copy link
Collaborator

fixes #3151 and fixes #3148
@DelazJ @timlinux
I added this as a Tip in https://docs.qgis.org/testing/en/docs/user_manual/managing_data_source/create_layers.html#creating-a-new-geopackage-layer subsection. I tried to describe whole workflow but didn't find logical place in documentation for that.

@DelazJ
Copy link
Collaborator

DelazJ commented Sep 14, 2023

Thanks @selmaVH1
Considering that this type of field is not specific to gpkg only, it is probably a bit hidden imho. We also already mention few lines above that it can store blob fields, so could be enough.
How about https://docs.qgis.org/testing/en/docs/user_manual/working_with_vector/vector_properties.html#edit-widgets? I think right now it is the place widgets options and behavior are described, and this one (which is the default for blob field type) is missing there.
Another feature I came across recently is the combination of this kind of field type with an html widget, to eg display an image directly in form. See for reference https://gis.stackexchange.com/questions/350541/display-photo-stored-as-blob-in-gpkg; I think this deserves a mention in the docs (in the html widget section or the blob's one, no strong opinion). What do you think?

@selmaVH1
Copy link
Collaborator Author

@DelazJ I added Binary(BLOB) to edit widgets section and another feature (HTML and BLOB combination) I described as a Tip simply because of the size of description.

@@ -2420,6 +2420,9 @@ Based on the field type, QGIS automatically determines and assigns a default
widget type to it. You can then replace the widget with any other compatible
with the field type. The available widgets are:

* **Binary (BLOB)**: Available only for binary fields, it offers a lable showing
whether the BLOB field is empty or not. If filed is not empty the content size
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
whether the BLOB field is empty or not. If filed is not empty the content size
whether the BLOB field is empty or not. If the field is not empty the content size

?

selmaVH1 and others added 3 commits September 22, 2023 15:33
@DelazJ DelazJ merged commit a9cd096 into qgis:master Sep 22, 2023
3 checks passed
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

Successfully merging this pull request may close these issues.

[FEATURE] New form widget for binary (blob) fields [FEATURE] Binary blob support for OGR provider
3 participants