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

add value relation in the field widget supported #83

Merged
merged 3 commits into from
Sep 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added en/images/value_relation_widget.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 18 additions & 1 deletion en/prepare/attributes-form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ The field widgets from QGIS are supported on a best effort basis.
+-------------------+-----------------+-------------------------------------------------+
| Relation Widget | :yay:`✔` | |
+-------------------+-----------------+-------------------------------------------------+
| Value Relation | :yay:`✔` | |
+-------------------+-----------------+-------------------------------------------------+
| Others | :nay:`✘` | :ref:`make_it_grow` |
+-------------------+-----------------+-------------------------------------------------+

Expand Down Expand Up @@ -112,7 +114,22 @@ On synchronization the sub-directory with the pictures, pdf and docs has to be c

The option "hyperlink" on the attachment widget will disable the camera functionality and enable a hyperlink to open a document (pdf, doc, ...).

.. figure:: /images/hyperlink_option.png
.. container:: clearer text-center

.. figure:: /images/hyperlink_option.png
:width: 600px
:alt: hyperlink_option

Value Relation
--------------

The widget "Value Relation" offers values from a related table in a combobox. You can select layer, key column and value column. Several options are available to change the standard behaviors: allow null value, order by value and allow multiple selections. The widget will display a drop-down or multiple-select list of the referenced features.

.. container:: clearer text-center

.. figure:: /images/value_relation_widget.gif
:width: 600px
:alt: value_relation_widget

Drag and drop designer forms
----------------------------
Expand Down