%QUERY{"length('System.DocumentGraphics'/attachments)"}%765 -- PaulHarvey - 31 Dec 2010 This is trunk only. See Development.AddOperatorsToQueries -- PaulHarvey - 31 Dec 2010 Added to the query cookbook -- PaulHarvey - 31 Dec 2010 For Item10221 to work it would be necessary to retrieve the number of shown (not hidden) attachments. Is this currently possible? -- ArthurClemens - 06 Jan 2011
Hidden attachments: %QUERY{"length('System.FamFamFamContrib'/attachments[lc(attr)=~'h'])"}% Shown attachments: %QUERY{"length('System.FamFamFamContrib'/length(attachments[NOT lc(attr)=~'h'])"}%Hidden attachments: 6 Shown attachments: 0 Let's do a SEARCH for topics in Extensions that has have some of both:
%SEARCH{ "length(attachments[lc(attr)=~'h']) > 0 AND length(attachments[NOT lc(attr)=~'h']) > 0" type="query" web="Extensions" header="---++ [[$web.%HOMETOPIC%][$web]] | *Topic* | *Shown* | *Hidden* |" format="| [[$web.$topic][$topic]] | $percntQUERY{\"length('$web.$topic'/attachments[lc(attr)=~'h'])\"}$percnt | $percntQUERY{\"length('$web.$topic'/attachments[NOT lc(attr)=~'h'])\"}$percnt |" }%
Summary | Add length operator to arrays in query search |
ReportedBy | ArthurClemens |
Codebase | trunk |
SVN Range | |
AppliesTo | Engine |
Component | |
Priority | Enhancement |
CurrentState | No Action Required |
WaitingFor | |
Checkins | |
TargetRelease | n/a |
ReleasedIn | n/a |