w3HtmlSelect

Syntax   Parameters   Example Programs   Example

w3HtmlSelect inserts a select prompt into the form.  

Syntax

call w3HtmlSelect  (name , value , text , selected , template , options , subs )  

Parameters

name

In

Name you want to give this select box.

value

In

Multi-valued list of values for the selectable options.

text

In

Multi-valued list of text associated with each option. If the text for an entry is null, then the value is used.

selected

In

Multi-valued list of flags indicating if a specific entry is selected or not. "" = not selected, other = selected .

template

In

Name of the template used to create the select prompt. If not specified, the default template w3HtmlSelect is used. If you wish to use a different template, the same section names and substitution tags names as in w3HtmlSelect must be provided.

options

In

Extra HTML options you want to give this variable. Such as "MULTIPLE SIZE=5" or JavaScript.

subs

In

A substitution array applied to each section of the template. The following substitution tags are reserved for this program: !NAME!, !VALUE!, !TEXT!, !OPTIONS! and should not be used.

Example Programs

 act*24326

 w3Admin.w3Apps.create

 w3Admin.w3Apps.Maintain

 w3Admin.w3Apps.Update

 selectTest

 w3Admin.w3User.form

Example

Value = 1:@am:2

Text  = "One":@am:"Two"

Selected = 0:@am:1

call w3HtmlSelect( "MySelect",Value, Text, Selected, "", "MULTIPLE SIZE=5", "")

     Creates the following HTML:

     <SELECT NAME="MySelect" MULTIPLE SIZE=5>

     <OPTION VALUE="1">One

     <OPTION VALUE="2" SELECTED>Two