We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Question

I want to use %SEARCH{...}% variable to extract contents from a topic with formatted table.This topic is not a form.So i cant use form field parameters

Name Country
abc xyz
def pqr

i want to get table with only name column and its values as in

Name
abc
def

I used %SEARCH{"[N]ame" scope="text" topic="currenttopic"     nototal="on" header="Name:" format=" $text" }%

But this is giving me the entire table and not the particular name and its values Please help

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Solaris
Web server: Apache
Perl version:  
Client OS:  
Web Browser: Firefox 2.0.0.4,Mozilla
Categories: Plugins

-- PrathibaRao - 02 Jul 2008

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.

Look at the search patterns explained in the SearchPatternCookbook Topic in Twiki Web : "Extract values from a table " .. All you need is there, and you'll find the reponse there. If you deal with more complicated searchs, remember that a "formatted search" is like a cat pipe grep pipe awk : you can open a terminal and type cat twiki_dir/data/your_web/your_topic.txt and then use grep : this will help to find the regexp you need ..Did this help ?

-- OlivierThompson - 05 Jul 2008

 
Change status to:
Topic revision: r3 - 05 Jul 2008 - 22:24:22 - OlivierThompson
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback