cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Using an extension: Answered

Is it possible to use a SEARCH only within one field of a table without breaking the table?

I am trying to do something like this:
%TABLE{ initsort="4" }%
%EDITTABLE{ header="| *#* | *IMSC Component Name* | *Priority* | *Sub Priority* | *Status* | *Comment* | *Related Topics* |" format="| row, -1 | text, 20 | select, 1, High, Medium, Low | select, 1, High, Medium, Low | select, 1, Not Started, In Progress, Done | text, 20 |" }%
| *#* | *IMSC Component Name* | *Priority* | *Sub Priority* | *Status* | *Comment* | *Related Topics* |
| 1 | Attribute_Predicates | Low | Low | In Progress | | %SEARCH{"ConfigurationModule='Attribute_Predicates' " type="query" nonoise="on" nofinalnewline="on" format="$topic"}% |

I am aware that putting the whole table line into the format parameter of the SEARCH would solve the issue but I also want to keep the EDITTABLE definitions. Doing it as listed currently breaks the table rendering.

-- IngoKappler - 02 Oct 2009

Answer

If the results do not contain newlines it should work fine:

%EDITTABLE{}%
| BEFORE | %SEARCH{"QuestionForm" type="query" nonoise="on" limit="5" format="[[$web.$topic][$topic]]" separator=","}% | AFTER |

BEFORE
 
AFTER
edit

-- ArthurClemens - 02 Oct 2009

QuestionForm edit

Subject Using an extension
Extension EditTablePlugin
Version Foswiki 1.0.7
Status Answered
Topic revision: r2 - 02 Oct 2009, ArthurClemens - This page was cached on 20 Sep 2018 - 06:02.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy