Tags:
create new tag
, view all tags

Question

I am attempting to use a number of textarea fields in a TWiki Form to store list values for calling in a seperate question processing web form as well as the resultant EDITTABLE that is used to store the resultant topic's URLPARAMs.

I am basically beating my head against the wall trying to figure out how to take the resultant value of the $formfield and further process it for storage in variables. One variable would be defined through a search and return of the value for $formfield(name1) and subsequently parse the value to a special format of

<option>name1.pattern_value_1</option> <option>name1.pattern_value_2</option>
, etc....

My TWiki Form text area fields are basically comma-seperated lists. I am trying to figure out how to parse through the list and render it in the sequence above.

Any ideas?

Thanks.

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: DEBIAN, kernel 2.4.27-2-386
Web server: Apache (Twiki-VM)
Perl version: 5.8.4
Client OS: Windows XP, Service Pack 2
Web Browser: Internet Explorer 6
Categories: Forms, Search

-- BryanEllsaesser - 18 Oct 2007

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.

I am wondering if I should switch over to looking into the spreadsheet plugin?

-- BryanEllsaesser - 18 Oct 2007

I have used the FORMATLIST tag in FilterPlugin quite successfully for exactly what you're describing.

-- LynnwoodBrown - 22 Oct 2007

Thanks, I wish I had run across that earlier. I found that if you use

%SEARCH{... format="$formfield(name1)"}%
within a CALC{...} it does a nice job of stripping the commas out of name1's value. So, I ended up nesting $LISTJOIN() and $SUBSTITUTE() in CALC{...} to achieve my desired result. FilterPlugin looks much cleaner. I'll give it a shot next time I need to update my code.

-- BryanEllsaesser - 23 Oct 2007

Consider question closed.

-- BryanEllsaesser - 23 Oct 2007

 
Change status to:
Topic revision: r3 - 2007-10-23 - BryanEllsaesser
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.