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

How can I use select values already in a topic when expecting them in a select definition for EDITTABLE?

The EditTablePlugin allows select values when directly defined in the format and basically also macros if escaped like:


So I tried a search at this point which doesn't work out as I expected although it generally works if put directly into the topic:

%SEARCH{ "--find--" type="literal" web="%USERSWEB%" topic="WorkCountry" scope="text" nonoise="on" multiple="on" format="$pattern(.*?( [^*].*? ).*)," }%

The relevant part of the EDITTABLE definition was:

| select, 1, %<nop>SEARCH{ "--find--" type="literal" web="Main" topic="WorkCountry" scope="text" nonoise="on" multiple="on" format="$pattern(.*?( [^*].*? ).*)," }% |

But resulted in:

  • screenshot of the "failing" search:
    search for edittable select.png

Are there maybe other known ways to do that except of putting all values directly into the select definition? That'll be pretty valuable I guess and could be a good tip too.

-- IngoKappler - 23 Jul 2009

It seems that EDITTABLE is being run before the SEARCH. You can work-around that by using a CALC, since the SpreadsheetPlugin is usually set to run before EDITTABLE.

E.g., this works:
%EDITTABLE{format="| select,3,,%CALC{$GET(myoptions)}% |"}%

It makes your markup marginally easier to read too, instead having a long EDITTABLE line.

-- SeanMorgan - 29 Jul 2009

QuestionForm edit

Subject Using an extension
Extension EditTablePlugin
Version Foswiki 1.0.6
Status Answered
Topic attachments
I Attachment Action Size Date Who Comment
search_for_edittable_select.pngpng search_for_edittable_select.png manage 5 K 23 Jul 2009 - 13:04 IngoKappler screenshot of the "failing" search
Topic revision: r2 - 29 Jul 2009, SeanMorgan - This page was cached on 18 Sep 2018 - 01:18.

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