Tags:
create new tag
view all tags

Question

I am using FormQueries to help generate weekly reports (in the form of tables).

I need to extract all of the new entries from last week (for one table) and all of the entires that were "closed" last week (for another table).

How would I do this? I have looked at the Spreadsheet plugin but I am having difficulty serialising and unserialising dates within the query.

An example of the type of code I am using, which doesn't include any code to extract only last weeks data:

%FORMQUERY{name=SupIssuesForm moan="off" search="form='SupportIssueForm'"}% %FORMQUERY{name=AllSupIssues query=SupIssuesForm moan="off" search="topic!='SupportIssueTemplate'"}% %FORMQUERY{name=ClosedSupIssues query=AllSupIssues moan="off" search="Status='Closed'" extract=ClosedIssues}% %FORMQUERY{name=RecentlyClosedIssues query=ClosedSupIssues moan="off" search="Date Closed='Closed'"}%

%TABLEFORMAT{ name=ClosedSupTable format="|$topic|$Summary|$AssignedTo|$DateClosed|$Customer|" header="|*ID*|*Summary*|*AssignedTo*|*DateClosed*|*Customer*|" sort="logNumber"}% %SHOWQUERY{ query=ClosedSupIssues format=ClosedSupTable }%

Any ideas would be much appreciated, or even a pointer to a plugin or code that could do what I need would be helpful.

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat Linux 9, kernel 2.4.3
Web server:  
Perl version:  
Client OS: MS Win2k
Web Browser: IE version 6
Categories: Search

-- GarrethMorgan - 05 May 2005

Answer

Found the answer under "FormattedSearch - Examples - Search with Conditional Ouput".

-- GarrethMorgan - 09 May 2005

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2005-05-09 - GarrethMorgan
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.