Tags:
create new tag
, view all tags

Question

Does anyone know how to include all TWikiUsers in a drop list on a form?

  • TWiki version:
  • Web server:
  • Server OS:
  • Web browser:
  • Client OS:

-- TWikiGuest - 11 Mar 2002

Answer

Use a FormattedSearch with a regex to get all topics in the Main web that have a * Email: user@domain bullet:

%SEARCH{"\* Email\: [^\@]+\@" scope="text" regex="on" web="Main" nosearch="on" nototal="on" format="<option name=\"$web.$topic\">$topic</option>"}%

Here is a sample (only showing a small subset of the 2500 users; remove the 'z' after the ':'):

Edit the topic to see how it works.

-- PeterThoeny - 11 Mar 2002

Follow-up

Is it possible to do it in a TWiki form? If I try to use the % SEARCH% in the form definition, it doesn't get expanded.

-- TWikiGuest - 12 Mar 2002

You need the latest TWikiAlphaRelease, see VariablesDoNotGetExpandedInForms

-- PeterThoeny - 12 Mar 2002

Topic revision: r4 - 2002-03-13 - PeterThoeny
 
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.