Bug report #7686

Contexts for special columns in expressions

Added by Paolo Cavallini over 11 years ago. Updated over 10 years ago.

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

Description

When printing through Atlas, feature filtering does not appear to be working with $rownum

It works with fields.

History

#1 Updated by Vincent Picavet about 11 years ago

  • Assignee set to Hugo Mercier

#2 Updated by Nyall Dawson over 10 years ago

  • Category changed from 33 to Map Composer/Printing
  • Subject changed from Atlas not filtering $rownum to [composer] Atlas not filtering $rownum

#3 Updated by Nyall Dawson over 10 years ago

  • Category deleted (Map Composer/Printing)
  • Assignee deleted (Hugo Mercier)
  • Subject changed from [composer] Atlas not filtering $rownum to Contexts for special columns in expressions

Not actually a bug in atlas - $rownum is only usable when in field calculator. The correct solution is to have context-defined expression variables, as noted in 684dd890a3359a2fb189b289b0bb65a42a9f4105 .

#4 Updated by Martin Dobias over 10 years ago

  • Status changed from Open to Closed
  • Resolution set to invalid

#5 Updated by Paolo Cavallini over 10 years ago

I agree with the solution. However, this should not be closed, as it is still an issue for the user. Better changing the name, eventually, but please reopen it.

#6 Updated by Martin Dobias over 10 years ago

Raised a new ticket for that: #9546

Also available in: Atom PDF