You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: resources/context_help/QgsVectorLayerProperties-en_US
+9-9
Original file line number
Diff line number
Diff line change
@@ -106,24 +106,24 @@ The <label>Metadata</label> tab contains information about the layer, including
106
106
QGIS provides the ability to perform an action based on the attributes of a feature. This can be used to perform any number of actions, for example, running a program with arguments built from the attributes of a feature or passing parameters to a web reporting tool. <br/>
107
107
Actions are useful when you frequently want to run an external application or view a web page based on one or more values in your vector layer.<p>
108
108
109
-
The new implementation of actions uses the QGis expression engine to do evaluations. Each expression is evaluated and replaced by its result at runtime.<p>
110
-
An expression must be enclosed between <code>[%</code> and <code>%]</code>, anyway the GUI has some buttons which do that for you.
111
-
The <label>Insert expression...</label> button launches the <label>Expression builder</label> which allows to write an expression in a easy way, the <label>Insert field</label> button inserts into the action a placeholder like <code>[% "fieldname" %]</code> where fieldname is the name of the field selected in the dropdown list close to the button.<p>
109
+
The new implementation of actions uses the QGIS expression engine to do evaluations. Each expression is evaluated and replaced by its result at runtime.<p>
110
+
An expression must be enclosed between <code>[%</code> and <code>%]</code> - the GUI has some buttons which do that for you automatically.
111
+
The <label>Insert expression...</label> button launches the <label>Expression builder</label> which allows to write an expression easily, the <label>Insert field</label> button inserts into the action a placeholder like <code>[% "fieldname" %]</code> where fieldname is the name of the field selected in the field dropdown list.<p>
112
112
113
113
See the User Guide for further information.
114
114
115
115
<h5>Using Actions</h5>
116
-
Actions can be invoked from the <label>Identify Results</label> dialog or using the <label>Run feature action</label> tool.<p>
116
+
Actions can be invoked from the <label>Identify Results</label> dialog or using the <label>Run feature action</label> tool on the toolbar.<p>
117
117
118
-
Each of them adds a little set of custom expressions to the default set available in the <label>Expression builder</label>.<br/>
119
-
While running actions from the <label>Identify Results</label> dialog the custom expression <code>$currfield</code> will be replaced with the value of the selected field in the dialog, using the <label>Run feature action</label> tool the following custom expression are instead available:
118
+
Each action adds a little set of custom expressions to the default set available in the <label>Expression builder</label>.<br/>
119
+
While running actions from the <label>Identify Results</label> dialog the custom expression <code>$currfield</code> will be replaced with the value of the selected field in the dialog, using the <label>Run feature action</label> tool the following custom expressions are available (instead of $currfield):
120
120
<ul>
121
-
<li><code>$clickx</code> returns the x coordinate of the clicked point in canvas</li>
122
-
<li><code>$clicky</code> returns the y coordinate of the clicked point in canvas</li>
121
+
<li><code>$clickx</code> returns the x coordinate of the click position on the canvas</li>
122
+
<li><code>$clicky</code> returns the y coordinate of the click position on the canvas</li>
123
123
<li><code>$layerid</code> returns the ID of the selected layer in the legend</li>
124
124
</ul>
125
125
126
-
Note: the <label>Run feature action</label> tool execute the actions on all the matching features, the <label>Identify Results</label> allows you to select which feature to run action on.<p>
126
+
Note: the <label>Run feature action</label> tool executes the actions on all the matching features, where as <label>Identify Results</label> allows you to select which specific feature to run action on.<p>
0 commit comments