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

Added duplicate action button documentation #9146

Merged
merged 2 commits into from
Sep 5, 2024
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 modified docs/user_manual/working_with_vector/img/action_dialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 22 additions & 1 deletion docs/user_manual/working_with_vector/vector_properties.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2918,7 +2918,8 @@ that was selected from the identify results or attribute table (see :ref:`using_
Double quote marks can be used to group text into a single argument to the program, script or command.
Double quotes will be ignored if preceded by a backslash.

Actions can invoke a single process, with arguments, so Boolean operators (such as ``&``, ``&&``, ``;``, ``|``) will not work.
Actions can invoke a single process, with arguments, so Boolean operators
(such as ``&``, ``&&``, ``;``, ``|``) will not work.
In UNIX-like operating systems multiple commands can be executed via ``bash -c``.

The :guilabel:`Action Scopes` allows you to define where the action should be available.
Expand Down Expand Up @@ -2973,6 +2974,24 @@ The second example uses the \%\% notation, which does not rely on a particular
field for its value. When the action is invoked, the \%\% will be replaced by
the value of the selected field in the identify results or attribute table.

.. index:: Actions, Attribute Actions
single: Actions; Duplicate an action
.. _duplicating_actions:

Duplicating Actions
-------------------

QGIS allows you to duplicate existing actions. To duplicate an attribute action,
open the vector :guilabel:`Layer Properties` dialog and click on the :guilabel:`Actions` tab.
In the :guilabel:`Actions` tab, click the |duplicateAction| :sup:`Duplicate an action`
to open the :guilabel:`Duplicate Action` dialog. You must have selected at least one existing action
in order to create a duplicate.

In the dialogue that appears, make any changes that are necessary. See :ref:`adding_actions`
for further information. Once finished, press :guilabel:`OK` to create a duplicate of the action with
any changes that you made. If you did not edit the description, or if you changed it to be
identical to the description of any other existing action, "_1" will be added to the end of it.

.. index::
single: Actions; Using actions
.. _using_actions:
Expand Down Expand Up @@ -3764,6 +3783,8 @@ To do so:
:width: 1.5em
.. |display| image:: /static/common/display.png
:width: 1.5em
.. |duplicateAction| image:: /static/common/mActionDuplicateLayout.png
:width: 1.5em
.. |editMetadata| image:: /static/common/editmetadata.png
:width: 1.2em
.. |elevationscale| image:: /static/common/elevationscale.png
Expand Down
Loading