Документ взят из кэша поисковой машины. Адрес оригинального документа : http://dualopt1.cmm.msu.ru/bin/rdiff/TWiki/TWikiForms?rev1=19;rev2=18;skin=kubrick.nat%2Cnat%2C%20pattern;sortcol=3;table=11;up=0
Дата изменения: Unknown
Дата индексирования: Tue Apr 12 07:19:47 2016
Кодировка:
%TOPICTITLE% (18 vs. 19) - TWiki
Welcome, Registration, and other StartingPoints; TWiki history & Wiki style; All the docs...
View   r19  >  r18  ...
TWikiForms 19 - 2004-08-15 - PeterThoeny
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Line: 42 to 42
 
  1. Save the topic (you can later choose to enable/disable individual forms).

Changed:
<
<
Example: WebForm
| *Name* | *Type* | *Size* | *Values* | *Tooltip message* |
| Know.TopicClassification | select | 1 | Know.NoDisclosure, 
  Know.PublicSupported, Know.PublicFAQ | blah blah... |
| Know.OperatingSystem | checkbox | 3 | Know.OsHPUX, Know.OsLinux,
  Know.OsSolaris, Know.OsWin | blah blah... |
| Know.OsVersion | text | 16 | | blah blah... |
>
>
Example: WebForm
| *Name* | *Type* | *Size* | *Values* | *Tooltip message* |
| TopicClassification | select | 1 | NoDisclosure, PublicSupported, PublicFAQ | blah blah... |
| OperatingSystem | checkbox | 3 | OsHPUX, OsLinux, OsSolaris, OsWin | blah blah... |
| OsVersion | text | 16 | | blah blah... |
 
Name Type Size Values Tooltip message
Changed:
<
<
TopicClassification select 1 NoDisclosure , PublicSupported , PublicFAQ blah blah...
OperatingSystem checkbox 3 OsHPUX , OsLinux , OsSolaris , OsWin blah blah...
OsVersion text 16   blah blah...
>
>
TopicClassification select 1 NoDisclosure, PublicSupported, PublicFAQ blah blah...
OperatingSystem checkbox 3 OsHPUX, OsLinux, OsSolaris, OsWin blah blah...
OsVersion text 16   blah blah...
 

Defining a Form with Multiple Topics

Line: 68 to 64
 
Example: WebFormTemplate
Changed:
<
<
  • Know.WebFormTemplate main definition:
>
>
  • WebFormTemplate main definition:
 
 
Name Type Size Values Tooltip message
Changed:
<
<
TopicClassification select 1   blah blah...
OperatingSystem checkbox 3   blah blah...
OsVersion text 16   blah blah...
>
>
TopicClassification select 1   blah blah...
OperatingSystem checkbox 3   blah blah...
OsVersion text 16   blah blah...
 
ALERT! Leave the Values field blank.
Changed:
<
<
  • Know.TopicClassification field value definition:
>
>
  • TopicClassification field value definition:
 
 
Name Type Tooltip message
Changed:
<
<
NoDisclosure option blah blah...
PublicSupported option blah blah...
PublicFAQ option blah blah...
>
>
NoDisclosure option blah blah...
PublicSupported option blah blah...
PublicFAQ option blah blah...
 

  • Implementation Notes: This format allows you to define field items with or without WikiNames, depending on your needs.
Line: 106 to 102
 
  • Additionally a new topic can be given a Form using the formtemplate parameter in the URL. Initial values can then be provided in the URLs or as form values:
    • other than checkboxes: name, ex: ?BugPriority=1
Changed:
<
<
    • checkbox: namevalue=1, ex: ?ColourRed=1.
>
>
    • checkbox: namevalue=1, ex: ?ColorRed=1.
  Boxes with a tick must be specified.

Setting Up Multiple Form Options

Line: 144 to 140
  TIP NOTE: If things aren't working correctly, there may be useful entries in data/warning.txt.
Added:
>
>

Using Forms For Settings

Example process to change your WebPreferences to use forms instead of {3 spaces}* Set statements:

  1. create WebPrefencesForm topic
  2. fill it with a table like this:
    | *Name*|*Type*|*Size*|*Value*|*Tooltip message*|*Attributes*|
    | WEBTOPICLIST |textarea| |     | List of topics of the %WEB% web |S|
    | SITEMAPLIST  |select  |3| on, | list this web in the Site Map  |S|
    | SITEMAPWHAT  |textarea| |     | short web summary             |S|
    | WEBBGCOLOR   |text    |8|     | Web specific background color |S|