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 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.

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:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008-07-05 - OlivierThompson
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.