submap_tablevalues.html

This HTML file is displayed when the creator of a workflow map defines a Sub-workflow task that contains the Table Values data type in a workflow that also contains the Table Values data type (by clicking the Table Values tab on the Sub-Map Step Definition page). It lets the creator of a workflow map specify the type of data that is passed between the main workflow and the Sub-workflow.

;;webscript submap_tablevalues( Dynamic data )
<!-- File: custmod/submap_tablevalues.html -->
//Edit table values for a Sub-workflow map. This file assumes that
//you are already in the context of an HTML form.
;Boolean noValues = !IsDefined( data.PassedValues )
;List vals = data.PassedValues
<TABLE BORDER="0" CELLPADDING="2" CELLSPACING="1">
//Set up the Table Values row.
<TR>
<TD bgcolor="#CCCCCC" NOWRAP VALIGN="TOP"><FONT
FACE="`[WebDsp_Font.SansSerif]`" size="2"> Table
Values: </FONT></TD>
//Create the Table Values (data exchange) heading in the
//Table Values row.
<TD>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD><STRONG>Table Values (data
exchange)</STRONG></TD>
</TR>
<TR>
<TD HEIGHT="12"> </TD>
</TR>
//Set up a check box to specify whether the project
//name passes between the main workflow and the
//Sub-workflow.
;if ( data.Found )
<TR>
;if ( noValues || ( 'Project_Name' in vals ) )
; checked = "CHECKED"
;else
; checked = ""
;end
<TD HEIGHT="20">
<INPUT TYPE="CHECKBOX" `checked`
NAME="Project_Name" ONCLICK="markTaskEditDirty();">
Project Name passes between main
workflow and Sub-workflow
</TD>
</TR>
//Set up a check box to specify whether the priority
//values pass between the main workflow and the
//Sub-workflow.
<TR>
;if ( noValues || ( 'Priority' in vals ) )
; checked = "CHECKED"
;else
; checked = ""
;end
<TD HEIGHT="20">
<INPUT TYPE="CHECKBOX" `checked`
NAME="Priority" ONCLICK="markTaskEditDirty();">
Priority passes between main
workflow and Sub-workflow
</TD>
</TR>
//Set up a check box to specify whether the due date
//passes between the main workflow and the sub-//
workflow.
<TR>
;if ( noValues || ( 'DueDate' in vals ) )
; checked = "CHECKED"
;else
; checked = ""
;end
<TD HEIGHT="20">
<INPUT TYPE="CHECKBOX" `checked`
NAME="DueDate" ONCLICK="markTaskEditDirty();">
Due Date passes between main
workflow and Sub-workflow
</TD>
</TR>
//Set up a check box to specify whether the project
//code passes between the main workflow and the
//Sub-workflow.
<TR>
;if ( noValues || ( 'ID_Code' in vals ) )
; checked = "CHECKED"
;else
; checked = ""
;end
<TD HEIGHT="20">
<INPUT TYPE="CHECKBOX" `checked`
NAME="ID_Code" ONCLICK="markTaskEditDirty();">
Project Code passes between main
workflow and Sub-workflow
</TD>
</TR>
//Set up a check box to specify whether the customer
//information passes between the main workflow and the
//Sub-workflow.
<TR>
;if ( noValues || ( 'Customer' in vals ) )
; checked = "CHECKED"
;else
; checked = ""
;end
<TD HEIGHT="20">
<INPUT TYPE="CHECKBOX" `checked`
NAME="Customer" ONCLICK="markTaskEditDirty();">
Customer Information passes
between main workflow and Sub-workflow
</TD>
</TR>
;else
//If the Table Values data type is not attached to
//the Sub-workflow task, return a message to the
//creator of the workflow map.
<TR>
<TD>The selected sub-map does not use the
Table Values data type.</TD>
</TR>
;end
<TR>
<TD> </TD>
</TR>
</TABLE>
</TD>
</TR>
//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