Tags:
create new tag
, view all tags

Question

I want to write a formatted search (recursing through several subwebs) that produces a crosstab table output that shows for each sub web as a separate column.

I have a sub web for each department and I want to produce a matrix showing all projects being undertaken by the department that support a specific strategy. The strategies are attached to each topic via a form. Some sub-webs will have a null result of projects for a certain strategy.

I have the formatted search the produces all necessary data but can't workout how to convert the output to a crosstab.

Is this possible and how do I do it?

Environment

TWiki version: TWikiRelease04x00x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Forms, Search

-- JeffMahoney - 04 May 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

You can put each web's search result into an HTML table cell. Put the closing and opening td tags in the header="parameter" of the FormattedSearch. Example (edit to see how this works):

Support web:
AttachmentLinkIsLinkingTolOldV...
2009-01-18 - 04:39
BestWayToEditContent
2002-01-20 - 01:41
CustomizedTWikiWebPages
2001-07-31 - 16:07
DisableEditingForCertainUsers
2007-12-16 - 03:09
DoubleViewInWebNotifyURL
2005-02-18 - 21:33
FormattedSearchResultsFromFooW...
2006-08-31 - 17:45
GettingFromBasicInstallToNextS...
2006-02-13 - 23:39
HeaderAndSomeTabsDisappearance
2008-07-23 - 07:19
HelpWithSearches
2002-06-01 - 22:42
HowToAuthenticateTwikiDrawPlug...
2002-11-20 - 17:06
Sandbox web:
AnetteKrokenSandbox
2007-08-11 - 09:48
ArtigoPediatria
2008-07-31 - 20:06
AvertRust
2008-02-08 - 14:36
BeaNal
2007-10-17 - 01:07
BlogTranscript
2007-10-09 - 02:58
BlurbSheet
2009-07-26 - 00:43
BookT20110501061324
2011-05-01 - 06:19
BuckyFullerChallenge
2007-11-11 - 18:00
CCafeExec
2007-07-29 - 22:30
ConsortiumAgreement
2007-07-20 - 20:21
TWiki web:
ATasteOfTWiki
2011-08-19 - 05:25
DakarMergeProgress
2006-01-07 - 08:09
FormattedSearch
2012-01-16 - 01:57
TWikiAccessControl
2011-06-23 - 01:02
TWikiInstallationGuide
2011-08-21 - 06:31
TWikiPreferencesComments
2008-01-24 - 04:55
TWikiSite
2012-03-29 - 22:11
VarCachePluginTest
2005-09-04 - 05:03
WabiSabi
2010-06-19 - 21:32
WhatIsWikiWiki
2006-04-29 - 07:35

-- PeterThoeny - 07 May 2006

Thanks Peter, I really appreciate the very quick response. smile

This works well and I will use this but was not quite what I was after.

I have used a formfield to capture which strategy each project support.

Below is what I was after :

Strategy WG1 WG2 WG3 WG4 WG5
Strategy A Project 1 Project 2 Project 3 - -
Strategy B - Project 4 Project 5 - -
- Project 6 Project 7 - -
- Project 8 - - -
Strategy C Project 9 - Project 10 Project 11 Project 12

-- JeffMahoney - 08 May 2006

Assuming the WGs are webs, and the Projects are topics with a common TWiki form, you can issue three SEARCHes, one for each Strategy. The header defines a cell boundary, the sparator for each project is a comma, a %BR% or a %BB%. Not sure though if it is possible to generate a TWiki table across webs, you might need to generate a standard HTML table.

-- PeterThoeny - 10 May 2006

 
Topic revision: r6 - 2006-06-16 - SteffenPoulsen
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.