Question
I created a TWiki "application to handle our team contact information.
To output the results, I was using something like this (the line breaks are artificial here to make things easier to read)
%TABLE{headerbg="#CCCCFF" sort="on" initsort="1"
dataalign="center" headeralign="center" }%
|*Name*|*Email*|*IM*|*IRC*||
%SEARCH{search="META:FIELD.*?PersonName.*?" topic="TeamContactPage.*" nosearch="on" regex="on" noheader="on"
format="| [[$topic][$formfield(PersonName)]] |
$formfield(CorpID) | $formfield(CorpIM) | $formfield(CorpIRC) |" }%
The initsort worked as expected but, when I tried to sort by other columns, I was surprised. Sometimes column sorting appeared to work, sometimes it worked partially, sometimes not at all. Most unusual.
I "worked around" the problem by doing the initial sort in the search output:
%TABLE{headerbg="#CCCCFF" sort="on"
dataalign="center" headeralign="center" }%
|*Name*|*Email*|*IM*|*IRC*|
%SEARCH{search="META:FIELD.*?PersonName.*?" topic="TeamContactPage.*" nosearch="on" regex="on" noheader="on"
order="formfield(PersonName)"
format="| [[$topic][$formfield(PersonName)]] |
$formfield(CorpID) | $formfield(CorpIM) | $formfield(CorpIRC) |" }%
Am I seeing a bug here? Or a known (but not well documented) inconsistency between TABLE and SEARCH?
Environment
--
VickiBrown - 03 Jun 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
A lot of fixes was done to
TablePlugin in version 4.1.0.
You should upgrade to current 4.1.2. You problems may have been resolved.
Your problem description lacks the most important part. An example of a table that does not sort as it should.
--
KennethLavrsen - 04 Jun 2007
Kenneth - it's rather difficult to give you "an example", given the complexity of the test case. But given the code included above, the knowledgeable QA engineer should be able to build a working prototype :-) Just search on a set of pages wiith attached forms, wrapping the results in a sorted table.
--
VickiBrown - 13 Jun 2007