Tags:
create new tag
, view all tags

Question

I would like to have multiple pages referring to a set of values in a drop-down. So, if I edit the drop-down on the 'master' page, it's available on every page. Here's what I've got - This code appears on a separate page, named "WebIncludeList":

%STARTINCLUDE%
Result,CC,DO NOT CODE,IR,IR Review,Trash
%STOPINCLUDE%


This is the actual code in the web page:

%EDITTABLE{ format="| select,1,que1,%INCLUDE{Clients.WebIncludeList}%,que2 | text,25| text,25| text,25|" }%
| *Queue* | *Name* | *Usage* | *Routing* |
| | | | |


What is displayed is the actual EDITTABLE code!!! It doesn't "compile":

%EDITTABLE{ format="| select,1,que1,Result,CC,DO NOT CODE,IR,IR Review,Trash,que2 | text,25| text,25| text,25|" }%
Queue Name Usage Routing
       


So, the INCLUDE works, but the EDITTABLE does not!! What do I not understand about simplifying a 'master' template for a drop-down list? ALL suggestions gratefully appreciated!

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Apache 1.3.21
Web server: Apache 1.3.21
Perl version: 5.8.1
Client OS: WinXP SP1
Web Browser: IE 6
Categories: Topic revisions

-- BruceMcLendon - 25 Oct 2004

Answer

Try this:

%STARTINCLUDE%Result,CC,DO NOT CODE,IR,IR Review,Trash%STOPINCLUDE%

In other words, put everything on the same line. I have found that this often makes a difference when using "INCLUDE" for other things as well (like tables).

I created an example implementation in EditTableWithVarOptions. The OPTIONS topic is EditTableColumn1Options

-- SteveRJones - 15 Nov 2004

 
Topic revision: r2 - 2004-11-15 - SteveRJones
 
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.