cross
Foswiki.org has been patched with a fix that will break all current logged in sessions. All users will have to log in again after the update.
You are here: Foswiki>Tasks Web>Item10895 (17 Dec 2011, GeorgeClark)Edit Attach

Item10895: With query search I want to list fields that don't have the attribute hidden set

Priority: Low
Current State: Closed
Released In: 1.1.4
Target Release: patch
Applies To: Engine
Component: Documentation
Branches:
Reported By: ArthurClemens
Waiting For:
Last Change By: GeorgeClark
To my surprise I cannot search attr on form fields (as I can with attachments attr).

It is possible, see:
%QUERY{"fields[NOT lc(attributes)=~'h']"}%
...
Try:
 %QUERY{"fields[NOT lc(attributes)=~'h'].name"}%
... creates: [{'value' => 'With query search I want to list fields that don\'t have the attribute hidden set','name' => 'Summary','title' => 'Summary','attributes' => 'M'},{'value' => 'Main.ArthurClemens','name' => 'ReportedBy','title' => 'ReportedBy','attributes' => 'M'},{'value' => '1.1.3, trunk','name' => 'Codebase','title' => 'Codebase','attributes' => ''},{'value' => '','name' => 'SVNRange','title' => 'SVN Range','attributes' => ''},{'value' => 'Engine','name' => 'AppliesTo','title' => 'AppliesTo','attributes' => 'M'},{'value' => 'Documentation','name' => 'Component','title' => 'Component','attributes' => ''},{'value' => 'Low','name' => 'Priority','title' => 'Priority','attributes' => 'M'},{'value' => 'Closed','name' => 'CurrentState'},{'value' => '','name' => 'WaitingFor','title' => 'WaitingFor','attributes' => ''},{'value' => '','name' => 'Checkins','title' => 'Checkins','attributes' => ''},{'value' => 'patch','name' => 'TargetRelease','title' => 'TargetRelease','attributes' => ''},{'value' => '1.1.4','name' => 'ReleasedIn','title' => 'ReleasedIn','attributes' => ''}]

Try:

Summary,ReportedBy,Codebase,SVNRange,AppliesTo,Component,Priority,CurrentState,WaitingFor,Checkins,TargetRelease,ReleasedIn

(doesn't work on f.o. but works on release 1.3).

Added documentation.

-- ArthurClemens - 17 Jun 2011

 

ItemTemplate edit

Summary With query search I want to list fields that don't have the attribute hidden set
ReportedBy ArthurClemens
Codebase 1.1.3, trunk
SVN Range
AppliesTo Engine
Component Documentation
Priority Low
CurrentState Closed
WaitingFor
Checkins
TargetRelease patch
ReleasedIn 1.1.4
Topic revision: r3 - 17 Dec 2011, GeorgeClark - This page was cached on 02 Aug 2015 - 04:28. Get a fresh version here.
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License