Tags:
create new tag
view all tags

Question

Actually two questions...

I'm using a similar application as the FeatureRequest tool in the Web Codev (if you can't find it, check "Create New Topic" in left navigation bar), but mine is adding software applications. After filling out the form, data will get transfered to a template via "SCRIPTURLPATH". That's working great so far. But I also wanna transfer one data field (the topic name, which is the first field in my form) to the topic WebPreferences, where I've set a new variable, and add an entry the comma separated list.

On other forms I want to load that variable for another multiple choice field in alphabetical order, where the user can select one or multiple categories. Loading the list is also working, but how can i get the items in alphabetical order?

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Debian 3.1 (twiki-vm latest version)
Web server: Apache
Perl version: 5.x
Client OS: Windows XP
Web Browser: Opera
Categories: Forms

-- ThomasEsau - 21 Nov 2006

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.

I just found it... "$LISTSORT()" of SpreadSheetPlugin is the answer on my second questions.

-- ThomasEsau - 21 Nov 2006

I do not understand why you need to update WebPreferences with each new topic you create. To me it looks like you get the functionality with a dynamic report, e.g. do a SEARCH that returns the list of all topics of this type, identified for example with the name of the form. Example that returns a comma separated list of topics: %SEARCH{ "META:FORM.*MyForm" type="regex" excludetopic="MyFormTemplate" nonoise="on" format="$topic" separator=", " }

-- PeterThoeny - 22 Nov 2006

Good idea! Thanks!

-- ThomasEsau - 22 Nov 2006

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-11-22 - ThomasEsau
 
  • 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.