Tags:
create new tag
, view all tags

Question

I've run into same problem reported in FromDropDownCallTwikiUser - returning a search of users to a select list within a TWiki table, breaks the table. I've added an empty separator as suggested by PeterThoeny, but this did not resolve the problem.

Relevant row in table:

| *Assigned to:* | <select name="assignedto"><option>- Select Owner -</option>%SEARCH{ "OrganisationalUnit.*value\=.*dbServices;" order="topic" regex="on" separator=" " web="%MAINWEB%" casesensitive="on" nototal="on" format="<option>$topic</option>"}%</select>|

Screen shot of results:

Environment

TWiki version: unspecified
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Search

-- MichelleAlbertin - 17 Sep 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 wouldn't have known in advance, but some experiments suggest the solution: You need to suppress all of the standard things a search usually adds per default. So simply replace your nototal="on" by nonoise="on". I can't demonstrate with your search, but let me try a simple live mockup here.

Source

| *Row1* | data |
| *Row2* | <select name="assignedto"><option>- Select Owner -</option>%SEARCH{ "^Web" scope="topic" order="topic" regex="on" separator=" " web="%MAINWEB%" casesensitive="on" nonoise="on" format="<option>$topic</option>"}%</select>|
| *Row3* | data |

Result

Row1 data
Row2
Row3 data

  • ALERT! Against my expectations this seems to yield more topics than those beginning with Web. Is scope="topic" broken? Anyway, not in the scope of the current topic.

Please re-open the request if that doesn't do the trick for you!

-- HaraldJoerg - 17 Sep 2007

That did it, thanks.

-- MichelleAlbertin - 18 Sep 2007

Add a separator=" " (e.g. a space) to the SEARCH to avoid line breaks.

-- PeterThoeny - 18 Sep 2007

 
Change status to:
Topic attachments
I Attachment Action Size Date Who Comment
Unknown file formatJPG table_screenshot.JPG manage 31.5 K 2007-09-17 - 14:50 MichelleAlbertin Screenshot of broken output
Topic revision: r5 - 2007-09-18 - 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.