Skip to content

Commit

Permalink
Merge pull request #83 from opengisch/value_relation
Browse files Browse the repository at this point in the history
add value relation in the field widget supported
  • Loading branch information
lucienicolier committed Sep 16, 2020
2 parents be57369 + 2f5a9dd commit da581df
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
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

0 comments on commit da581df

Please sign in to comment.