Tags:
create new tag
view all tags

Question

Hi - I've researched all over for sample of how to make this work, but am at my wits end.

I am trying to extract a comma-separated list of values from a single table field. The samples in SearchPatternCookbook have gotten me close, but no cigar yet.

The table looks like this:

Name Type Size Values Tooltip message Attributes
Task textarea 40x3   Task Name & Description M
Status select 1 Not Started, Active, Completed, Canceled Task Status  

I want to extract the values "Not Started, Active, Completed" for use in a select box in a form. I'm missing the right search and format regexes for this, I'm pretty sure. Many thanks in advance!

Environment

TWiki version: TWikiRelease04x02x03
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: CentOS
Web server: Apache
Perl version: 5.8.8
Client OS: WindowsXP
Web Browser: MozillaFirefox
Categories: Search

-- BenSommer - 21 Nov 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.

Here is a working example that builds a pick list based on the Status definition in above table. Look at the "raw view" to copy it.

On behalf of the friendly TWikiCommunity.

-- PeterThoeny - 21 Nov 2008

Many thanks, Sir! I'll be sure to study this example for future use - looks like there are several nifty, perl-ish utility functions I can use going forward.

-- BenSommer - 22 Nov 2008

Your welcome. TWiki is an application platform, study TWikiVariables, TWikiForms, TWikiTemplates, VarSEARCH, FormattedSearch, QuerySearch, and see sample applications in the Sandbox home page. BTW, call me Peter, it's more informal.

If you are interested we'd love to get you involved in the TWikiCommunity. As a contributor you can actively make a difference. See Codev.ReadmeFirst for core code, and Plugins.ReadmeFirst for extensions.

-- PeterThoeny - 22 Nov 2008

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2008-11-22 - PeterThoeny
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.