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 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 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 History Action Size Date Who Comment
JPEGjpg table_screenshot.JPG r1 manage 31.5 K 2007-09-17 - 14:50 UnknownUser Screenshot of broken output
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-09-18 - 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.