Bug report #14536

Default actions: typo in Selected field's value

Added by Kai Borgolte almost 8 years ago. Updated almost 8 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Actions
Affected QGIS version:2.14.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:22509

Description

QtGui.QMessageBox.information(None, "Current field's value", "[% $currentfield %]")

should be:

QtGui.QMessageBox.information(None, "Current field's value", "[% $currfield %]")

(i.e. $currfield instead of $currentfield).

Associated revisions

Revision 3d494ac9
Added by Nyall Dawson almost 8 years ago

Fix feature's value action not working (fix #14536)

Replace broken/missing $currfield with new @current_field
expression variable. Update other default actions to use
expression variables instead of deprecated special columns.

History

#1 Updated by Anita Graser almost 8 years ago

Just tested on master and neither $currentfield nor $currfield seem to work ...

#2 Updated by Anita Graser almost 8 years ago

  • Category set to Actions

#3 Updated by Kai Borgolte almost 8 years ago

Anita Graser wrote:

Just tested on master and neither $currentfield nor $currfield seem to work ...

Try a right click on some cell in attribute table or on some value in identify results. The expression was renamed from previously "%%" - this is still in the user manual.

#4 Updated by Nyall Dawson almost 8 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF