t_tablevalues.html

This HTML file is displayed to the creator of a workflow map when they define tasks in a workflow map that contains the Table Values data type. This HTML page lets the creator of a workflow map specify whether each field on the Table Values page (accessed from the Step Definition page) is editable, required, or read-only.

;;webscript t_tablevalues( Dynamic data )
<!-- File: custmod/t_tablevalues.html -->
;;oscript{
String a
String selected
Integer i = 1
Record theTask = data.taskInfo
Assoc theForm = theTask.Form
if ( !IsDefined( theForm ) )
theForm = Assoc.CreateAssoc()
end
;;}
<TABLE BORDER="0" CELLPADDING="2" CELLSPACING="1">
;for a in Assoc.Keys( data.data.Fields )
<TR>
<TD bgcolor="#CCCCCC" NOWRAP VALIGN="CENTER"><FONT
FACE="`[WebDsp_Font.SansSerif]`"
size="2"> `a`: </FONT></TD>
<TD>
<SELECT NAME="TV_`a`"
ONCHANGE="markTaskEditDirty();">
//Add the Editable option to the popup menu that is displayed for
//each workflow attribute on the Table Values page when the creator
//of a workflow map defines the task.
;selected = ( !( a in
theForm.REQUIRED_TABLE_VALUES ) && !( a in
theForm.NONEDITABLE_TABLE_VALUES ) ) ? " SELECTED" : ""
<OPTION
VALUE="Editable"`selected`>`[WebWFP_HTMLLabel.Editable]`
//Add the Entry Required option to the popup menu that is displayed
//for each workflow attribute on the Table Values page when the
//creator of a workflow map defines the task.
;selected = ( ( selected == "" ) && ( a in
theForm.REQUIRED_TABLE_VALUES ) ) ? " SELECTED" : ""
<OPTION
VALUE="Required"`selected`>`[WebWFP_HTMLLabel.EntryRequired]`
//Add the Read-Only option to the popup menu that is displayed for
//each workflow attribute on the Table Values page when the creator
//of a workflow map defines the task.
;selected = ( ( selected == "" ) && ( a in
theForm.NONEDITABLE_TABLE_VALUES ) ) ? " SELECTED" : ""
<OPTION
VALUE="ReadOnly"`selected`>`[WebWFP_HTMLLabel.ReadOnly]`
</SELECT>
 
</TD>
</TR>
;i += 1
;end
//Set up the Action row, which contains the Add to Workflow
//Definition button.
<TR>
<TD bgcolor="#CCCCCC" NOWRAP><FONT
FACE="`[WebDsp_Font.SansSerif]`"
size="2"> `[WebDoc_HTMLLabel.Action_]` </FONT></TD>
<TD>
<INPUT TYPE="Submit"
VALUE="`[WebWFP_HTMLLabel.AddToWorkflowDefinitionButtonLabel]`">
</TD></TR>
</TABLE>
;;end