home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 April / Chip_2000-04_cd.bin / zkuste / Tango / data1.cab / Tango_Demos_TCFs / FormBuilder.tcf < prev    next >
Extensible Markup Language  |  1999-09-21  |  100KB  |  2,347 lines

  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <!DOCTYPE TAF SYSTEM "tango.dtd" >
  3. <TCF Version="0x02000002">
  4.     <Comments />
  5.  
  6.     <!--Defined Classes-->
  7.     <Classes>
  8.         <ClassDef>
  9.             <Name>FormBuilder</Name>
  10.  
  11.             <!--Class constructor-->
  12.             <On_Create>
  13.                 <Implementation>
  14.                     <ActionRef Ref="FormBuilder.On_Create.Comments" />
  15.                 </Implementation>
  16.             </On_Create>
  17.  
  18.             <!--Class destructor-->
  19.             <On_Destroy>
  20.                 <Implementation />
  21.             </On_Destroy>
  22.  
  23.             <!--Methods of this class-->
  24.             <Methods>
  25.                 <MethodDef>
  26.                     <Name>addRadioButtons</Name>
  27.                     <MethodParameterList>
  28.                         <MethodParameterItem DataType="Text" Direction="In">
  29.                             <Name>Name</Name>
  30.                             <Comments>Name of a set of Radio Buttons.</Comments>
  31.                         </MethodParameterItem>
  32.                         <MethodParameterItem DataType="Text" Direction="In">
  33.                             <Name>Label</Name>
  34.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  35.                         </MethodParameterItem>
  36.                         <MethodParameterItem DataType="Array" Direction="In">
  37.                             <Name>Options</Name>
  38.                             <Comments>(n x 2) <![CDATA[
  39.  
  40.   
  41.  
  42.       First Column = Value of Button
  43.  
  44. Second Column = Desc of Button]]></Comments>
  45.                         </MethodParameterItem>
  46.                         <MethodParameterItem DataType="Text" Direction="In">
  47.                             <Name>DefaultValue</Name>
  48.                             <Comments>Value to be checked (if any)</Comments>
  49.                         </MethodParameterItem>
  50.                         <MethodParameterItem DataType="Text" Direction="In">
  51.                             <Name>Required</Name>
  52.                             <Comments>Input should be <![CDATA["TRUE" or "FALSE".
  53.  
  54. If field is required, 
  55.  
  56. client side JavaScript Form verification will ensue.]]></Comments>
  57.                         </MethodParameterItem>
  58.                         <MethodParameterItem DataType="Text" Direction="In">
  59.                             <Name>NumCols</Name>
  60.                             <Comments>Number of Radio Buttons per row.</Comments>
  61.                         </MethodParameterItem>
  62.                     </MethodParameterList>
  63.                     <Implementation>
  64.                         <ActionRef Ref="FormBuilder.addRadioButtons.Append_RadioButtons" />
  65.                     </Implementation>
  66.                 </MethodDef>
  67.                 <MethodDef>
  68.                     <Name>addTextField</Name>
  69.                     <MethodParameterList>
  70.                         <MethodParameterItem DataType="Text" Direction="In">
  71.                             <Name>Name</Name>
  72.                             <Comments>Name of a Text Field</Comments>
  73.                         </MethodParameterItem>
  74.                         <MethodParameterItem DataType="Text" Direction="In">
  75.                             <Name>Label</Name>
  76.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  77.                         </MethodParameterItem>
  78.                         <MethodParameterItem DataType="Text" Direction="In">
  79.                             <Name>DefaultValue</Name>
  80.                             <Comments>Value to be displayed.</Comments>
  81.                         </MethodParameterItem>
  82.                         <MethodParameterItem DataType="Text" Direction="In">
  83.                             <Name>DisplayLength</Name>
  84.                             <Comments>Length of the field, in characters, displayed on the form.</Comments>
  85.                         </MethodParameterItem>
  86.                         <MethodParameterItem DataType="Text" Direction="In">
  87.                             <Name>MaxLength</Name>
  88.                             <Comments>Length of the input, in characters, that will be accepted by the form.</Comments>
  89.                         </MethodParameterItem>
  90.                         <MethodParameterItem DataType="Text" Direction="In">
  91.                             <Name>Required</Name>
  92.                             <Comments>Input should be <![CDATA["TRUE" or "FALSE".
  93.  
  94. If field is required, 
  95.  
  96. client side JavaScript Form verification will ensue.]]></Comments>
  97.                         </MethodParameterItem>
  98.                     </MethodParameterList>
  99.                     <Implementation>
  100.                         <ActionRef Ref="FormBuilder.addTextField.Append_TextField" />
  101.                     </Implementation>
  102.                 </MethodDef>
  103.                 <MethodDef>
  104.                     <Name>addCheckbox</Name>
  105.                     <MethodParameterList>
  106.                         <MethodParameterItem DataType="Text" Direction="In">
  107.                             <Name>Name</Name>
  108.                             <Comments>Name of a Check Box.</Comments>
  109.                         </MethodParameterItem>
  110.                         <MethodParameterItem DataType="Text" Direction="In">
  111.                             <Name>Label</Name>
  112.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  113.                         </MethodParameterItem>
  114.                         <MethodParameterItem DataType="Text" Direction="In">
  115.                             <Name>Value</Name>
  116.                             <Comments>Value associated with the Check Box.</Comments>
  117.                         </MethodParameterItem>
  118.                         <MethodParameterItem DataType="Text" Direction="In">
  119.                             <Name>Checked</Name>
  120.                             <Comments>TRUE or FALSE</Comments>
  121.                         </MethodParameterItem>
  122.                     </MethodParameterList>
  123.                     <Implementation>
  124.                         <ActionRef Ref="FormBuilder.addCheckbox.Append_Checkbox" />
  125.                     </Implementation>
  126.                 </MethodDef>
  127.                 <MethodDef>
  128.                     <Name>outputForm</Name>
  129.                     <MethodParameterList>
  130.                         <MethodParameterItem DataType="Text" Direction="In">
  131.                             <Name>SubmitText</Name>
  132.                             <Comments>Text displayed on the <![CDATA["Submit Button" of the Form.]]></Comments>
  133.                         </MethodParameterItem>
  134.                     </MethodParameterList>
  135.                     <Implementation>
  136.                         <ActionRef Ref="FormBuilder.outputForm.If_Required_Elements_Found">
  137.                             <ActionRef Ref="FormBuilder.outputForm.Output_Javascript_Into_Form" />
  138.                         </ActionRef>
  139.                         <ActionRef Ref="FormBuilder.outputForm.Output_form" />
  140.                     </Implementation>
  141.                     <UseReturnValue>TRUE</UseReturnValue>
  142.                 </MethodDef>
  143.                 <MethodDef>
  144.                     <Name>openForm</Name>
  145.                     <MethodParameterList>
  146.                         <MethodParameterItem DataType="Text" Direction="In">
  147.                             <Name>Name</Name>
  148.                             <Comments>Name of Form.</Comments>
  149.                         </MethodParameterItem>
  150.                         <MethodParameterItem DataType="Text" Direction="In">
  151.                             <Name>Action</Name>
  152.                             <Comments>Path to the file that will receive the results of this form.</Comments>
  153.                         </MethodParameterItem>
  154.                         <MethodParameterItem DataType="Text" Direction="In">
  155.                             <Name>RequiredColor</Name>
  156.                             <Comments>Color of the asterisk that denotes a required field.<![CDATA[
  157.  
  158. Defaults to Maroon.]]></Comments>
  159.                         </MethodParameterItem>
  160.                     </MethodParameterList>
  161.                     <Implementation>
  162.                         <ActionRef Ref="FormBuilder.openForm.Initialize_Form" />
  163.                     </Implementation>
  164.                 </MethodDef>
  165.                 <MethodDef>
  166.                     <Name>addFileField</Name>
  167.                     <MethodParameterList>
  168.                         <MethodParameterItem DataType="Text" Direction="In">
  169.                             <Name>Name</Name>
  170.                             <Comments>Name of a File Field.</Comments>
  171.                         </MethodParameterItem>
  172.                         <MethodParameterItem DataType="Text" Direction="In">
  173.                             <Name>Label</Name>
  174.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  175.                         </MethodParameterItem>
  176.                         <MethodParameterItem DataType="Text" Direction="In">
  177.                             <Name>DefaultValue</Name>
  178.                             <Comments>Value to be displayed. <![CDATA[
  179.  
  180. If there is a default value, this acts as a Text Field.
  181.  
  182. Otherwise, as a file field, with a browse button.]]></Comments>
  183.                         </MethodParameterItem>
  184.                         <MethodParameterItem DataType="Text" Direction="In">
  185.                             <Name>MaxLength</Name>
  186.                             <Comments>Length of the input, in characters, that will be accepted by the form.</Comments>
  187.                         </MethodParameterItem>
  188.                         <MethodParameterItem DataType="Text" Direction="In">
  189.                             <Name>DisplayLength</Name>
  190.                             <Comments>Length of the field, in characters, displayed on the form.</Comments>
  191.                         </MethodParameterItem>
  192.                         <MethodParameterItem DataType="Text" Direction="In">
  193.                             <Name>Required</Name>
  194.                             <Comments>Input should be <![CDATA["TRUE" or "FALSE".
  195.  
  196. If field is required, 
  197.  
  198. client side JavaScript Form verification will ensue.]]></Comments>
  199.                         </MethodParameterItem>
  200.                     </MethodParameterList>
  201.                     <Implementation>
  202.                         <ActionRef Ref="FormBuilder.addFileField.Append_FileField" />
  203.                     </Implementation>
  204.                 </MethodDef>
  205.                 <MethodDef>
  206.                     <Name>addCheckboxes</Name>
  207.                     <MethodParameterList>
  208.                         <MethodParameterItem DataType="Text" Direction="In">
  209.                             <Name>Name</Name>
  210.                             <Comments>Name of a set of Check Boxes.</Comments>
  211.                         </MethodParameterItem>
  212.                         <MethodParameterItem DataType="Text" Direction="In">
  213.                             <Name>Label</Name>
  214.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  215.                         </MethodParameterItem>
  216.                         <MethodParameterItem DataType="Array" Direction="In">
  217.                             <Name>Options</Name>
  218.                             <Comments>(n x 2) <![CDATA[
  219.  
  220.   
  221.  
  222.       First Column = Value of Check Box
  223.  
  224. Second Column = Desc of Check Box]]></Comments>
  225.                         </MethodParameterItem>
  226.                         <MethodParameterItem DataType="Text" Direction="In">
  227.                             <Name>NumCols</Name>
  228.                             <Comments>Number of Check Boxes per row.</Comments>
  229.                         </MethodParameterItem>
  230.                     </MethodParameterList>
  231.                     <Implementation>
  232.                         <ActionRef Ref="FormBuilder.addCheckboxes.Append_Checkboxes" />
  233.                     </Implementation>
  234.                 </MethodDef>
  235.                 <MethodDef>
  236.                     <Name>addDropdown</Name>
  237.                     <MethodParameterList>
  238.                         <MethodParameterItem DataType="Text" Direction="In">
  239.                             <Name>Name</Name>
  240.                             <Comments>Name of a Drop Down List.</Comments>
  241.                         </MethodParameterItem>
  242.                         <MethodParameterItem DataType="Text" Direction="In">
  243.                             <Name>Label</Name>
  244.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  245.                         </MethodParameterItem>
  246.                         <MethodParameterItem DataType="Array" Direction="In">
  247.                             <Name>Options</Name>
  248.                             <Comments>(n x 2) <![CDATA[
  249.  
  250.   
  251.  
  252.       First Column = Value of List Item
  253.  
  254. Second Column = Desc of List Item]]></Comments>
  255.                         </MethodParameterItem>
  256.                         <MethodParameterItem DataType="Text" Direction="In">
  257.                             <Name>DefaultValue</Name>
  258.                             <Comments>Value to be selected (if any)</Comments>
  259.                         </MethodParameterItem>
  260.                         <MethodParameterItem DataType="Text" Direction="In">
  261.                             <Name>MultipleSize</Name>
  262.                             <Comments>If desiring a multiple select list box, <![CDATA[
  263.  
  264. enter an integer to denote the size.]]></Comments>
  265.                         </MethodParameterItem>
  266.                         <MethodParameterItem DataType="Text" Direction="In">
  267.                             <Name>Required</Name>
  268.                             <Comments>Input should be <![CDATA["TRUE" or "FALSE".
  269.  
  270. If field is required, 
  271.  
  272. client side JavaScript Form verification will ensue.]]></Comments>
  273.                         </MethodParameterItem>
  274.                     </MethodParameterList>
  275.                     <Implementation>
  276.                         <ActionRef Ref="FormBuilder.addDropdown.Append_Dropdown" />
  277.                     </Implementation>
  278.                 </MethodDef>
  279.                 <MethodDef>
  280.                     <Name>addDateField</Name>
  281.                     <MethodParameterList>
  282.                         <MethodParameterItem DataType="Text" Direction="In">
  283.                             <Name>Name</Name>
  284.                             <Comments>Name of a Date Field.</Comments>
  285.                         </MethodParameterItem>
  286.                         <MethodParameterItem DataType="Text" Direction="In">
  287.                             <Name>Label</Name>
  288.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  289.                         </MethodParameterItem>
  290.                         <MethodParameterItem DataType="Text" Direction="In">
  291.                             <Name>DefaultValue</Name>
  292.                             <Comments>Default value displayed in field.</Comments>
  293.                         </MethodParameterItem>
  294.                         <MethodParameterItem DataType="Text" Direction="In">
  295.                             <Name>Required</Name>
  296.                             <Comments>Input should be <![CDATA["TRUE" or "FALSE".
  297.  
  298. If field is required, 
  299.  
  300. client side JavaScript Form verification will ensue.]]></Comments>
  301.                         </MethodParameterItem>
  302.                         <MethodParameterItem DataType="Text" Direction="In">
  303.                             <Name>PopupCalendar</Name>
  304.                             <Comments>Input <![CDATA["TRUE" or "FALSE".
  305.  
  306. If True, Pop up Calendar will be used.
  307.  
  308. Enter Path in PopupCalendarPath.]]></Comments>
  309.                         </MethodParameterItem>
  310.                         <MethodParameterItem DataType="Text" Direction="In">
  311.                             <Name>PopupCalendarPath</Name>
  312.                             <Comments>Enter a path to the popup <![CDATA["calendar.taf", and "calendar.gif".
  313.  
  314. Inherently these need to be in the same directory.]]></Comments>
  315.                         </MethodParameterItem>
  316.                     </MethodParameterList>
  317.                     <Implementation>
  318.                         <ActionRef Ref="FormBuilder.addDateField.Append_DateField" />
  319.                     </Implementation>
  320.                 </MethodDef>
  321.                 <MethodDef>
  322.                     <Name>addDateRange</Name>
  323.                     <MethodParameterList>
  324.                         <MethodParameterItem DataType="Text" Direction="In">
  325.                             <Name>LowerName</Name>
  326.                             <Comments>Name of the Lower Date Field.</Comments>
  327.                         </MethodParameterItem>
  328.                         <MethodParameterItem DataType="Text" Direction="In">
  329.                             <Name>UpperName</Name>
  330.                             <Comments>Name of the Upper Date Field.</Comments>
  331.                         </MethodParameterItem>
  332.                         <MethodParameterItem DataType="Text" Direction="In">
  333.                             <Name>Label</Name>
  334.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  335.                         </MethodParameterItem>
  336.                         <MethodParameterItem DataType="Text" Direction="In">
  337.                             <Name>LowerDefaultValue</Name>
  338.                             <Comments>Default value displayed in lower field.</Comments>
  339.                         </MethodParameterItem>
  340.                         <MethodParameterItem DataType="Text" Direction="In">
  341.                             <Name>UpperDefaultValue</Name>
  342.                             <Comments>Default value displayed in upper field.</Comments>
  343.                         </MethodParameterItem>
  344.                         <MethodParameterItem DataType="Text" Direction="In">
  345.                             <Name>Required</Name>
  346.                             <Comments>Input should be <![CDATA["TRUE" or "FALSE".
  347.  
  348. If field is required, 
  349.  
  350. client side JavaScript Form verification will ensue.]]></Comments>
  351.                         </MethodParameterItem>
  352.                         <MethodParameterItem DataType="Text" Direction="In">
  353.                             <Name>PopupCalendar</Name>
  354.                             <Comments>Enter a path to the popup <![CDATA["calendar.taf", and "calendar.gif".
  355.  
  356. Inherently these need to be in the same directory.]]></Comments>
  357.                         </MethodParameterItem>
  358.                         <MethodParameterItem DataType="Text" Direction="In">
  359.                             <Name>PopupCalendarPath</Name>
  360.                             <Comments>Enter a path to the popup <![CDATA["calendar.html", and "calendar.gif".
  361.  
  362. Inherently these need to be in the same directory.]]></Comments>
  363.                         </MethodParameterItem>
  364.                     </MethodParameterList>
  365.                     <Implementation>
  366.                         <ActionRef Ref="FormBuilder.addDateRange.Append_DateRangeFields" />
  367.                     </Implementation>
  368.                 </MethodDef>
  369.                 <MethodDef>
  370.                     <Name>addPassword</Name>
  371.                     <MethodParameterList>
  372.                         <MethodParameterItem DataType="Text" Direction="In">
  373.                             <Name>Name</Name>
  374.                             <Comments>Name of a Password Field.</Comments>
  375.                         </MethodParameterItem>
  376.                         <MethodParameterItem DataType="Text" Direction="In">
  377.                             <Name>Label</Name>
  378.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  379.                         </MethodParameterItem>
  380.                         <MethodParameterItem DataType="Text" Direction="In">
  381.                             <Name>DefaultValue</Name>
  382.                             <Comments>Default value displayed in field.</Comments>
  383.                         </MethodParameterItem>
  384.                         <MethodParameterItem DataType="Text" Direction="In">
  385.                             <Name>DisplayLength</Name>
  386.                             <Comments>Length of the field, in characters, displayed on the form.</Comments>
  387.                         </MethodParameterItem>
  388.                         <MethodParameterItem DataType="Text" Direction="In">
  389.                             <Name>MaxLength</Name>
  390.                             <Comments>Length of the input, in characters, that will be accepted by the form.</Comments>
  391.                         </MethodParameterItem>
  392.                         <MethodParameterItem DataType="Text" Direction="In">
  393.                             <Name>Required</Name>
  394.                             <Comments>Input should be <![CDATA["TRUE" or "FALSE".
  395.  
  396. If field is required, 
  397.  
  398. client side JavaScript Form verification will ensue.]]></Comments>
  399.                         </MethodParameterItem>
  400.                     </MethodParameterList>
  401.                     <Implementation>
  402.                         <ActionRef Ref="FormBuilder.addPassword.Append_PasswordField" />
  403.                     </Implementation>
  404.                 </MethodDef>
  405.                 <MethodDef>
  406.                     <Name>addIntegerField</Name>
  407.                     <MethodParameterList>
  408.                         <MethodParameterItem DataType="Text" Direction="In">
  409.                             <Name>Name</Name>
  410.                             <Comments>Name of an Integer Field.</Comments>
  411.                         </MethodParameterItem>
  412.                         <MethodParameterItem DataType="Text" Direction="In">
  413.                             <Name>Label</Name>
  414.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  415.                         </MethodParameterItem>
  416.                         <MethodParameterItem DataType="Text" Direction="In">
  417.                             <Name>DefaultValue</Name>
  418.                             <Comments>Default value displayed in field.</Comments>
  419.                         </MethodParameterItem>
  420.                         <MethodParameterItem DataType="Text" Direction="In">
  421.                             <Name>MinValue</Name>
  422.                             <Comments>Min Value that will be accepted in this field.<![CDATA[
  423.  
  424. Java Script will be enabled to handle this.]]></Comments>
  425.                         </MethodParameterItem>
  426.                         <MethodParameterItem DataType="Text" Direction="In">
  427.                             <Name>MaxValue</Name>
  428.                             <Comments>Max Value that will be accepted in this field.<![CDATA[
  429.  
  430. Java Script will be enabled to handle this.]]></Comments>
  431.                         </MethodParameterItem>
  432.                         <MethodParameterItem DataType="Text" Direction="In">
  433.                             <Name>Required</Name>
  434.                             <Comments>Input should be <![CDATA["TRUE" or "FALSE".
  435.  
  436. If field is required, 
  437.  
  438. client side JavaScript Form verification will ensue.]]></Comments>
  439.                         </MethodParameterItem>
  440.                     </MethodParameterList>
  441.                     <Implementation>
  442.                         <ActionRef Ref="FormBuilder.addIntegerField.Append_IntegerField" />
  443.                     </Implementation>
  444.                 </MethodDef>
  445.                 <MethodDef>
  446.                     <Name>addFloatField</Name>
  447.                     <MethodParameterList>
  448.                         <MethodParameterItem DataType="Text" Direction="In">
  449.                             <Name>Name</Name>
  450.                             <Comments>Name of a Float Field</Comments>
  451.                         </MethodParameterItem>
  452.                         <MethodParameterItem DataType="Text" Direction="In">
  453.                             <Name>Label</Name>
  454.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  455.                         </MethodParameterItem>
  456.                         <MethodParameterItem DataType="Text" Direction="In">
  457.                             <Name>DefaultValue</Name>
  458.                             <Comments>Default value displayed in field.</Comments>
  459.                         </MethodParameterItem>
  460.                         <MethodParameterItem DataType="Text" Direction="In">
  461.                             <Name>MinValue</Name>
  462.                             <Comments>Min Value that will be accepted in this field.<![CDATA[
  463.  
  464. Java Script will be enabled to handle this.]]></Comments>
  465.                         </MethodParameterItem>
  466.                         <MethodParameterItem DataType="Text" Direction="In">
  467.                             <Name>MaxValue</Name>
  468.                             <Comments>Max Value that will be accepted in this field.<![CDATA[
  469.  
  470. Java Script will be enabled to handle this.]]></Comments>
  471.                         </MethodParameterItem>
  472.                         <MethodParameterItem DataType="Text" Direction="In">
  473.                             <Name>Required</Name>
  474.                             <Comments>Input should be <![CDATA["TRUE" or "FALSE".
  475.  
  476. If field is required, 
  477.  
  478. client side JavaScript Form verification will ensue.]]></Comments>
  479.                         </MethodParameterItem>
  480.                     </MethodParameterList>
  481.                     <Implementation>
  482.                         <ActionRef Ref="FormBuilder.addFloatField.Append_FloatField" />
  483.                     </Implementation>
  484.                 </MethodDef>
  485.                 <MethodDef>
  486.                     <Name>addDivider</Name>
  487.                     <MethodParameterList>
  488.                         <MethodParameterItem DataType="Text" Direction="In">
  489.                             <Name>Label</Name>
  490.                             <Comments>Label To be Displayed in Divider.  HTML accepted.<![CDATA[
  491.  
  492. Enter   to ensure background color fill.]]></Comments>
  493.                         </MethodParameterItem>
  494.                         <MethodParameterItem DataType="Text" Direction="In">
  495.                             <Name>BackgroundColor</Name>
  496.                             <Comments>Color of Divider.</Comments>
  497.                         </MethodParameterItem>
  498.                     </MethodParameterList>
  499.                     <Implementation>
  500.                         <ActionRef Ref="FormBuilder.addDivider.Append_Divider" />
  501.                     </Implementation>
  502.                 </MethodDef>
  503.                 <MethodDef>
  504.                     <Name>addBlankLine</Name>
  505.                     <MethodParameterList />
  506.                     <Implementation>
  507.                         <ActionRef Ref="FormBuilder.addBlankLine.Append_Blank" />
  508.                     </Implementation>
  509.                 </MethodDef>
  510.                 <MethodDef>
  511.                     <Name>addReadOnly</Name>
  512.                     <MethodParameterList>
  513.                         <MethodParameterItem DataType="Text" Direction="In">
  514.                             <Name>Label</Name>
  515.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  516.                         </MethodParameterItem>
  517.                         <MethodParameterItem DataType="Text" Direction="In">
  518.                             <Name>Value</Name>
  519.                             <Comments>Value displayed.  HTML accepted.</Comments>
  520.                         </MethodParameterItem>
  521.                     </MethodParameterList>
  522.                     <Implementation>
  523.                         <ActionRef Ref="FormBuilder.addReadOnly.Append_ReadOnly" />
  524.                     </Implementation>
  525.                 </MethodDef>
  526.                 <MethodDef>
  527.                     <Name>addTextArea</Name>
  528.                     <MethodParameterList>
  529.                         <MethodParameterItem DataType="Text" Direction="In">
  530.                             <Name>Name</Name>
  531.                             <Comments>Name of a Text Area.</Comments>
  532.                         </MethodParameterItem>
  533.                         <MethodParameterItem DataType="Text" Direction="In">
  534.                             <Name>Label</Name>
  535.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  536.                         </MethodParameterItem>
  537.                         <MethodParameterItem DataType="Text" Direction="In">
  538.                             <Name>DefaultValue</Name>
  539.                             <Comments>Default value displayed in field.</Comments>
  540.                         </MethodParameterItem>
  541.                         <MethodParameterItem DataType="Text" Direction="In">
  542.                             <Name>Rows</Name>
  543.                             <Comments>Height of Text Area, in rows.</Comments>
  544.                         </MethodParameterItem>
  545.                         <MethodParameterItem DataType="Text" Direction="In">
  546.                             <Name>Columns</Name>
  547.                             <Comments>Length of Text Area, in columns.</Comments>
  548.                         </MethodParameterItem>
  549.                         <MethodParameterItem DataType="Text" Direction="In">
  550.                             <Name>BackgroundColor</Name>
  551.                             <Comments>Color of Text Area.</Comments>
  552.                         </MethodParameterItem>
  553.                         <MethodParameterItem DataType="Text" Direction="In">
  554.                             <Name>Required</Name>
  555.                             <Comments>Input should be <![CDATA["TRUE" or "FALSE".
  556.  
  557. If field is required, 
  558.  
  559. client side JavaScript Form verification will ensue.]]></Comments>
  560.                         </MethodParameterItem>
  561.                     </MethodParameterList>
  562.                     <Implementation>
  563.                         <ActionRef Ref="FormBuilder.addTextArea.Append_TextArea" />
  564.                     </Implementation>
  565.                 </MethodDef>
  566.                 <MethodDef>
  567.                     <Name>addHidden</Name>
  568.                     <MethodParameterList>
  569.                         <MethodParameterItem DataType="Text" Direction="In">
  570.                             <Name>Name</Name>
  571.                             <Comments>Name of a Hidden Field.</Comments>
  572.                         </MethodParameterItem>
  573.                         <MethodParameterItem DataType="Text" Direction="In">
  574.                             <Name>Value</Name>
  575.                             <Comments>Value of Hidden Field.</Comments>
  576.                         </MethodParameterItem>
  577.                     </MethodParameterList>
  578.                     <Implementation>
  579.                         <ActionRef Ref="FormBuilder.addHidden.Append_Hidden" />
  580.                     </Implementation>
  581.                 </MethodDef>
  582.                 <MethodDef>
  583.                     <Name>addDynamicRadioButtons</Name>
  584.                     <MethodParameterList>
  585.                         <MethodParameterItem DataType="Text" Direction="In">
  586.                             <Name>Name</Name>
  587.                             <Comments>Name of a set of Radio Buttons.</Comments>
  588.                         </MethodParameterItem>
  589.                         <MethodParameterItem DataType="Text" Direction="In">
  590.                             <Name>Label</Name>
  591.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  592.                         </MethodParameterItem>
  593.                         <MethodParameterItem DataType="Text" Direction="In">
  594.                             <Name>ArrayName</Name>
  595.                             <Comments>Name of local array of size (n x 2) <![CDATA[
  596.  
  597.  
  598.  
  599. This name will be inserted appropriately so that
  600.  
  601. this field will fill dynamically dependant on the array
  602.  
  603. name, and its contents. 
  604.  
  605.  
  606.  
  607.       First Column = Value of Button
  608.  
  609. Second Column = Desc of Button]]></Comments>
  610.                         </MethodParameterItem>
  611.                         <MethodParameterItem DataType="Text" Direction="In">
  612.                             <Name>DefaultValue</Name>
  613.                             <Comments>Value to be checked (if any)</Comments>
  614.                         </MethodParameterItem>
  615.                         <MethodParameterItem DataType="Text" Direction="In">
  616.                             <Name>Required</Name>
  617.                             <Comments>Input should be <![CDATA["TRUE" or "FALSE".
  618.  
  619. If field is required, 
  620.  
  621. client side JavaScript Form verification will ensue.]]></Comments>
  622.                         </MethodParameterItem>
  623.                         <MethodParameterItem DataType="Text" Direction="In">
  624.                             <Name>NumCols</Name>
  625.                             <Comments>Number of Radio Buttons per row.</Comments>
  626.                         </MethodParameterItem>
  627.                     </MethodParameterList>
  628.                     <Implementation>
  629.                         <ActionRef Ref="FormBuilder.addDynamicRadioButtons.Append_DynamicRadioButtons" />
  630.                     </Implementation>
  631.                 </MethodDef>
  632.                 <MethodDef>
  633.                     <Name>addDynamicDropdown</Name>
  634.                     <MethodParameterList>
  635.                         <MethodParameterItem DataType="Text" Direction="In">
  636.                             <Name>Name</Name>
  637.                             <Comments>Name of a Drop Down List.</Comments>
  638.                         </MethodParameterItem>
  639.                         <MethodParameterItem DataType="Text" Direction="In">
  640.                             <Name>Label</Name>
  641.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  642.                         </MethodParameterItem>
  643.                         <MethodParameterItem DataType="Text" Direction="In">
  644.                             <Name>ArrayName</Name>
  645.                             <Comments>Name of local array of size (n x 2) <![CDATA[
  646.  
  647.  
  648.  
  649. This name will be inserted appropriately so that
  650.  
  651. this field will fill dynamically dependant on the array
  652.  
  653. name, and its contents. 
  654.  
  655.  
  656.  
  657.       First Column = Value of List Item
  658.  
  659. Second Column = Desc of List Item]]></Comments>
  660.                         </MethodParameterItem>
  661.                         <MethodParameterItem DataType="Text" Direction="In">
  662.                             <Name>DefaultValue</Name>
  663.                             <Comments>Value to be selected (if any)</Comments>
  664.                         </MethodParameterItem>
  665.                         <MethodParameterItem DataType="Text" Direction="In">
  666.                             <Name>MultipleSize</Name>
  667.                             <Comments>If desiring a multiple select list box, <![CDATA[
  668.  
  669. enter an integer to denote the size.]]></Comments>
  670.                         </MethodParameterItem>
  671.                         <MethodParameterItem DataType="Text" Direction="In">
  672.                             <Name>Required</Name>
  673.                             <Comments>Input should be <![CDATA["TRUE" or "FALSE".
  674.  
  675. If field is required, 
  676.  
  677. client side JavaScript Form verification will ensue.]]></Comments>
  678.                         </MethodParameterItem>
  679.                     </MethodParameterList>
  680.                     <Implementation>
  681.                         <ActionRef Ref="FormBuilder.addDynamicDropdown.Append_DynamicDropdown" />
  682.                     </Implementation>
  683.                 </MethodDef>
  684.                 <MethodDef>
  685.                     <Name>addDynamicCheckboxes</Name>
  686.                     <MethodParameterList>
  687.                         <MethodParameterItem DataType="Text" Direction="In">
  688.                             <Name>Name</Name>
  689.                             <Comments>Name of a set of Check Boxes.</Comments>
  690.                         </MethodParameterItem>
  691.                         <MethodParameterItem DataType="Text" Direction="In">
  692.                             <Name>Label</Name>
  693.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  694.                         </MethodParameterItem>
  695.                         <MethodParameterItem DataType="Text" Direction="In">
  696.                             <Name>ArrayName</Name>
  697.                             <Comments>Name of local array of size (n x 2) <![CDATA[
  698.  
  699.  
  700.  
  701. This name will be inserted appropriately so that
  702.  
  703. this field will fill dynamically dependant on the array
  704.  
  705. name, and its contents. 
  706.  
  707.  
  708.  
  709.       First Column = Value of Check Box
  710.  
  711. Second Column = Desc of Check Box]]></Comments>
  712.                         </MethodParameterItem>
  713.                         <MethodParameterItem DataType="Text" Direction="In">
  714.                             <Name>NumCols</Name>
  715.                             <Comments>Number of Radio Buttons per row.</Comments>
  716.                         </MethodParameterItem>
  717.                     </MethodParameterList>
  718.                     <Implementation>
  719.                         <ActionRef Ref="FormBuilder.addDynamicCheckboxes.Append_DynamicCheckboxes" />
  720.                     </Implementation>
  721.                 </MethodDef>
  722.                 <MethodDef>
  723.                     <Name>addCustomRow</Name>
  724.                     <MethodParameterList>
  725.                         <MethodParameterItem DataType="Text" Direction="In">
  726.                             <Name>MetaHTML</Name>
  727.                             <Comments>Custom row!  Accepts HTML.  Can be any valid HTML.</Comments>
  728.                         </MethodParameterItem>
  729.                     </MethodParameterList>
  730.                     <Implementation>
  731.                         <ActionRef Ref="FormBuilder.addCustomRow.Append_CustomRow" />
  732.                     </Implementation>
  733.                 </MethodDef>
  734.                 <MethodDef>
  735.                     <Name>addIntegerRange</Name>
  736.                     <MethodParameterList>
  737.                         <MethodParameterItem DataType="Text" Direction="In">
  738.                             <Name>LowerName</Name>
  739.                             <Comments>Name of the Lower Integer Field.</Comments>
  740.                         </MethodParameterItem>
  741.                         <MethodParameterItem DataType="Text" Direction="In">
  742.                             <Name>UpperName</Name>
  743.                             <Comments>Name of the Upper Integer Field.</Comments>
  744.                         </MethodParameterItem>
  745.                         <MethodParameterItem DataType="Text" Direction="In">
  746.                             <Name>Label</Name>
  747.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  748.                         </MethodParameterItem>
  749.                         <MethodParameterItem DataType="Text" Direction="In">
  750.                             <Name>LowerDefaultValue</Name>
  751.                             <Comments>Default value displayed in lower field.</Comments>
  752.                         </MethodParameterItem>
  753.                         <MethodParameterItem DataType="Text" Direction="In">
  754.                             <Name>UpperDefaultValue</Name>
  755.                             <Comments>Default value displayed in upper field.</Comments>
  756.                         </MethodParameterItem>
  757.                         <MethodParameterItem DataType="Text" Direction="In">
  758.                             <Name>MinValue</Name>
  759.                             <Comments>Min Value that will be accepted in this field.<![CDATA[
  760.  
  761. Java Script will be enabled to handle this.]]></Comments>
  762.                         </MethodParameterItem>
  763.                         <MethodParameterItem DataType="Text" Direction="In">
  764.                             <Name>MaxValue</Name>
  765.                             <Comments>Max Value that will be accepted in this field.<![CDATA[
  766.  
  767. Java Script will be enabled to handle this.]]></Comments>
  768.                         </MethodParameterItem>
  769.                         <MethodParameterItem DataType="Text" Direction="In">
  770.                             <Name>Required</Name>
  771.                             <Comments>Input should be <![CDATA["TRUE" or "FALSE".
  772.  
  773. If field is required, 
  774.  
  775. client side JavaScript Form verification will ensue.]]></Comments>
  776.                         </MethodParameterItem>
  777.                     </MethodParameterList>
  778.                     <Implementation>
  779.                         <ActionRef Ref="FormBuilder.addIntegerRange.Append_IntegerRangeFields" />
  780.                     </Implementation>
  781.                 </MethodDef>
  782.                 <MethodDef>
  783.                     <Name>addFloatRange</Name>
  784.                     <MethodParameterList>
  785.                         <MethodParameterItem DataType="Text" Direction="In">
  786.                             <Name>LowerName</Name>
  787.                             <Comments>Name of the Lower Float Field.</Comments>
  788.                         </MethodParameterItem>
  789.                         <MethodParameterItem DataType="Text" Direction="In">
  790.                             <Name>UpperName</Name>
  791.                             <Comments>Name of the Lower Float Field.</Comments>
  792.                         </MethodParameterItem>
  793.                         <MethodParameterItem DataType="Text" Direction="In">
  794.                             <Name>Label</Name>
  795.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  796.                         </MethodParameterItem>
  797.                         <MethodParameterItem DataType="Text" Direction="In">
  798.                             <Name>LowerDefaultValue</Name>
  799.                             <Comments>Default value displayed in lower field.</Comments>
  800.                         </MethodParameterItem>
  801.                         <MethodParameterItem DataType="Text" Direction="In">
  802.                             <Name>UpperDefaultValue</Name>
  803.                             <Comments>Default value displayed in upper field.</Comments>
  804.                         </MethodParameterItem>
  805.                         <MethodParameterItem DataType="Text" Direction="In">
  806.                             <Name>MinValue</Name>
  807.                             <Comments>Min Value that will be accepted in this field.<![CDATA[
  808.  
  809. Java Script will be enabled to handle this.]]></Comments>
  810.                         </MethodParameterItem>
  811.                         <MethodParameterItem DataType="Text" Direction="In">
  812.                             <Name>MaxValue</Name>
  813.                             <Comments>Max Value that will be accepted in this field.<![CDATA[
  814.  
  815. Java Script will be enabled to handle this.]]></Comments>
  816.                         </MethodParameterItem>
  817.                         <MethodParameterItem DataType="Text" Direction="In">
  818.                             <Name>Required</Name>
  819.                             <Comments>Input should be <![CDATA["TRUE" or "FALSE".
  820.  
  821. If field is required, 
  822.  
  823. client side JavaScript Form verification will ensue.]]></Comments>
  824.                         </MethodParameterItem>
  825.                     </MethodParameterList>
  826.                     <Implementation>
  827.                         <ActionRef Ref="FormBuilder.addFloatRange.Append_FloatRangeFields" />
  828.                     </Implementation>
  829.                 </MethodDef>
  830.                 <MethodDef>
  831.                     <Name>addDynamicFileField</Name>
  832.                     <MethodParameterList>
  833.                         <MethodParameterItem DataType="Text" Direction="In">
  834.                             <Name>Name</Name>
  835.                             <Comments>Name of a File Field.</Comments>
  836.                         </MethodParameterItem>
  837.                         <MethodParameterItem DataType="Text" Direction="In">
  838.                             <Name>Label</Name>
  839.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  840.                         </MethodParameterItem>
  841.                         <MethodParameterItem DataType="Text" Direction="In">
  842.                             <Name>DefaultValue</Name>
  843.                             <Comments>Default value displayed in field.</Comments>
  844.                         </MethodParameterItem>
  845.                         <MethodParameterItem DataType="Text" Direction="In">
  846.                             <Name>MaxLength</Name>
  847.                             <Comments>Length of the input, in characters, that will be accepted by the form.</Comments>
  848.                         </MethodParameterItem>
  849.                         <MethodParameterItem DataType="Text" Direction="In">
  850.                             <Name>DisplayLength</Name>
  851.                             <Comments>Length of the field, in characters, displayed on the form.</Comments>
  852.                         </MethodParameterItem>
  853.                         <MethodParameterItem DataType="Text" Direction="In">
  854.                             <Name>Required</Name>
  855.                             <Comments>Input should be <![CDATA["TRUE" or "FALSE".
  856.  
  857. If field is required, 
  858.  
  859. client side JavaScript Form verification will ensue.]]></Comments>
  860.                         </MethodParameterItem>
  861.                     </MethodParameterList>
  862.                     <Implementation>
  863.                         <ActionRef Ref="FormBuilder.addDynamicFileField.Append_DynamicFileField" />
  864.                     </Implementation>
  865.                 </MethodDef>
  866.                 <MethodDef>
  867.                     <Name>addDynamicCheckbox</Name>
  868.                     <MethodParameterList>
  869.                         <MethodParameterItem DataType="Text" Direction="In">
  870.                             <Name>Name</Name>
  871.                             <Comments>Name of a Check Box.</Comments>
  872.                         </MethodParameterItem>
  873.                         <MethodParameterItem DataType="Text" Direction="In">
  874.                             <Name>Label</Name>
  875.                             <Comments>Label Describing Purpose of Field.  HTML accepted.</Comments>
  876.                         </MethodParameterItem>
  877.                         <MethodParameterItem DataType="Text" Direction="In">
  878.                             <Name>Value</Name>
  879.                             <Comments>Value associated with the Check Box.</Comments>
  880.                         </MethodParameterItem>
  881.                         <MethodParameterItem DataType="Text" Direction="In">
  882.                             <Name>DefaultValue</Name>
  883.                             <Comments>Value to be checked (if any)</Comments>
  884.                         </MethodParameterItem>
  885.                     </MethodParameterList>
  886.                     <Implementation>
  887.                         <ActionRef Ref="FormBuilder.addDynamicCheckbox.Append_DynamicCheckbox" />
  888.                     </Implementation>
  889.                 </MethodDef>
  890.             </Methods>
  891.  
  892.             <!--Instance variables for this class-->
  893.             <Variables />
  894.         </ClassDef>
  895.     </Classes>
  896.  
  897.     <!--Program actions-->
  898.     <Actions>
  899.         <ResultAction ID="FormBuilder.On_Create.Comments" Sig="null">
  900.             <ResultsOutput Ref="FormBuilder.On_Create.Comments.Results" />
  901.         </ResultAction>
  902.         <ResultAction ID="FormBuilder.addRadioButtons.Append_RadioButtons" Sig="null">
  903.             <ResultsOutput Ref="FormBuilder.addRadioButtons.Append_RadioButtons.Results" />
  904.         </ResultAction>
  905.         <ResultAction ID="FormBuilder.addTextField.Append_TextField" Sig="null">
  906.             <ResultsOutput Ref="FormBuilder.addTextField.Append_TextField.Results" />
  907.         </ResultAction>
  908.         <ResultAction ID="FormBuilder.addCheckbox.Append_Checkbox" Sig="null">
  909.             <ResultsOutput Ref="FormBuilder.addCheckbox.Append_Checkbox.Results" />
  910.         </ResultAction>
  911.         <IfAction ID="FormBuilder.outputForm.If_Required_Elements_Found" Sig="if  " Expanded="True">
  912.             <Expression>(<![CDATA['@@instance$RequiredFlag'='TRUE')]]></Expression>
  913.             <ExpressionInfo>
  914.                 <ExpLeft>@@instance$RequiredFlag</ExpLeft>
  915.                 <ExpRight>TRUE</ExpRight>
  916.                 <Operator>iseq</Operator>
  917.             </ExpressionInfo>
  918.         </IfAction>
  919.         <ResultAction ID="FormBuilder.outputForm.Output_Javascript_Into_Form" Sig="null">
  920.             <ResultsOutput Ref="FormBuilder.outputForm.Output_Javascript_Into_Form.Results" />
  921.         </ResultAction>
  922.         <ResultAction ID="FormBuilder.outputForm.Output_form" Sig="null">
  923.             <ResultsOutput Ref="FormBuilder.outputForm.Output_form.Results" />
  924.         </ResultAction>
  925.         <ResultAction ID="FormBuilder.openForm.Initialize_Form" Sig="null">
  926.             <ResultsOutput Ref="FormBuilder.openForm.Initialize_Form.Results" />
  927.         </ResultAction>
  928.         <ResultAction ID="FormBuilder.addFileField.Append_FileField" Sig="null">
  929.             <ResultsOutput Ref="FormBuilder.addFileField.Append_FileField.Results" />
  930.         </ResultAction>
  931.         <ResultAction ID="FormBuilder.addCheckboxes.Append_Checkboxes" Sig="null">
  932.             <ResultsOutput Ref="FormBuilder.addCheckboxes.Append_Checkboxes.Results" />
  933.         </ResultAction>
  934.         <ResultAction ID="FormBuilder.addDropdown.Append_Dropdown" Sig="null">
  935.             <ResultsOutput Ref="FormBuilder.addDropdown.Append_Dropdown.Results" />
  936.         </ResultAction>
  937.         <ResultAction ID="FormBuilder.addDateField.Append_DateField" Sig="null">
  938.             <ResultsOutput Ref="FormBuilder.addDateField.Append_DateField.Results" />
  939.         </ResultAction>
  940.         <ResultAction ID="FormBuilder.addDateRange.Append_DateRangeFields" Sig="null">
  941.             <ResultsOutput Ref="FormBuilder.addDateRange.Append_DateRangeFields.Results" />
  942.         </ResultAction>
  943.         <ResultAction ID="FormBuilder.addPassword.Append_PasswordField" Sig="null">
  944.             <ResultsOutput Ref="FormBuilder.addPassword.Append_PasswordField.Results" />
  945.         </ResultAction>
  946.         <ResultAction ID="FormBuilder.addIntegerField.Append_IntegerField" Sig="null">
  947.             <ResultsOutput Ref="FormBuilder.addIntegerField.Append_IntegerField.Results" />
  948.         </ResultAction>
  949.         <ResultAction ID="FormBuilder.addFloatField.Append_FloatField" Sig="null">
  950.             <ResultsOutput Ref="FormBuilder.addFloatField.Append_FloatField.Results" />
  951.         </ResultAction>
  952.         <ResultAction ID="FormBuilder.addDivider.Append_Divider" Sig="null">
  953.             <ResultsOutput Ref="FormBuilder.addDivider.Append_Divider.Results" />
  954.         </ResultAction>
  955.         <ResultAction ID="FormBuilder.addBlankLine.Append_Blank" Sig="null">
  956.             <ResultsOutput Ref="FormBuilder.addBlankLine.Append_Blank.Results" />
  957.         </ResultAction>
  958.         <ResultAction ID="FormBuilder.addReadOnly.Append_ReadOnly" Sig="null">
  959.             <ResultsOutput Ref="FormBuilder.addReadOnly.Append_ReadOnly.Results" />
  960.         </ResultAction>
  961.         <ResultAction ID="FormBuilder.addTextArea.Append_TextArea" Sig="null">
  962.             <ResultsOutput Ref="FormBuilder.addTextArea.Append_TextArea.Results" />
  963.         </ResultAction>
  964.         <ResultAction ID="FormBuilder.addHidden.Append_Hidden" Sig="null">
  965.             <ResultsOutput Ref="FormBuilder.addHidden.Append_Hidden.Results" />
  966.         </ResultAction>
  967.         <ResultAction ID="FormBuilder.addDynamicRadioButtons.Append_DynamicRadioButtons" Sig="null">
  968.             <ResultsOutput Ref="FormBuilder.addDynamicRadioButtons.Append_DynamicRadioButtons.Results" />
  969.         </ResultAction>
  970.         <ResultAction ID="FormBuilder.addDynamicDropdown.Append_DynamicDropdown" Sig="null">
  971.             <ResultsOutput Ref="FormBuilder.addDynamicDropdown.Append_DynamicDropdown.Results" />
  972.         </ResultAction>
  973.         <ResultAction ID="FormBuilder.addDynamicCheckboxes.Append_DynamicCheckboxes" Sig="null">
  974.             <ResultsOutput Ref="FormBuilder.addDynamicCheckboxes.Append_DynamicCheckboxes.Results" />
  975.         </ResultAction>
  976.         <ResultAction ID="FormBuilder.addCustomRow.Append_CustomRow" Sig="null">
  977.             <ResultsOutput Ref="FormBuilder.addCustomRow.Append_CustomRow.Results" />
  978.         </ResultAction>
  979.         <ResultAction ID="FormBuilder.addIntegerRange.Append_IntegerRangeFields" Sig="null">
  980.             <ResultsOutput Ref="FormBuilder.addIntegerRange.Append_IntegerRangeFields.Results" />
  981.         </ResultAction>
  982.         <ResultAction ID="FormBuilder.addFloatRange.Append_FloatRangeFields" Sig="null">
  983.             <ResultsOutput Ref="FormBuilder.addFloatRange.Append_FloatRangeFields.Results" />
  984.         </ResultAction>
  985.         <ResultAction ID="FormBuilder.addDynamicFileField.Append_DynamicFileField" Sig="null">
  986.             <ResultsOutput Ref="FormBuilder.addDynamicFileField.Append_DynamicFileField.Results" />
  987.         </ResultAction>
  988.         <ResultAction ID="FormBuilder.addDynamicCheckbox.Append_DynamicCheckbox" Sig="null">
  989.             <ResultsOutput Ref="FormBuilder.addDynamicCheckbox.Append_DynamicCheckbox.Results" />
  990.         </ResultAction>
  991.     </Actions>
  992.  
  993.     <!--Data sources-->
  994.     <DataSources />
  995.  
  996.     <!--Output blocks-->
  997.     <Outputs>
  998.         <Output ID="FormBuilder.On_Create.Comments.Results" Type="HTML"><![CDATA[
  999. <@COMMENT>
  1000.  
  1001.     This Tango Class File generates complex HTML forms complete with JavaScript 
  1002.     form verification and a Tango popup calendar for selecting dates.
  1003.     
  1004.     Matt Matoushek, Matt.Matoushek@pervasive.com
  1005.     Kevin Hurwitz, Kevin.Hurwitz@pervasive.com
  1006.     Dimple Patel, Dimple.Patel@pervasive.com
  1007.     
  1008.     Developer Solutions, Pervasive Software
  1009.  
  1010. </@COMMENT>]]></Output>
  1011.         <Output ID="FormBuilder.addRadioButtons.Append_RadioButtons.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  1012. <@IF "LEN(@@method$NumCols)">
  1013. <TR>
  1014.     <TD VALIGN=TOP><@VAR method$Label ENCODING=NONE><@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE"><FONT COLOR=<@VAR instance$RequiredColor ENCODING=NONE>>*</FONT>  </@IF></TD>
  1015.     <TD>
  1016.         <TABLE>
  1017.             <TR>
  1018.                 <@ROWS ARRAY="method$Options">
  1019.                     <TD><INPUT TYPE=RADIO<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF> VALUE="<@COL 1>"<@IFEQUAL "<@VAR method$DefaultValue ENCODING=NONE>" "<@COL 1>"> CHECKED</@IF>><@COL 2></INPUT>  </TD>
  1020.                         <@IFEQUAL "<@CALC '<@CURROW>%@@method$NumCols'>" "0">
  1021.             </TR>
  1022.             <TR>
  1023.                         </@IF>
  1024.                 </@ROWS>
  1025.             </TR>
  1026.         </TABLE>
  1027.       </TD>
  1028. </TR>
  1029. <@ELSE>
  1030. <TR>
  1031.     <TD VALIGN=TOP><@VAR method$Label ENCODING=NONE><@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE"><FONT COLOR=<@VAR instance$RequiredColor ENCODING=NONE>>*</FONT>  </@IF></TD>
  1032.     <TD>
  1033.         <@ROWS ARRAY="method$Options">
  1034.             <INPUT TYPE=RADIO<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF> VALUE="<@COL 1>"<@IFEQUAL "<@VAR method$DefaultValue ENCODING=NONE>" "<@COL 1>"> CHECKED</@IF>><@COL 2></INPUT>  
  1035.         </@ROWS>
  1036.       </TD>
  1037. </TR>
  1038. </@IF>
  1039. '>
  1040.  
  1041. <@COMMENT> If the field is required, augment form verification clause.</@COMMENT>
  1042. <@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE">
  1043.     <@ASSIGN instance$RequiredFlag "TRUE">
  1044.     <@ASSIGN instance$IncludeCheckRadioNotBlank "TRUE">
  1045.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckRadioNotBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>) && ">
  1046. </@IF>
  1047. ]]></Output>
  1048.         <Output ID="FormBuilder.addTextField.Append_TextField.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  1049. <TR>
  1050.     <TD><@VAR method$Label ENCODING=NONE><@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE"><FONT COLOR=<@VAR instance$RequiredColor ENCODING=NONE>>*</FONT>  </@IF></TD>
  1051.     <TD>
  1052.         <INPUT TYPE=TEXT<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$DefaultValue ENCODING=NONE>)"> VALUE="<@VAR method$DefaultValue ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$DisplayLength ENCODING=NONE>)"> SIZE="<@VAR method$DisplayLength ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$MaxLength ENCODING=NONE>)"> MAXLENGTH="<@VAR method$MaxLength ENCODING=NONE>"</@IF>>
  1053.        </TD>
  1054. </TR>
  1055. '>
  1056.  
  1057. <@COMMENT> If the field is required, augment form verification clause.</@COMMENT>
  1058. <@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE">
  1059.     <@ASSIGN instance$RequiredFlag "TRUE">
  1060.     <@ASSIGN instance$IncludeCheckNotBlank "TRUE">
  1061.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckNotBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>) && ">
  1062. </@IF>]]></Output>
  1063.         <Output ID="FormBuilder.addCheckbox.Append_Checkbox.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  1064. <TR>
  1065.     <TD><@VAR method$Label ENCODING=NONE></TD>
  1066.     <TD>
  1067.         <INPUT TYPE=CHECKBOX<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$Value ENCODING=NONE>)"> VALUE="<@VAR method$Value ENCODING=NONE>"</@IF><@IFEQUAL "<@VAR method$Checked ENCODING=NONE>" "TRUE"> CHECKED</@IF>>
  1068.     </TD>
  1069. </TR>
  1070. '>]]></Output>
  1071.         <Output ID="FormBuilder.outputForm.Output_Javascript_Into_Form.Results" Type="HTML"><![CDATA[<SCRIPT>
  1072. <!--Begin JavaScript
  1073.  
  1074. //  Portions Copyright (c)1996-1999 Pervasive Software
  1075. //       Home Page: http://www.Pervasive.com/
  1076. //  Edited : Matt Matoushek, Developer Solutions, Pervasive
  1077.  
  1078. // -- End JavaScript -->
  1079.  
  1080. </SCRIPT>
  1081. <@IF '("<@VAR instance$IncludeCheckInteger>"="TRUE")                     OR ("<@VAR instance$IncludeCheckIntegerOrBlank>"="TRUE")
  1082.   OR ("<@VAR instance$IncludeCheckIntegerGreater>"="TRUE")             OR ("<@VAR instance$IncludeCheckIntegerLess>"="TRUE")
  1083.   OR ("<@VAR instance$IncludeCheckIntegerGreaterOrBlank>"="TRUE")     OR ("<@VAR instance$IncludeCheckIntegerLessOrBlank>"="TRUE")
  1084.   OR ("<@VAR instance$IncludeCheckFloat>"="TRUE")                         OR ("<@VAR instance$IncludeCheckFloatOrBlank>"="TRUE")
  1085.   OR ("<@VAR instance$IncludeCheckFloatGreater>"="TRUE")                 OR ("<@VAR instance$IncludeCheckFloatLess>"="TRUE")
  1086.   OR ("<@VAR instance$IncludeCheckFloatGreaterOrBlank>"="TRUE")        OR ("<@VAR instance$IncludeCheckFloatLessOrBlank>"="TRUE")
  1087.   OR ("<@VAR instance$IncludeCheckDate>"="TRUE")                         OR ("<@VAR instance$IncludeCheckDateOrBlank>"="TRUE")'>
  1088. <SCRIPT>
  1089. <!--Begin JavaScript
  1090.  
  1091. function StringOfDigits( theString )
  1092.  
  1093. //  To use, set the onChange or onBlur attribute of a form field
  1094. //  element to "StringOfDigits(this)"
  1095.  
  1096. {
  1097.     var    validDigits    =    "0123456789";
  1098.     var    i            =    0;
  1099.  
  1100.     if ( theString.length == 0 )
  1101.         return false;    // blank entry is not a string of digits
  1102.     
  1103.     for( i = 0; i < theString.length; i++ )    {
  1104.         var    thisChar    =    theString.charAt(i);
  1105.         if ( validDigits.indexOf( thisChar ) == -1 )    {
  1106.             return false;
  1107.         } // end if
  1108.     } // end for
  1109.  
  1110.     return true;
  1111. } // StringOfDigits()
  1112.  
  1113. // -- End JavaScript -->
  1114. </SCRIPT>
  1115. </@IF>
  1116. <@IF '("<@VAR instance$IncludeCheckNotBlank>"="TRUE")                 OR ("<@VAR instance$IncludeCheckIntegerOrBlank>"="TRUE")
  1117.   OR ("<@VAR instance$IncludeCheckIntegerGreaterOrBlank>"="TRUE")    OR ("<@VAR instance$IncludeCheckIntegerLessOrBlank>"="TRUE")
  1118.   OR ("<@VAR instance$IncludeCheckSelectNotBlank>"="TRUE")         OR ("<@VAR instance$IncludeCheckFloatOrBlank>"="TRUE")
  1119.   OR ("<@VAR instance$IncludeCheckFloatGreaterOrBlank>"="TRUE")    OR ("<@VAR instance$IncludeCheckFloatLessOrBlank>"="TRUE")
  1120.   OR ("<@VAR instance$IncludeCheckDateOrBlank>"="TRUE")'>
  1121. <SCRIPT>
  1122. <!--Begin JavaScript
  1123.  
  1124. function ValidateBlank( theElement )    {
  1125.  
  1126.     if ( theElement.value == "" )
  1127.         return true;
  1128.     else
  1129.         return false;
  1130. } // ValidateBlank()
  1131.  
  1132.  
  1133. // -- End JavaScript -->
  1134. </SCRIPT>
  1135. </@IF>
  1136. <@IF '("<@VAR instance$IncludeCheckInteger>"="TRUE")                OR ("<@VAR instance$IncludeCheckIntegerOrBlank>"="TRUE") 
  1137.   OR ("<@VAR instance$IncludeCheckIntegerGreater>"="TRUE")              OR ("<@VAR instance$IncludeCheckIntegerLess>"="TRUE")
  1138.   OR ("<@VAR instance$IncludeCheckIntegerGreaterOrBlank>"="TRUE")     OR ("<@VAR instance$IncludeCheckIntegerLessOrBlank>"="TRUE")'>
  1139. <SCRIPT>
  1140. <!--Begin JavaScript
  1141.  
  1142. function ValidateInteger( theElement )    {
  1143.  
  1144.     if ( theElement.value.length == 0 )
  1145.         return false;    // blank entry is not a valid integer
  1146.     
  1147.     if ( theElement.value.charAt(0) == '-' )    {
  1148.         return StringOfDigits( theElement.value.substring( 1, theElement.value.length - 1 ) );
  1149.     } else    {
  1150.         return StringOfDigits( theElement.value );
  1151.     } // end if
  1152. } // ValidateInteger()
  1153.  
  1154. // -- End JavaScript -->
  1155. </SCRIPT>
  1156. </@IF>
  1157. <@IF '("<@VAR instance$IncludeCheckIntegerGreater>"="TRUE") OR ("<@VAR instance$IncludeCheckIntegerGreaterOrBlank>"="TRUE")'>
  1158. <SCRIPT>
  1159. <!--Begin JavaScript
  1160.  
  1161.  
  1162. function ValidateIntegerGreater( theElement, lowerBound )    {
  1163.  
  1164.     if ( ValidateInteger( theElement ) )    {
  1165.         if ( parseInt( theElement.value, 10 ) > lowerBound )    {
  1166.             return true;
  1167.         } else    {
  1168.             return false;
  1169.         } // end if
  1170.     } else    {
  1171.         return false;
  1172.     } // end if
  1173. } // ValidateIntegerGreater()
  1174.  
  1175. // -- End JavaScript -->
  1176. </SCRIPT>
  1177. </@IF>
  1178. <@IF '("<@VAR instance$IncludeCheckIntegerLess>"="TRUE") OR ("<@VAR instance$IncludeCheckIntegerLessOrBlank>"="TRUE")'>
  1179. <SCRIPT>
  1180. <!--Begin JavaScript
  1181.  
  1182.  
  1183. function ValidateIntegerLess( theElement, upperBound )    {
  1184.  
  1185.     if ( ValidateInteger( theElement ) )    {
  1186.         if ( parseInt( theElement.value, 10 ) < upperBound )    {
  1187.             return true;
  1188.         } else    {
  1189.             return false;
  1190.         } // end if
  1191.     } else    {
  1192.         return false;
  1193.     } // end if
  1194. } // ValidateIntegerLess()
  1195.  
  1196. // -- End JavaScript -->
  1197. </SCRIPT>
  1198. </@IF>
  1199. <@IF '("<@VAR instance$IncludeCheckFloat>"="TRUE")                       OR ("<@VAR instance$IncludeCheckFloatOrBlank>"="TRUE")
  1200.   OR ("<@VAR instance$IncludeCheckFloatGreater>"="TRUE")             OR ("<@VAR instance$IncludeCheckFloatLess>"="TRUE")
  1201.   OR ("<@VAR instance$IncludeCheckFloatGreaterOrBlank>"="TRUE") OR ("<@VAR instance$IncludeCheckFloatLessOrBlank>"="TRUE")'>
  1202. <SCRIPT>
  1203. <!--Begin JavaScript
  1204.  
  1205.  
  1206. function ValidateFloat( theElement )    {
  1207.  
  1208.     var    i            =    0;
  1209.     var    j            =    0;
  1210.     var    k            =    0;
  1211.     var    l            =    0;
  1212.     var    thePart    =    "";
  1213.     
  1214.     if ( theElement.value.length == 0 )
  1215.         return false;    // blank entry is not a number
  1216.     
  1217.     if ( theElement.value.charAt(i) == '-' )    {
  1218.         i = 1;
  1219.     } // end if
  1220.  
  1221.     if ( (j = theElement.value.indexOf(".")) == -1 )    {
  1222.         j = theElement.value.length;
  1223.     } // end if 
  1224.     
  1225.     thePart = theElement.value.toUpperCase();
  1226.     if ( (k = thePart.indexOf("E")) == -1 )    {
  1227.         k = theElement.value.length;
  1228.     } // end if
  1229.     
  1230.     l = ( j < k ) ? j : k;
  1231.     
  1232.     if ( l > i )    {
  1233.         thePart = theElement.value.substring( i, l );
  1234.         
  1235.         if ( !StringOfDigits( thePart ) )    return false;
  1236.     } // end if
  1237.     
  1238.     if ( j < theElement.value.length )    {
  1239.         thePart = theElement.value.substring( j+1, k );
  1240.  
  1241.         if ( !StringOfDigits( thePart ) )    return false;
  1242.     } // end if
  1243.     
  1244.     if ( k < theElement.value.length )    {
  1245.         thePart = theElement.value.substring( k+1, k+2 );
  1246.         
  1247.         if ( (thePart == "+") || (thePart == "-") )    {
  1248.             k++;
  1249.         } // end if
  1250.     
  1251.         thePart = theElement.value.substring( k+1, theElement.value.length );
  1252.  
  1253.         if ( !StringOfDigits( thePart ) )    return false;
  1254.     } // end if
  1255.     
  1256.     return true;
  1257. } // ValidateFloat()
  1258.  
  1259. // -- End JavaScript -->
  1260. </SCRIPT>
  1261. </@IF>
  1262. <@IF '("<@VAR instance$IncludeCheckFloatGreater>"="TRUE") OR ("<@VAR instance$IncludeCheckFloatGreaterOrBlank>"="TRUE")'>
  1263. <SCRIPT>
  1264. <!--Begin JavaScript
  1265.  
  1266.  
  1267. function ValidateFloatGreater( theElement, lowerBound )    {
  1268.  
  1269.     if ( ValidateFloat( theElement ) )    {
  1270.         if ( parseFloat( theElement.value ) > lowerBound )    {
  1271.             return true;
  1272.         } else    {
  1273.             return false;
  1274.         } // end if
  1275.     } else    {
  1276.         return false;
  1277.     } // end if
  1278. } // ValidateFloatGreater()
  1279.  
  1280. // -- End JavaScript -->
  1281. </SCRIPT>
  1282. </@IF>
  1283. <@IF '("<@VAR instance$IncludeCheckFloatLess>"="TRUE") OR ("<@VAR instance$IncludeCheckFloatLessOrBlank>"="TRUE")'>
  1284. <SCRIPT>
  1285. <!--Begin JavaScript
  1286.  
  1287.  
  1288. function ValidateFloatLess( theElement, upperBound )    {
  1289.  
  1290.     if ( ValidateFloat( theElement ) )    {
  1291.         if ( parseFloat( theElement.value ) < upperBound )    {
  1292.             return true;
  1293.         } else    {
  1294.             return false;
  1295.         } // end if
  1296.     } else    {
  1297.         return false;
  1298.     } // end if
  1299. } // ValidateFloatLess()
  1300.  
  1301. // -- End JavaScript -->
  1302. </SCRIPT>
  1303. </@IF>
  1304. <@IF '("<@VAR instance$IncludeCheckDate>"="TRUE") OR ("<@VAR instance$IncludeCheckDateOrBlank>"="TRUE")'>
  1305. <SCRIPT>
  1306. <!--Begin JavaScript
  1307.  
  1308.  
  1309. function MakeMonthNames( )    {
  1310.  
  1311.     this.length = 12;
  1312.     this[1] = "January";
  1313.     this[2] = "February";
  1314.     this[3] = "March";
  1315.     this[4] = "April";
  1316.     this[5] = "May";
  1317.     this[6] = "June";
  1318.     this[7] = "July";
  1319.     this[8] = "August";
  1320.     this[9] = "September";
  1321.     this[10] = "October";
  1322.     this[11] = "November";
  1323.     this[12] = "December";
  1324.     
  1325.     return this;
  1326.  
  1327. } // MakeMonthNames()
  1328.  
  1329.  
  1330. function ValidateDate( theElement, dateFormat )    {
  1331.  
  1332.     var    month    =    0;
  1333.     var    day        =    0;
  1334.     var    year    =    0;
  1335.     var    offset    =    0;
  1336.     var    thePart    =    "";
  1337.     var    testStr    =    "";
  1338.     var    monthNames;
  1339.     
  1340.     if ( theElement.value.length == 0 )
  1341.         return false;    // blank entry is not a date
  1342.         
  1343.     if ( dateFormat == "" )    {
  1344.         dateFormat = "MM/DD/YYYY";    // default date format
  1345.     } // end if
  1346.     
  1347.     monthNames = new MakeMonthNames();
  1348.         
  1349.     thePart = theElement.value;
  1350.     offset = thePart.indexOf("/");
  1351.     if ( offset < 1 )
  1352.         return false;
  1353.         
  1354.     testStr = thePart.substring(0,offset);
  1355.     if ( !StringOfDigits( testStr ) )
  1356.         return false;
  1357.         
  1358.     month = parseInt( testStr, 10 );
  1359.     if ( (month < 1) || (month > 12 ) )
  1360.         return false;
  1361.  
  1362.     thePart = thePart.substring( offset+1, thePart.length );
  1363.     offset = thePart.indexOf("/");
  1364.     if ( offset < 1 )
  1365.         return false;
  1366.         
  1367.     testStr = thePart.substring(0,offset);
  1368.     if ( !StringOfDigits( testStr ) )
  1369.         return false;
  1370.         
  1371.     day = parseInt( testStr, 10 );
  1372.     if ( (day < 1) || (day > 31 ) )
  1373.         return false;
  1374.     
  1375.     testStr = thePart.substring( offset+1, thePart.length );
  1376.     if ( !StringOfDigits( testStr ) )
  1377.         return false;
  1378.         
  1379.     year = parseInt( testStr, 10 );
  1380.  
  1381.     if ( month == 2 )    {
  1382.         if ( (4 * Math.floor( year / 4 )) == year )    {
  1383.             if ( day > 29 )
  1384.                 return false;
  1385.         } else    {
  1386.             if ( day > 28 )
  1387.                 return false;
  1388.         } // end if
  1389.     } else if ( (month == 4) || (month == 6) || (month == 9) || (month == 11) )    {
  1390.         if ( day > 30 )
  1391.             return false;
  1392.     } // end if
  1393.     
  1394.     return true;
  1395. } // ValidateDate()
  1396.  
  1397. // -- End JavaScript -->
  1398. </SCRIPT>
  1399. </@IF>
  1400. <@IF '("<@VAR instance$IncludeCheckNotBlank>"="TRUE")' >
  1401. <SCRIPT>
  1402. <!--Begin JavaScript
  1403.  
  1404.  
  1405. function CheckNotBlank( theElement )    {
  1406.  
  1407.     if ( ValidateBlank( theElement ) )    {
  1408.         alert( "Field '" + theElement.name + "' is blank." );
  1409.         
  1410.         theElement.focus();
  1411.         theElement.select();
  1412.         
  1413.         return false;
  1414.     } else    {
  1415.         return true;
  1416.     } // end if
  1417. } // CheckNotBlank()
  1418.  
  1419. // -- End JavaScript -->
  1420. </SCRIPT>
  1421. </@IF>
  1422. <@IF '("<@VAR instance$IncludeCheckInteger>"="TRUE")' >
  1423.  
  1424. <SCRIPT>
  1425. <!--Begin JavaScript
  1426.  
  1427.  
  1428. function CheckInteger( theElement )    {
  1429.  
  1430.     if ( !ValidateInteger( theElement ) )    {
  1431.         alert( "Field '" + theElement.name + "' is not a valid integer." );
  1432.         
  1433.         theElement.focus();
  1434.         theElement.select();
  1435.         
  1436.         return false;
  1437.     } else    {
  1438.         return true;
  1439.     } // end if
  1440. } // CheckInteger()
  1441.  
  1442. // -- End JavaScript -->
  1443. </SCRIPT>
  1444. </@IF>
  1445. <@IF '("<@VAR instance$IncludeCheckIntegerOrBlank>"="TRUE")' >
  1446.  
  1447. <SCRIPT>
  1448. <!--Begin JavaScript
  1449.  
  1450.  
  1451. function CheckIntegerOrBlank( theElement )    {
  1452.  
  1453.     if ( !ValidateBlank( theElement) && !ValidateInteger( theElement ) )    {
  1454.         alert( "Field '" + theElement.name + "' is neither a valid integer nor a blank entry." );
  1455.         
  1456.         theElement.focus();
  1457.         theElement.select();
  1458.         
  1459.         return false;
  1460.     } else    {
  1461.         return true;
  1462.     } // end if
  1463. } // CheckIntegerOrBlank()
  1464.  
  1465. // -- End JavaScript -->
  1466. </SCRIPT>
  1467. </@IF>
  1468. <@IF '("<@VAR instance$IncludeCheckIntegerGreater>"="TRUE")' >
  1469. <SCRIPT>
  1470. <!--Begin JavaScript
  1471.  
  1472.  
  1473. function CheckIntegerGreater( theElement, lowerBound )    {
  1474.  
  1475.     if ( !ValidateIntegerGreater( theElement, lowerBound ) )    {
  1476.         alert( "Field '" + theElement.name + "' is not an integer greater than " + lowerBound + "." );
  1477.         
  1478.         theElement.focus();
  1479.         theElement.select();
  1480.         
  1481.         return false;
  1482.     } else    {
  1483.         return true;
  1484.     } // end if
  1485. } // CheckIntegerGreater()
  1486.  
  1487. // -- End JavaScript -->
  1488. </SCRIPT>
  1489. </@IF>
  1490. <@IF '("<@VAR instance$IncludeCheckIntegerLess>"="TRUE")' >
  1491. <SCRIPT>
  1492. <!--Begin JavaScript
  1493.  
  1494.  
  1495. function CheckIntegerLess( theElement, upperBound )    {
  1496.  
  1497.     if ( !ValidateIntegerLess( theElement, upperBound ) )    {
  1498.         alert( "Field '" + theElement.name + "' is not an integer less than " + upperBound + "." );
  1499.         
  1500.         theElement.focus();
  1501.         theElement.select();
  1502.         
  1503.         return false;
  1504.     } else    {
  1505.         return true;
  1506.     } // end if
  1507. } // CheckIntegerLess()
  1508.  
  1509. // -- End JavaScript -->
  1510. </SCRIPT>
  1511. </@IF>
  1512. <@IF '("<@VAR instance$IncludeCheckIntegerGreaterOrBlank>"="TRUE")' >
  1513.  
  1514. <SCRIPT>
  1515. <!--Begin JavaScript
  1516.  
  1517.  
  1518. function CheckIntegerGreaterOrBlank( theElement, lowerBound )    {
  1519.  
  1520.     if ( !ValidateBlank( theElement) && !ValidateIntegerGreater( theElement, lowerBound ) )    {
  1521.         alert( "Field '" + theElement.name + "' is not an integer greater than " + lowerBound + " nor a blank entry." );
  1522.         
  1523.         theElement.focus();
  1524.         theElement.select();
  1525.         
  1526.         return false;
  1527.     } else    {
  1528.         return true;
  1529.     } // end if
  1530. } // CheckIntegerGreaterOrBlank()
  1531.  
  1532. // -- End JavaScript -->
  1533. </SCRIPT>
  1534. </@IF>
  1535. <@IF '("<@VAR instance$IncludeCheckIntegerLessOrBlank>"="TRUE")' >
  1536. <SCRIPT>
  1537. <!--Begin JavaScript
  1538.  
  1539.  
  1540. function CheckIntegerLessOrBlank( theElement, upperBound )    {
  1541.  
  1542.     if ( !ValidateBlank( theElement) && !ValidateIntegerLess( theElement, upperBound ) )    {
  1543.         alert( "Field '" + theElement.name + "' is not an integer less than " + upperBound + " nor a blank entry." );
  1544.         
  1545.         theElement.focus();
  1546.         theElement.select();
  1547.         
  1548.         return false;
  1549.     } else    {
  1550.         return true;
  1551.     } // end if
  1552. } // CheckIntegerLessOrBlank()
  1553.  
  1554. // -- End JavaScript -->
  1555. </SCRIPT>
  1556. </@IF>
  1557. <@IF '("<@VAR instance$IncludeCheckSelectNotBlank>"="TRUE")' >
  1558. <SCRIPT>
  1559. <!--Begin JavaScript
  1560.  
  1561.  
  1562. function CheckSelectNotBlank ( theElement ) {
  1563.  
  1564. //Purpose : Check to see if Select List Box is Blank
  1565. //Source : Developer Solutions, Prevasive Software
  1566.  
  1567.   if ( ValidateBlank( theElement.options[theElement.selectedIndex] ) ) {
  1568.     alert( "Field '" + theElement.name + "' is blank." );
  1569.     return false;
  1570.   }
  1571.   else {
  1572.    return true;  
  1573.   }
  1574. }
  1575.  
  1576. // -- End JavaScript -->
  1577. </SCRIPT>
  1578. </@IF>
  1579. <@IF '("<@VAR instance$IncludeCheckRadioNotBlank>"="TRUE")' >
  1580. <SCRIPT>
  1581. <!--Begin JavaScript
  1582.  
  1583.  
  1584. function CheckRadioNotBlank( theElement) {
  1585.  
  1586. // Purpose:  Check to see if an option is selected in a radio button group
  1587. // Source:  Developer Solution, Pervasive Software
  1588. // Date:  June 10, 1999
  1589.  
  1590.   // Assume all buttons will be unchecked
  1591.   blnFilled = false; 
  1592.  
  1593.   // If a checked radio is found, set blnFilled to true
  1594.   for (var i = 0; i < theElement.length; i++) if (theElement[i].checked) blnFilled=true;
  1595.  
  1596.   // Return result
  1597.   if (blnFilled) {
  1598.     return true; 
  1599.   }
  1600.   else {
  1601.     alert( "Field '" + theElement[0].name + "' is blank." );
  1602.     return false;
  1603.   }
  1604. }
  1605.  
  1606. // -- End JavaScript -->
  1607. </SCRIPT>
  1608. </@IF>
  1609. <@IF '("<@VAR instance$IncludeCheckFloat>"="TRUE")' >
  1610. <SCRIPT>
  1611. <!--Begin JavaScript
  1612.  
  1613.  
  1614. function CheckFloat( theElement )    {
  1615.  
  1616.     if ( !ValidateFloat( theElement ) )    {
  1617.         alert( "Field '" + theElement.name + "' is not a valid real number." );
  1618.         
  1619.         theElement.focus();
  1620.         theElement.select();
  1621.         
  1622.         return false;
  1623.     } else    {
  1624.         return true;
  1625.     } // end if
  1626. } // CheckFloat()
  1627.  
  1628. // -- End JavaScript -->
  1629. </SCRIPT>
  1630. </@IF>
  1631. <@IF '("<@VAR instance$IncludeCheckFloatOrBlank>"="TRUE")' >
  1632. <SCRIPT>
  1633. <!--Begin JavaScript
  1634.  
  1635.  
  1636. function CheckFloatOrBlank( theElement )    {
  1637.  
  1638.     if ( !ValidateBlank( theElement) && !ValidateFloat( theElement ) )    {
  1639.         alert( "Field '" + theElement.name + "' is neither a valid real number nor a blank entry." );
  1640.         
  1641.         theElement.focus();
  1642.         theElement.select();
  1643.         
  1644.         return false;
  1645.     } else    {
  1646.         return true;
  1647.     } // end if
  1648. } // CheckFloatOrBlank()
  1649.  
  1650. // -- End JavaScript -->
  1651. </SCRIPT>
  1652. </@IF>
  1653. <@IF '("<@VAR instance$IncludeCheckFloatGreater>"="TRUE")' >
  1654. <SCRIPT>
  1655. <!--Begin JavaScript
  1656.  
  1657.  
  1658. function CheckFloatGreater( theElement, lowerBound )    {
  1659.  
  1660.     if ( !ValidateFloatGreater( theElement, lowerBound ) )    {
  1661.         alert( "Field '" + theElement.name + "' is not a real number greater than " + lowerBound + "." );
  1662.         
  1663.         theElement.focus();
  1664.         theElement.select();
  1665.         
  1666.         return false;
  1667.     } else    {
  1668.         return true;
  1669.     } // end if
  1670. } // CheckFloatGreater()
  1671.  
  1672. // -- End JavaScript -->
  1673. </SCRIPT>
  1674. </@IF>
  1675. <@IF '("<@VAR instance$IncludeCheckFloatLess>"="TRUE")' >
  1676. <SCRIPT>
  1677. <!--Begin JavaScript
  1678.  
  1679.  
  1680. function CheckFloatLess( theElement, upperBound )    {
  1681.  
  1682.     if ( !ValidateFloatLess( theElement, upperBound ) )    {
  1683.         alert( "Field '" + theElement.name + "' is not a real number less than " + upperBound + "." );
  1684.         
  1685.         theElement.focus();
  1686.         theElement.select();
  1687.         
  1688.         return false;
  1689.     } else    {
  1690.         return true;
  1691.     } // end if
  1692. } // CheckFloatLess()
  1693.  
  1694. // -- End JavaScript -->
  1695. </SCRIPT>
  1696. </@IF>
  1697. <@IF '("<@VAR instance$IncludeCheckFloatGreaterOrBlank>"="TRUE")' >
  1698. <SCRIPT>
  1699. <!--Begin JavaScript
  1700.  
  1701.  
  1702. function CheckFloatGreaterOrBlank( theElement, lowerBound )    {
  1703.  
  1704.     if ( !ValidateBlank( theElement) && !ValidateFloatGreater( theElement, lowerBound ) )    {
  1705.         alert( "Field '" + theElement.name + "' is not a real number greater than " + lowerBound + " nor a blank entry." );
  1706.         
  1707.         theElement.focus();
  1708.         theElement.select();
  1709.         
  1710.         return false;
  1711.     } else    {
  1712.         return true;
  1713.     } // end if
  1714. } // CheckFloatGreaterOrBlank()
  1715.  
  1716. // -- End JavaScript -->
  1717. </SCRIPT>
  1718. </@IF>
  1719. <@IF '("<@VAR instance$IncludeCheckFloatLessOrBlank>"="TRUE")' >
  1720. <SCRIPT>
  1721. <!--Begin JavaScript
  1722.  
  1723.  
  1724. function CheckFloatLessOrBlank( theElement, upperBound )    {
  1725.  
  1726.     if ( !ValidateBlank( theElement) && !ValidateFloatLess( theElement, upperBound ) )    {
  1727.         alert( "Field '" + theElement.name + "' is not a real number less than " + upperBound + " nor a blank entry." );
  1728.         
  1729.         theElement.focus();
  1730.         theElement.select();
  1731.         
  1732.         return false;
  1733.     } else    {
  1734.         return true;
  1735.     } // end if
  1736. } // CheckFloatLessOrBlank()
  1737.  
  1738. // -- End JavaScript -->
  1739. </SCRIPT>
  1740. </@IF>
  1741. <@IF '("<@VAR instance$IncludeCheckDate>"="TRUE")' >
  1742. <SCRIPT>
  1743. <!--Begin JavaScript
  1744.  
  1745.  
  1746. function CheckDate( theElement )    {
  1747.  
  1748.     if ( !ValidateDate( theElement, "" ) )    {
  1749.         alert( "Field '" + theElement.name + "' is not a valid date of the form 'MM/DD/YY'." );
  1750.         
  1751.         theElement.focus();
  1752.         theElement.select();
  1753.         
  1754.         return false;
  1755.     } else    {
  1756.         return true;
  1757.     } // end if
  1758. } // CheckDate()
  1759.  
  1760. // -- End JavaScript -->
  1761. </SCRIPT>
  1762. </@IF>
  1763. <@IF '("<@VAR instance$IncludeCheckDateOrBlank>"="TRUE")' >
  1764. <SCRIPT>
  1765. <!--Begin JavaScript
  1766.  
  1767.  
  1768. function CheckDateOrBlank( theElement )    {
  1769.  
  1770.     if ( !ValidateBlank( theElement) && !ValidateDate( theElement, "" ) )    {
  1771.         alert( "Field '" + theElement.name + "' is not a valid date of the form 'MM/DD/YY' nor a blank entry." );
  1772.         
  1773.         theElement.focus();
  1774.         theElement.select();
  1775.         
  1776.         return false;
  1777.     } else    {
  1778.         return true;
  1779.     } // end if
  1780. } // CheckDate()
  1781.  
  1782. // -- End JavaScript -->
  1783. </SCRIPT>
  1784. </@IF>
  1785.  
  1786.  
  1787.  
  1788. ]]></Output>
  1789.         <Output ID="FormBuilder.outputForm.Output_form.Results" Type="HTML"><![CDATA[<FORM METHOD=POST NAME="<@VAR instance$FormName ENCODING=NONE>" onSubmit="return <@VAR instance$RequiredFields ENCODING=NONE>true;"<@IF 'LEN(<@VAR instance$FormAction ENCODING=NONE>)'> ACTION="<@VAR instance$FormAction ENCODING=NONE>"</@IF>>
  1790.  
  1791. <TABLE>
  1792. <@VAR instance$FormHtml ENCODING=NONE>
  1793. <TR><TD><BR></TD></TR>
  1794. <TR>
  1795.     <TD COLSPAN=2 ALIGN=CENTER><INPUT TYPE=SUBMIT VALUE=<@IF 'LEN(@@method$SubmitText)'>"<@VAR method$SubmitText ENCODING=NONE>"<@ELSE>Submit</@IF>> <INPUT TYPE=RESET VALUE=Reset></TD>
  1796. </TR>
  1797. <TR><TD><BR></TD></TR>
  1798. <TR>
  1799.     <TD COLSPAN=2 ALIGN=CENTER><FONT COLOR=<@VAR instance$RequiredColor ENCODING=NONE>>*</FONT> Indicates Required Field</TD>
  1800. </TR>
  1801. </TABLE>
  1802.  
  1803. </FORM>]]></Output>
  1804.         <Output ID="FormBuilder.openForm.Initialize_Form.Results" Type="HTML"><![CDATA[<@COMMENT>     purge all form variables. </@COMMENT>
  1805.     <@PURGE instance$FormHtml>
  1806.     <@PURGE instance$RequiredFields>
  1807.  
  1808. <@COMMENT>     determine if any javascript is going to be needed. </@COMMENT>
  1809.     <@ASSIGN instance$RequiredFlag "FALSE">
  1810.     
  1811. <@COMMENT>     color of asterisk for required fields. </@COMMENT>
  1812. <@IF 'LEN(@@instance$RequiredColor)'>
  1813.         <@ASSIGN instance$RequiredColor "<@VAR method$RequiredColor ENCODING=NONE>">
  1814. <@ELSE>
  1815.         <@ASSIGN instance$RequiredColor "maroon">
  1816. </@IF>
  1817.  
  1818. <@COMMENT> form information. </@COMMENT>
  1819. <@ASSIGN instance$FormAction "<@VAR method$Action ENCODING=NONE>">
  1820. <@ASSIGN instance$FormName "<@IFEMPTY '<@VAR method$Name ENCODING=NONE>'>inputForm<@ELSE><@VAR method$Name ENCODING=NONE></@IF>">
  1821.  
  1822. <@COMMENT>     * only javascript functions that are used
  1823.                 are inserted 
  1824.              * Include variables initialized to "FALSE"
  1825.                -thus not including javascript functions </@COMMENT>
  1826.             
  1827.     <@ASSIGN instance$IncludeCheckNotBlank "FALSE">
  1828.     
  1829.     <@ASSIGN instance$IncludeCheckInteger "FALSE">
  1830.     <@ASSIGN instance$IncludeCheckIntegerOrBlank "FALSE">
  1831.     <@ASSIGN instance$IncludeCheckIntegerGreater "FALSE">
  1832.     <@ASSIGN instance$IncludeCheckIntegerLess "FALSE">
  1833.     <@ASSIGN instance$IncludeCheckIntegerGreaterOrBlank "FALSE">
  1834.     <@ASSIGN instance$IncludeCheckIntegerLessOrBlank "FALSE">
  1835.  
  1836.     <@ASSIGN instance$IncludeCheckFloat "FALSE">
  1837.     <@ASSIGN instance$IncludeCheckFloatOrBlank "FALSE">
  1838.     <@ASSIGN instance$IncludeCheckFloatGreater "FALSE">
  1839.     <@ASSIGN instance$IncludeCheckFloatLess "FALSE">
  1840.     <@ASSIGN instance$IncludeCheckFloatGreaterOrBlank "FALSE">
  1841.     <@ASSIGN instance$IncludeCheckFloatLessOrBlank "FALSE">
  1842.  
  1843.     <@ASSIGN instance$IncludeCheckSelectNotBlank "FALSE">    
  1844.     <@ASSIGN instance$IncludeCheckRadioNotBlank "FALSE">
  1845.     <@ASSIGN instance$IncludeCheckDate "FALSE">    
  1846.     <@ASSIGN instance$IncludeCheckDateOrBlank "FALSE">    ]]></Output>
  1847.         <Output ID="FormBuilder.addFileField.Append_FileField.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  1848. <TR>
  1849.     <TD><@VAR method$Label ENCODING=NONE><@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE"><FONT COLOR=<@VAR instance$RequiredColor ENCODING=NONE>>*</FONT>  </@IF></TD>
  1850.     <TD>
  1851.     <@IFEMPTY "<@VAR method$DefaultValue ENCODING=NONE>">
  1852.         <INPUT TYPE=FILE<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$DisplayLength ENCODING=NONE>)"> SIZE="<@VAR method$DisplayLength ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$MaxLength ENCODING=NONE>)"> MAXLENGTH="<@VAR method$MaxLength ENCODING=NONE>"</@IF>>
  1853.     <@ELSE>
  1854.         <INPUT TYPE=TEXT<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$DisplayLength ENCODING=NONE>)"> SIZE="<@VAR method$DisplayLength ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$DefaultValue ENCODING=NONE>)"> VALUE="<@VAR method$DefaultValue ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$MaxLength ENCODING=NONE>)"> MAXLENGTH="<@VAR method$MaxLength ENCODING=NONE>"</@IF>>
  1855.     </@IF>
  1856.     </TD>
  1857. </TR>
  1858. '>
  1859.  
  1860. <@COMMENT> If the field is required, augment form verification clause.</@COMMENT>
  1861. <@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE">
  1862.     <@ASSIGN instance$RequiredFlag "TRUE">
  1863.     <@ASSIGN instance$IncludeCheckNotBlank "TRUE">    
  1864.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckNotBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>) && ">
  1865. </@IF>]]></Output>
  1866.         <Output ID="FormBuilder.addCheckboxes.Append_Checkboxes.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  1867. <@IF "LEN(@@method$NumCols)">
  1868. <TR>
  1869.     <TD VALIGN=TOP><@VAR method$Label ENCODING=NONE></TD>
  1870.     <TD>
  1871.         <TABLE>
  1872.             <TR>
  1873.                 <@ROWS ARRAY="method$Options">
  1874.                        <TD><INPUT TYPE=CHECKBOX<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF> VALUE="<@COL 1>"<@IFEQUAL "<@COL 3>" "TRUE"> CHECKED</@IF>><@COL 2></INPUT>  </TD>
  1875.                         <@IFEQUAL "<@CALC '<@CURROW>%@@method$NumCols'>" "0">
  1876.             </TR>
  1877.             <TR>
  1878.                         </@IF>
  1879.                    </@ROWS>
  1880.             </TR>
  1881.         </TABLE>
  1882.       </TD>
  1883. </TR>
  1884. <@ELSE> 
  1885. <TR>
  1886.     <TD VALIGN=TOP><@VAR method$Label ENCODING=NONE></TD>
  1887.     <TD>
  1888.         <@ROWS ARRAY="method$Options">
  1889.               <INPUT TYPE=CHECKBOX<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF> VALUE="<@COL 1>"<@IFEQUAL "<@COL 3>" "TRUE"> CHECKED</@IF>><@COL 2></INPUT>  
  1890.            </@ROWS>
  1891.       </TD>
  1892. </TR>
  1893. </@IF>
  1894. '>
  1895.  
  1896. ]]></Output>
  1897.         <Output ID="FormBuilder.addDropdown.Append_Dropdown.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  1898. <TR>
  1899.     <TD><@VAR method$Label ENCODING=NONE><@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE"><FONT COLOR=<@VAR instance$RequiredColor ENCODING=NONE>>*</FONT>  </@IF></TD>
  1900.     <TD>
  1901.         <SELECT<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$MultipleSize ENCODING=NONE>)"> SIZE="<@VAR method$MultipleSize ENCODING=NONE>" MULTIPLE</@IF>>
  1902.             <OPTION></OPTION>
  1903.        <@ROWS ARRAY="method$Options">
  1904.             <OPTION<@IF "LEN(<@COL 1>)"> VALUE="<@COL 1>"</@IF><@IFEQUAL "<@COL 1>" "<@VAR method$DefaultValue ENCODING=NONE>"> SELECTED</@IF>><@COL 2></OPTION>
  1905.     </@ROWS>
  1906.               </SELECT>
  1907.     </TD>
  1908. </TR>
  1909. '>
  1910.  
  1911. <@COMMENT> If the field is required, augment form verification clause.</@COMMENT>
  1912. <@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE">
  1913.     <@ASSIGN instance$RequiredFlag "TRUE">
  1914.     <@ASSIGN instance$IncludeCheckSelectNotBlank "TRUE">    
  1915.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckSelectNotBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>) && ">
  1916. </@IF>]]></Output>
  1917.         <Output ID="FormBuilder.addDateField.Append_DateField.Results" Type="HTML"><![CDATA[<@IF "LEN(<@VAR method$PopupCalendarPath>)">
  1918.     <@ASSIGN instance$PopupCalendarPath "@@method$PopupCalendarPath">
  1919. </@IF>
  1920.  
  1921.  
  1922. <@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  1923. <TR>
  1924.     <TD><@VAR method$Label ENCODING=NONE><@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE"><FONT COLOR=<@VAR instance$RequiredColor ENCODING=NONE>>*</FONT>  </@IF></TD>
  1925.       <TD>
  1926.         <INPUT TYPE=TEXT MAXLENGTH=10 SIZE=10 <@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$DefaultValue ENCODING=NONE>)"> VALUE="<@VAR method$DefaultValue ENCODING=NONE>"</@IF>>
  1927.     <@IFEQUAL "<@VAR method$PopupCalendar ENCODING=NONE>" "TRUE">
  1928.         <A HREF="#" onClick="window.dateField=<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>; window.open('<@IF "LEN(<@VAR instance$PopupCalendarPath>)"><@CHAR 60>@CGI<@CHAR 62><@VAR instance$PopupCalendarPath>calendar.taf<@ELSE><@CHAR 60>@CGI<@CHAR 62><@CLASSFILEPATH>calendar.taf</@IF>','cal','WIDTH=200,HEIGHT=250')"><IMG SRC="<@IF "LEN(<@VAR instance$PopupCalendarPath>)"><@VAR instance$PopupCalendarPath>calendar.gif<@ELSE><@CLASSFILEPATH>calendar.gif</@IF>" BORDER=0></A>
  1929.     </@IF>
  1930.     </TD>
  1931. </TR>
  1932. '>
  1933.  
  1934.  
  1935. <@COMMENT> If the field is required, augment form verification clause.</@COMMENT>
  1936. <@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE">
  1937.     <@ASSIGN instance$RequiredFlag "TRUE">
  1938.     <@ASSIGN instance$IncludeCheckNotBlank "TRUE">    
  1939.     <@ASSIGN instance$IncludeCheckDate "TRUE">    
  1940.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckNotBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>) && ">
  1941.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckDate(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>) && ">
  1942. <@ELSE>
  1943.     <@ASSIGN instance$RequiredFlag "TRUE">
  1944.     <@ASSIGN instance$IncludeCheckDateOrBlank "TRUE">
  1945.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckDateOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>) && ">
  1946. </@IF>
  1947.     ]]></Output>
  1948.         <Output ID="FormBuilder.addDateRange.Append_DateRangeFields.Results" Type="HTML"><![CDATA[<@IF "LEN(<@VAR method$PopupCalendarPath>)">
  1949.     <@ASSIGN instance$PopupCalendarPath "@@method$PopupCalendarPath">
  1950. </@IF>
  1951.  
  1952.  
  1953. <@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  1954. <TR>
  1955.     <TD><@VAR method$Label ENCODING=NONE><@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE"><FONT COLOR=<@VAR instance$RequiredColor ENCODING=NONE>>*</FONT>  </@IF></TD>
  1956.     <TD>
  1957.         From   
  1958.            <INPUT TYPE=TEXT MAXLENGTH=10 SIZE=10 <@IF "LEN(<@VAR method$LowerName ENCODING=NONE>)"> NAME="<@VAR method$LowerName ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$LowerDefaultValue ENCODING=NONE>)"> VALUE="<@VAR method$LowerDefaultValue ENCODING=NONE>"</@IF>>
  1959.     <@IFEQUAL "<@VAR method$PopupCalendar ENCODING=NONE>" "TRUE">
  1960.         <A HREF="#" onClick="window.dateField=<@VAR instance$FormName ENCODING=NONE>.<@VAR method$LowerName ENCODING=NONE>; window.open('<@IF "LEN(<@VAR instance$PopupCalendarPath>)"><@CHAR 60>@CGI<@CHAR 62><@VAR instance$PopupCalendarPath>calendar.taf<@ELSE><@CHAR 60>@CGI<@CHAR 62><@CLASSFILEPATH>calendar.taf</@IF>','cal','WIDTH=200,HEIGHT=250')"><IMG SRC="<@IF "LEN(<@VAR instance$PopupCalendarPath>)"><@VAR instance$PopupCalendarPath>calendar.gif<@ELSE><@CLASSFILEPATH>calendar.gif</@IF>" BORDER=0></A>
  1961.     </@IF>
  1962.            To   
  1963.            <INPUT TYPE=TEXT MAXLENGTH=10 SIZE=10 <@IF "LEN(<@VAR method$UpperName ENCODING=NONE>)"> NAME="<@VAR method$UpperName ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$UpperDefaultValue ENCODING=NONE>)"> VALUE="<@VAR method$UpperDefaultValue ENCODING=NONE>"</@IF>>
  1964.     <@IFEQUAL "<@VAR method$PopupCalendar ENCODING=NONE>" "TRUE">
  1965.         <A HREF="#" onClick="window.dateField=<@VAR instance$FormName ENCODING=NONE>.<@VAR method$UpperName ENCODING=NONE>; window.open('<@IF "LEN(<@VAR instance$PopupCalendarPath>)"><@CHAR 60>@CGI<@CHAR 62><@VAR instance$PopupCalendarPath>calendar.taf<@ELSE><@CHAR 60>@CGI<@CHAR 62><@CLASSFILEPATH>calendar.taf</@IF>','cal','WIDTH=200,HEIGHT=250')"><IMG SRC="<@IF "LEN(<@VAR instance$PopupCalendarPath>)"><@VAR instance$PopupCalendarPath>calendar.gif<@ELSE><@CLASSFILEPATH>calendar.gif</@IF>" BORDER=0></A>
  1966.     </@IF>
  1967.       </TD>
  1968. </TR>
  1969. '>
  1970.  
  1971. <@IFEQUAL "<@VAR method$PopupCalendar ENCODING=NONE>" "TRUE">
  1972.     <@ASSIGN instance$RequiredFlag "TRUE">
  1973.     <@ASSIGN instance$IncludepopupCal "TRUE">
  1974. </@IF>
  1975.  
  1976. <@COMMENT> If the fields are required, augment form verification clause.</@COMMENT>
  1977. <@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE">
  1978.     <@ASSIGN instance$RequiredFlag "TRUE">
  1979.     <@ASSIGN instance$IncludeCheckNotBlank "TRUE">    
  1980.     <@ASSIGN instance$IncludeCheckDate "TRUE">    
  1981.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckNotBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$LowerName ENCODING=NONE>) && ">
  1982.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckDate(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$LowerName ENCODING=NONE>) && ">
  1983.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckNotBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$UpperName ENCODING=NONE>) && ">
  1984.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckDate(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$UpperName ENCODING=NONE>) && ">
  1985. <@ELSE>
  1986.     <@ASSIGN instance$RequiredFlag "TRUE">
  1987.     <@ASSIGN instance$IncludeCheckDateOrBlank "TRUE">
  1988.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckDateOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$LowerName ENCODING=NONE>) && ">
  1989.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckDateOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$UpperName ENCODING=NONE>) && ">
  1990. </@IF>]]></Output>
  1991.         <Output ID="FormBuilder.addPassword.Append_PasswordField.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  1992. <TR>
  1993.     <TD><@VAR method$Label ENCODING=NONE><@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE"><FONT COLOR=<@VAR instance$RequiredColor ENCODING=NONE>>*</FONT>  </@IF></TD>
  1994.     <TD>
  1995.         <INPUT TYPE=PASSWORD    <@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$DefaultValue ENCODING=NONE>)"> VALUE="<@VAR method$DefaultValue ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$DisplayLength ENCODING=NONE>)"> SIZE="<@VAR method$DisplayLength ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$MaxLength ENCODING=NONE>)"> MAXLENGTH="<@VAR method$MaxLength ENCODING=NONE>"</@IF>>
  1996.       </TD>
  1997. </TR>
  1998. '>
  1999.  
  2000. <@COMMENT> If the field is required, augment form verification clause.</@COMMENT>
  2001. <@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE">
  2002.     <@ASSIGN instance$RequiredFlag "TRUE">
  2003.     <@ASSIGN instance$IncludeCheckNotBlank "TRUE">    
  2004.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckNotBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>) && ">
  2005. </@IF>]]></Output>
  2006.         <Output ID="FormBuilder.addIntegerField.Append_IntegerField.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  2007. <TR>
  2008.     <TD><@VAR method$Label ENCODING=NONE><@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE"><FONT COLOR=<@VAR instance$RequiredColor ENCODING=NONE>>*</FONT>  </@IF></TD>
  2009.     <TD>
  2010.         <INPUT TYPE=TEXT<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$DefaultValue ENCODING=NONE>)"> VALUE="<@VAR method$DefaultValue ENCODING=NONE>"</@IF>>
  2011.     </TD>
  2012. </TR>
  2013. '>
  2014.  
  2015. <@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE">
  2016.     <@COMMENT> If the field is required, augment form verification clause.</@COMMENT>
  2017.     <@ASSIGN instance$RequiredFlag "TRUE">
  2018.     <@IF "LEN(<@VAR method$MaxValue ENCODING=NONE>)">
  2019.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckIntegerLess(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>,<@VAR method$MaxValue ENCODING=NONE>) && ">
  2020.         <@ASSIGN instance$IncludeCheckIntegerLess "TRUE">
  2021.     </@IF>
  2022.     <@IF "LEN(<@VAR method$MinValue ENCODING=NONE>)">
  2023.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckIntegerGreater(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>,<@VAR method$MinValue ENCODING=NONE>) && ">
  2024.         <@ASSIGN instance$IncludeCheckIntegerGreater "TRUE">
  2025.     </@IF>
  2026.     
  2027.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckInteger(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>) && ">
  2028.     <@ASSIGN instance$IncludeCheckInteger "TRUE">
  2029. <@ELSE>
  2030.     <@COMMENT> Always check the range to assure proper data fill when the form verification is performed.</@COMMENT>
  2031.  
  2032.     <@IF "LEN(<@VAR method$MaxValue ENCODING=NONE>)">
  2033.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckIntegerLessOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>,<@VAR method$MaxValue ENCODING=NONE>) && ">
  2034.         <@ASSIGN instance$IncludeCheckIntegerLessOrBlank "TRUE">
  2035.         <@ASSIGN instance$RequiredFlag "TRUE">
  2036.     </@IF>
  2037.     <@IF "LEN(<@VAR method$MinValue ENCODING=NONE>)">
  2038.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckIntegerGreaterOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>,<@VAR method$MinValue ENCODING=NONE>) && ">
  2039.         <@ASSIGN instance$IncludeCheckIntegerGreaterOrBlank "TRUE">
  2040.         <@ASSIGN instance$RequiredFlag "TRUE">
  2041.     </@IF>
  2042.  
  2043.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckIntegerOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>) && ">
  2044.     <@ASSIGN instance$IncludeCheckIntegerOrBlank "TRUE">
  2045.     <@ASSIGN instance$RequiredFlag "TRUE">
  2046. </@IF>
  2047. ]]></Output>
  2048.         <Output ID="FormBuilder.addFloatField.Append_FloatField.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  2049. <TR>
  2050.     <TD><@VAR method$Label ENCODING=NONE><@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE"><FONT COLOR=<@VAR instance$RequiredColor ENCODING=NONE>>*</FONT>  </@IF></TD>
  2051.     <TD>
  2052.         <INPUT TYPE=TEXT <@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$DefaultValue ENCODING=NONE>)"> VALUE="<@VAR method$DefaultValue ENCODING=NONE>"</@IF>>
  2053.       </TD>
  2054. </TR>
  2055. '>
  2056.  
  2057.  
  2058. <@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE">
  2059.     <@COMMENT> If the field is required, augment form verification clause.</@COMMENT>
  2060.     <@ASSIGN instance$RequiredFlag "TRUE">
  2061.     <@IF "LEN(<@VAR method$MaxValue ENCODING=NONE>)">
  2062.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckFloatLess(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>,<@VAR method$MaxValue ENCODING=NONE>) && ">
  2063.         <@ASSIGN instance$IncludeCheckFloatLess "TRUE">
  2064.     </@IF>
  2065.     <@IF "LEN(<@VAR method$MinValue ENCODING=NONE>)">
  2066.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckFloatGreater(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>,<@VAR method$MinValue ENCODING=NONE>) && ">
  2067.         <@ASSIGN instance$IncludeCheckFloatGreater "TRUE">
  2068.     </@IF>
  2069.     
  2070.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckFloat(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>) && ">
  2071.     <@ASSIGN instance$IncludeCheckFloat "TRUE">
  2072. <@ELSE>
  2073.     <@COMMENT> Always check the range to assure proper data fill when the form verification is performed.</@COMMENT>
  2074.  
  2075.     <@IF "LEN(<@VAR method$MaxValue ENCODING=NONE>)">
  2076.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckFloatLessOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>,<@VAR method$MaxValue ENCODING=NONE>) && ">
  2077.         <@ASSIGN instance$IncludeCheckFloatLessOrBlank "TRUE">
  2078.         <@ASSIGN instance$RequiredFlag "TRUE">
  2079.     </@IF>
  2080.     <@IF "LEN(<@VAR method$MinValue ENCODING=NONE>)">
  2081.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckFloatGreaterOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>,<@VAR method$MinValue ENCODING=NONE>) && ">
  2082.         <@ASSIGN instance$IncludeCheckFloatGreaterOrBlank "TRUE">
  2083.         <@ASSIGN instance$RequiredFlag "TRUE">
  2084.     </@IF>
  2085.  
  2086.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckFloatOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>) && ">
  2087.     <@ASSIGN instance$IncludeCheckFloatOrBlank "TRUE">
  2088.     <@ASSIGN instance$RequiredFlag "TRUE">
  2089. </@IF>
  2090. ]]></Output>
  2091.         <Output ID="FormBuilder.addDivider.Append_Divider.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  2092. <TR>
  2093.       <TD COLSPAN=2<@IF "LEN(<@VAR method$BackgroundColor ENCODING=NONE>)"> BGCOLOR="<@VAR method$BackgroundColor ENCODING=NONE>"</@IF>><@VAR method$Label ENCODING=NONE></TD>
  2094. </TR>
  2095. '>]]></Output>
  2096.         <Output ID="FormBuilder.addBlankLine.Append_Blank.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  2097. <TR><TD COLSPAN=2> </TD></TR>
  2098. '>]]></Output>
  2099.         <Output ID="FormBuilder.addReadOnly.Append_ReadOnly.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  2100. <TR>
  2101.     <TD><@VAR method$Label ENCODING=NONE></TD>
  2102.     <TD><@VAR method$Value ENCODING=NONE></TD>
  2103. </TR>
  2104. '>]]></Output>
  2105.         <Output ID="FormBuilder.addTextArea.Append_TextArea.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  2106. <@IF "LEN(<@VAR method$Label ENCODING=NONE>)">
  2107. <TR>
  2108.     <TD COLSPAN=2<@IF "LEN(<@VAR method$BackgroundColor ENCODING=NONE>)"> BGCOLOR="<@VAR method$BackgroundColor ENCODING=NONE>"</@IF>><@VAR method$Label ENCODING=NONE><@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE"><FONT COLOR=<@VAR instance$RequiredColor ENCODING=NONE>>*</FONT></@IF></TD>
  2109. </TR>
  2110. </@IF>
  2111. <TR>
  2112.     <TD COLSPAN=2>
  2113.         <TEXTAREA WRAP=VIRTUAL<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$Rows ENCODING=NONE>)"> ROWS="<@VAR method$Rows ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$Columns ENCODING=NONE>)"> COLS="<@VAR method$Columns ENCODING=NONE>"</@IF>><@VAR method$DefaultValue ENCODING=NONE></TEXTAREA>
  2114.     </TD>
  2115. </TR>
  2116. '>
  2117.  
  2118. <@COMMENT> If the field is required, augment form verification clause.</@COMMENT>
  2119. <@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE">
  2120.     <@ASSIGN instance$IncludeCheckNotBlank "TRUE">
  2121.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckNotBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>) && ">
  2122. </@IF>]]></Output>
  2123.         <Output ID="FormBuilder.addHidden.Append_Hidden.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  2124. <INPUT TYPE=HIDDEN<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$Value ENCODING=NONE>)"> VALUE="<@VAR method$Value ENCODING=NONE>"</@IF>>
  2125. '>]]></Output>
  2126.         <Output ID="FormBuilder.addDynamicRadioButtons.Append_DynamicRadioButtons.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  2127. <@IF "LEN(<@VAR method$NumCols ENCODING=NONE>)">
  2128. <TR>
  2129.     <TD VALIGN=TOP><@VAR method$Label ENCODING=NONE><@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE"><FONT COLOR=<@VAR instance$RequiredColor ENCODING=NONE>>*</FONT>  </@IF></TD>
  2130.     <TD>
  2131.         <TABLE>
  2132.             <TR>
  2133.                 <@CHAR 60>@ROWS ARRAY="<@VAR method$ArrayName ENCODING=NONE>"<@CHAR 62>
  2134.                     <TD><INPUT TYPE=RADIO VALUE="<@CHAR 60>@COL 1<@CHAR 62>"<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF><@CHAR 60>@IFEQUAL "<@VAR method$DefaultValue ENCODING=NONE>" "<@CHAR 60>@COL 1<@CHAR 62>"<@CHAR 62> CHECKED<@CHAR 60>/@IF<@CHAR 62>><@CHAR 60>@COL 2<@CHAR 62></INPUT>  </TD>
  2135.                         <@CHAR 60>@IFEQUAL "<@CHAR 60>@CALC '<@CHAR 60>@CURROW<@CHAR 62>%@@method$NumCols'<@CHAR 62>" "0"<@CHAR 62>
  2136.             </TR>
  2137.             <TR>
  2138.                         <@CHAR 60>/@IF<@CHAR 62>
  2139.                 <@CHAR 60>/@ROWS<@CHAR 62>
  2140.             </TR>
  2141.         </TABLE>
  2142.       </TD>
  2143. </TR>
  2144. <@ELSE>
  2145. <TR>
  2146.     <TD VALIGN=TOP><@VAR method$Label ENCODING=NONE><@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE"><FONT COLOR=<@VAR instance$RequiredColor ENCODING=NONE>>*</FONT>  </@IF></TD>
  2147.     <TD>
  2148.     <@CHAR 60>@ROWS ARRAY="<@VAR method$ArrayName ENCODING=NONE>"<@CHAR 62>
  2149.         <INPUT TYPE=RADIO VALUE="<@CHAR 60>@COL 1<@CHAR 62>"<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF><@CHAR 60>@IFEQUAL "<@VAR method$DefaultValue ENCODING=NONE>" "<@CHAR 60>@COL 1<@CHAR 62>"<@CHAR 62> CHECKED<@CHAR 60>/@IF<@CHAR 62>><@CHAR 60>@COL 2<@CHAR 62></INPUT>  
  2150.     <@CHAR 60>/@ROWS<@CHAR 62>
  2151.       </TD>
  2152. </TR>
  2153. </@IF>
  2154. '>
  2155.  
  2156. <@COMMENT> If the field is required, augment form verification clause.</@COMMENT>
  2157. <@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE">
  2158.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckRadioNotBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>) && ">
  2159.     <@ASSIGN instance$RequiredFlag "TRUE">
  2160.     <@ASSIGN instance$IncludeCheckRadioNotBlank "TRUE">
  2161. </@IF>]]></Output>
  2162.         <Output ID="FormBuilder.addDynamicDropdown.Append_DynamicDropdown.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  2163. <TR>
  2164.     <TD><@VAR method$Label ENCODING=NONE><@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE"><FONT COLOR=<@VAR instance$RequiredColor ENCODING=NONE>>*</FONT>  </@IF></TD>
  2165.     <TD>
  2166.         <SELECT<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$MultipleSize ENCODING=NONE>)"> SIZE="<@VAR method$MultipleSize ENCODING=NONE> MULTIPLE"</@IF>>
  2167.         <OPTION></OPTION>
  2168.         <@CHAR 60><@CHAR 64>ROWS ARRAY="<@VAR method$ArrayName ENCODING=NONE>"<@CHAR 62>
  2169.             <OPTION<@CHAR 60>@IF "LEN(<@LITERAL '<@COL 1>'>)"<@CHAR 62> VALUE="<@LITERAL '<@COL 1>'>"<@CHAR 60>/@IF<@CHAR 62><@CHAR 60>@IFEQUAL "<@LITERAL '<@COL 1>'>" "<@VAR method$DefaultValue ENCODING=NONE>"<@CHAR 62> SELECTED<@CHAR 60>/@IF<@CHAR 62>><@LITERAL "<@COL 2>"></OPTION>
  2170.         <@LITERAL "</@ROWS>">
  2171.         </SELECT>
  2172.     </TD>
  2173. </TR>
  2174. '>
  2175.  
  2176. <@COMMENT> If the field is required, augment form verification clause.</@COMMENT>
  2177. <@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE">
  2178.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckSelectNotBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>) && ">
  2179.     <@ASSIGN instance$IncludeCheckSelectNotBlank "TRUE">
  2180.     <@ASSIGN instance$RequiredFlag "TRUE">
  2181. </@IF>]]></Output>
  2182.         <Output ID="FormBuilder.addDynamicCheckboxes.Append_DynamicCheckboxes.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  2183. <@IF "LEN(<@VAR method$NumCols ENCODING=NONE>)">
  2184. <TR>
  2185.     <TD VALIGN=TOP><@VAR method$Label ENCODING=NONE></TD>
  2186.     <TD>
  2187.         <TABLE>
  2188.             <TR>
  2189.                 <@CHAR 60><@CHAR 64>ROWS ARRAY="<@VAR method$ArrayName ENCODING=NONE>"<@CHAR 62>
  2190.                     <TD><INPUT TYPE=CHECKBOX<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF> VALUE="<@LITERAL '<@COL 1>'>"<@CHAR 60>@IFEQUAL "<@CHAR 60>@COL 3<@CHAR 62>" "TRUE"<@CHAR 62> CHECKED<@CHAR 60>/@IF<@CHAR 62>><@LITERAL "<@COL 2>"></INPUT>  </TD>
  2191.                         <@CHAR 60>@IFEQUAL "<@CHAR 60>@CALC '<@CHAR 60>@CURROW<@CHAR 62>%@@method$NumCols'<@CHAR 62>" "0"<@CHAR 62>
  2192.             </TR>
  2193.             <TR>
  2194.                         <@CHAR 60>/@IF<@CHAR 62>
  2195.                 <@LITERAL "</@ROWS>">
  2196.             </TR>
  2197.         </TABLE>    
  2198.       </TD>
  2199. </TR>
  2200. <@ELSE>
  2201. <TR>
  2202.     <TD VALIGN=TOP><@VAR method$Label ENCODING=NONE></TD>
  2203.     <TD>
  2204.     <@CHAR 60><@CHAR 64>ROWS ARRAY="<@VAR method$ArrayName ENCODING=NONE>"<@CHAR 62>
  2205.         <INPUT TYPE=CHECKBOX<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF> VALUE="<@LITERAL '<@COL 1>'>"<@CHAR 60>@IFEQUAL "<@CHAR 60>@COL 3<@CHAR 62>" "TRUE"<@CHAR 62> CHECKED<@CHAR 60>/@IF<@CHAR 62>><@LITERAL "<@COL 2>"></INPUT>  
  2206.         <@LITERAL "</@ROWS>">
  2207.       </TD>
  2208. </TR>
  2209. </@IF>
  2210. '>]]></Output>
  2211.         <Output ID="FormBuilder.addCustomRow.Append_CustomRow.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  2212. <TR>
  2213.     <TD COLSPAN=2><@VAR method$MetaHTML ENCODING=NONE></TD>
  2214. </TR>
  2215. '>]]></Output>
  2216.         <Output ID="FormBuilder.addIntegerRange.Append_IntegerRangeFields.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  2217. <TR>
  2218.     <TD><@VAR method$Label ENCODING=NONE><@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE"><FONT COLOR=<@VAR instance$RequiredColor ENCODING=NONE>>*</FONT>  </@IF></TD>
  2219.     <TD>
  2220.         From   
  2221.            <INPUT TYPE=TEXT <@IF "LEN(<@VAR method$LowerName ENCODING=NONE>)"> NAME="<@VAR method$LowerName ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$LowerDefaultValue ENCODING=NONE>)"> VALUE="<@VAR method$LowerDefaultValue ENCODING=NONE>"</@IF>>
  2222.            To   
  2223.            <INPUT TYPE=TEXT <@IF "LEN(<@VAR method$UpperName ENCODING=NONE>)"> NAME="<@VAR method$UpperName ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$UpperDefaultValue ENCODING=NONE>)"> VALUE="<@VAR method$UpperDefaultValue ENCODING=NONE>"</@IF>>
  2224.       </TD>
  2225. </TR>
  2226. '>
  2227.  
  2228. <@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE">
  2229.     <@COMMENT> If the field is required, augment form verification clause.</@COMMENT>
  2230.     <@ASSIGN instance$RequiredFlag "TRUE">
  2231.     <@IF "LEN(<@VAR method$MaxValue ENCODING=NONE>)">
  2232.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckIntegerLess(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$LowerName ENCODING=NONE>,<@VAR method$MaxValue ENCODING=NONE>) && ">
  2233.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckIntegerLess(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$UpperName ENCODING=NONE>,<@VAR method$MaxValue ENCODING=NONE>) && ">
  2234.         <@ASSIGN instance$IncludeCheckIntegerLess "TRUE">
  2235.     </@IF>
  2236.     <@IF "LEN(<@VAR method$MinValue ENCODING=NONE>)">
  2237.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckIntegerGreater(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$LowerName ENCODING=NONE>,<@VAR method$MinValue ENCODING=NONE>) && ">
  2238.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckIntegerGreater(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$UpperName ENCODING=NONE>,<@VAR method$MinValue ENCODING=NONE>) && ">
  2239.         <@ASSIGN instance$IncludeCheckIntegerGreater "TRUE">
  2240.     </@IF>
  2241.     
  2242.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckInteger(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$LowerName ENCODING=NONE>) && ">
  2243.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckInteger(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$UpperName ENCODING=NONE>) && ">
  2244.     <@ASSIGN instance$IncludeCheckInteger "TRUE">
  2245. <@ELSE>
  2246.     <@COMMENT> Always check the range to assure proper data fill when the form verification is performed.</@COMMENT>
  2247.  
  2248.     <@IF "LEN(<@VAR method$MaxValue ENCODING=NONE>)">
  2249.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckIntegerLessOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$LowerName ENCODING=NONE>,<@VAR method$MaxValue ENCODING=NONE>) && ">
  2250.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckIntegerLessOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$UpperName ENCODING=NONE>,<@VAR method$MaxValue ENCODING=NONE>) && ">
  2251.         <@ASSIGN instance$RequiredFlag "TRUE">
  2252.         <@ASSIGN instance$IncludeCheckIntegerLessOrBlank "TRUE">
  2253.     </@IF>
  2254.     <@IF "LEN(<@VAR method$MinValue ENCODING=NONE>)">
  2255.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckIntegerGreaterOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$LowerName ENCODING=NONE>,<@VAR method$MinValue ENCODING=NONE>) && ">
  2256.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckIntegerGreaterOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$UpperName ENCODING=NONE>,<@VAR method$MinValue ENCODING=NONE>) && ">
  2257.         <@ASSIGN instance$RequiredFlag "TRUE">
  2258.         <@ASSIGN instance$IncludeCheckIntegerGreaterOrBlank "TRUE">
  2259.     </@IF>
  2260.  
  2261.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckIntegerOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$LowerName ENCODING=NONE>) && ">
  2262.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckIntegerOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$UpperName ENCODING=NONE>) && ">
  2263.     <@ASSIGN instance$IncludeCheckIntegerOrBlank "TRUE">
  2264.     <@ASSIGN instance$RequiredFlag "TRUE">
  2265. </@IF>
  2266. ]]></Output>
  2267.         <Output ID="FormBuilder.addFloatRange.Append_FloatRangeFields.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  2268. <TR>
  2269.     <TD><@VAR method$Label ENCODING=NONE><@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE"><FONT COLOR=<@VAR instance$RequiredColor ENCODING=NONE>>*</FONT>  </@IF></TD>
  2270.     <TD>
  2271.         From   
  2272.            <INPUT TYPE=TEXT <@IF "LEN(<@VAR method$LowerName ENCODING=NONE>)"> NAME="<@VAR method$LowerName ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$LowerDefaultValue ENCODING=NONE>)"> VALUE="<@VAR method$LowerDefaultValue ENCODING=NONE>"</@IF>>
  2273.            To   
  2274.            <INPUT TYPE=TEXT <@IF "LEN(<@VAR method$UpperName ENCODING=NONE>)"> NAME="<@VAR method$UpperName ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$UpperDefaultValue ENCODING=NONE>)"> VALUE="<@VAR method$UpperDefaultValue ENCODING=NONE>"</@IF>>
  2275.       </TD>
  2276. </TR>
  2277. '>
  2278.  
  2279. <@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE">
  2280.     <@COMMENT> If the field is required, augment form verification clause.</@COMMENT>
  2281.     <@ASSIGN instance$RequiredFlag "TRUE">
  2282.     <@IF "LEN(<@VAR method$MaxValue ENCODING=NONE>)">
  2283.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckFloatLess(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$LowerName ENCODING=NONE>,<@VAR method$MaxValue ENCODING=NONE>) && ">
  2284.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckFloatLess(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$UpperName ENCODING=NONE>,<@VAR method$MaxValue ENCODING=NONE>) && ">
  2285.         <@ASSIGN instance$IncludeCheckFloatLess "TRUE">
  2286.     </@IF>
  2287.     <@IF "LEN(<@VAR method$MinValue ENCODING=NONE>)">
  2288.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckFloatGreater(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$LowerName ENCODING=NONE>,<@VAR method$MinValue ENCODING=NONE>) && ">
  2289.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckFloatGreater(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$UpperName ENCODING=NONE>,<@VAR method$MinValue ENCODING=NONE>) && ">
  2290.         <@ASSIGN instance$IncludeCheckFloatGreater "TRUE">
  2291.     </@IF>
  2292.     
  2293.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckFloat(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$LowerName ENCODING=NONE>) && ">
  2294.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckFloat(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$UpperName ENCODING=NONE>) && ">
  2295.     <@ASSIGN instance$IncludeCheckFloat "TRUE">
  2296. <@ELSE>
  2297.     <@COMMENT> Always check the range to assure proper data fill when the form verification is performed.</@COMMENT>
  2298.  
  2299.     <@IF "LEN(<@VAR method$MaxValue ENCODING=NONE>)">
  2300.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckFloatLessOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$LowerName ENCODING=NONE>,<@VAR method$MaxValue ENCODING=NONE>) && ">
  2301.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckFloatLessOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$UpperName ENCODING=NONE>,<@VAR method$MaxValue ENCODING=NONE>) && ">
  2302.         <@ASSIGN instance$RequiredFlag "TRUE">
  2303.         <@ASSIGN instance$IncludeCheckFloatLessOrBlank "TRUE">
  2304.     </@IF>
  2305.     <@IF "LEN(<@VAR method$MinValue ENCODING=NONE>)">
  2306.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckFloatGreaterOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$LowerName ENCODING=NONE>,<@VAR method$MinValue ENCODING=NONE>) && ">
  2307.         <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckFloatGreaterOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$UpperName ENCODING=NONE>,<@VAR method$MinValue ENCODING=NONE>) && ">
  2308.         <@ASSIGN instance$RequiredFlag "TRUE">
  2309.         <@ASSIGN instance$IncludeCheckFloatGreaterOrBlank "TRUE">
  2310.     </@IF>
  2311.  
  2312.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckFloatOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$LowerName ENCODING=NONE>) && ">
  2313.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckFloatOrBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$UpperName ENCODING=NONE>) && ">
  2314.     <@ASSIGN instance$IncludeCheckFloatOrBlank "TRUE">
  2315.     <@ASSIGN instance$RequiredFlag "TRUE">
  2316. </@IF>
  2317. ]]></Output>
  2318.         <Output ID="FormBuilder.addDynamicFileField.Append_DynamicFileField.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  2319. <TR>
  2320.     <TD><@VAR method$Label ENCODING=NONE><@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE"><FONT COLOR=<@VAR instance$RequiredColor ENCODING=NONE>>*</FONT>  </@IF></TD>
  2321.     <TD>
  2322.     <@CHAR 60>@IFEMPTY "<@VAR method$DefaultValue ENCODING=NONE>"<@CHAR 62>
  2323.         <INPUT TYPE=FILE<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$DisplayLength ENCODING=NONE>)"> SIZE="<@VAR method$DisplayLength ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$MaxLength ENCODING=NONE>)"> MAXLENGTH="<@VAR method$MaxLength ENCODING=NONE>"</@IF>>
  2324.     <@CHAR 60>@ELSE<@CHAR 62>
  2325.         <INPUT TYPE=TEXT<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$DisplayLength ENCODING=NONE>)"> SIZE="<@VAR method$DisplayLength ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$DefaultValue ENCODING=NONE>)"> VALUE="<@VAR method$DefaultValue ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$MaxLength ENCODING=NONE>)"> MAXLENGTH="<@VAR method$MaxLength ENCODING=NONE>"</@IF>>
  2326.     <@CHAR 60>/@IF<@CHAR 62>
  2327.     </TD>
  2328. </TR>
  2329. '>
  2330.  
  2331. <@COMMENT> If the field is required, augment form verification clause.</@COMMENT>
  2332. <@IFEQUAL "<@VAR method$Required ENCODING=NONE>" "TRUE">
  2333.     <@ASSIGN instance$RequiredFlag "TRUE">
  2334.     <@ASSIGN instance$IncludeCheckNotBlank "TRUE">    
  2335.     <@ASSIGN instance$RequiredFields "<@VAR instance$RequiredFields ENCODING=NONE>CheckNotBlank(<@VAR instance$FormName ENCODING=NONE>.<@VAR method$Name ENCODING=NONE>) && ">
  2336. </@IF>]]></Output>
  2337.         <Output ID="FormBuilder.addDynamicCheckbox.Append_DynamicCheckbox.Results" Type="HTML"><![CDATA[<@ASSIGN instance$FormHtml '<@VAR instance$FormHtml ENCODING=NONE>
  2338. <TR>
  2339.     <TD><@VAR method$Label ENCODING=NONE></TD>
  2340.     <TD>
  2341.         <INPUT TYPE=CHECKBOX<@IF "LEN(<@VAR method$Name ENCODING=NONE>)"> NAME="<@VAR method$Name ENCODING=NONE>"</@IF><@IF "LEN(<@VAR method$Value ENCODING=NONE>)"> VALUE="<@VAR method$Value ENCODING=NONE>"</@IF><@CHAR 60>@IFEQUAL "<@VAR method$DefaultValue ENCODING=NONE>" "1"<@CHAR 62> CHECKED<@CHAR 60>/@IF<@CHAR 62>>
  2342.     </TD>
  2343. </TR>
  2344. '>]]></Output>
  2345.     </Outputs>
  2346. </TCF>
  2347.