customerpane.html
This HTML file sets up the information required to display the Customer page when a workflow participant clicks the Customer tab on the Table Values page in the work package of an executing workflow.
;;webscript customerpane( Assoc a ) <!-- File: customerpane.html --> ;Assoc data = a.Data.Fields.Customer ;Boolean isEditable = ( a.IsEditable && !( 'Customer' in a.Data.NonEditable ) ) <TABLE BORDER="0" CELLPADDING="2" CELLSPACING="1" WIDTH="100%"> //Set up the Customer Name row. <TR> <TD bgcolor="#CCCCCC" NOWRAP><FONT FACE="`[WebDsp_Font.SansSerif]`" size="2"> Customer Name: </FONT></TD> ;if (isEditable ) <TD NOWRAP> <INPUT TYPE="TEXT" SIZE="40" NAME="name" VALUE="`data.name`" ONCHANGE="markTaskEditDirty();"> </TD> ;else <TD>`data.name`</TD> ;end </TR> //Set up the Address 1 row. <TR> <<TD bgcolor="#CCCCCC" NOWRAP><FONT FACE="`[WebDsp_Font.SansSerif]`" size="2"> Address1: </FONT></TD> ;if ( isEditable ) <TD NOWRAP> <INPUT TYPE="TEXT" SIZE="40" NAME="addr1" VALUE="`data.addr1`" ONCHANGE="markTaskEditDirty();"> </TD> ;else <TD>`data.addr1`</TD> ;end </TR> //Set up the Address 2 row. <TR> <TD bgcolor="#CCCCCC" NOWRAP><FONT FACE="`[WebDsp_Font.SansSerif]`" size="2"> Address2: </FONT></TD> ;if ( isEditable ) <TD NOWRAP> <INPUT TYPE="TEXT" SIZE="40" NAME="addr2" VALUE="`data.addr2`" ONCHANGE="markTaskEditDirty();"> </TD> ;else <TD>`data.addr2`</TD> ;end </TR> //Set up the City row. <TR> <TD bgcolor="#CCCCCC" NOWRAP><FONT FACE="`[WebDsp_Font.SansSerif]`" size="2"> City: </FONT></TD> ;if ( isEditable ) <TD NOWRAP> <INPUT TYPE="TEXT" SIZE="40" NAME="city" VALUE="`data.city`" ONCHANGE="markTaskEditDirty();"> </TD> ;else <TD>`data.city`</TD> ;end </TR> //Set up the State row. <TR> <TD bgcolor="#CCCCCC" NOWRAP><FONT FACE="`[WebDsp_Font.SansSerif]`" size="2"> State: </FONT></TD> ;if ( isEditable ) <TD NOWRAP> <INPUT TYPE="TEXT" SIZE="40" NAME="state" VALUE="`data.state`" ONCHANGE="markTaskEditDirty();"> </TD> ;else <TD>`data.state`</TD> ;end </TR> //Set up the Zip Code row. <TR> <TD bgcolor="#CCCCCC" NOWRAP><FONT FACE="`[WebDsp_Font.SansSerif]`" size="2"> Zip Code: </FONT></TD> ;if ( isEditable ) <TD NOWRAP> <INPUT TYPE="TEXT" SIZE="15" NAME="zip" VALUE="`data.zip`" ONCHANGE="markTaskEditDirty();"> </TD> ;else <TD>`data.zip`</TD> ;end </TR> //Set up the Phone row. <TR> <TD bgcolor="#CCCCCC" NOWRAP><FONT FACE="`[WebDsp_Font.SansSerif]`" size="2"> Phone: </FONT></TD> ;if ( isEditable ) <TD NOWRAP> <INPUT TYPE="TEXT" SIZE="20" NAME="phone" VALUE="`data.phone`" ONCHANGE="markTaskEditDirty();"> </TD> ;else <TD>`data.phone`</TD> ;end </TR> //Set up the Fax row. <TR> <TD bgcolor="#CCCCCC" NOWRAP><FONT FACE="`[WebDsp_Font.SansSerif]`" size="2"> Fax: </FONT></TD> ;if ( isEditable ) <TD NOWRAP> <INPUT TYPE="TEXT" SIZE="20" NAME="fax" VALUE="`data.fax`" ONCHANGE="markTaskEditDirty();"> </TD> ;else <TD>`data.fax`</TD> ;end </TR> //Set up the Action row, which contains the Update and Reset //buttons. ;if ( isEditable ) <TR> <TD bgcolor="#CCCCCC" NOWRAP><FONT FACE="`[WebDsp_Font.SansSerif]`" size="2"> `[WebDoc_HTMLLabel.Action_]` </FONT></TD> <TD> <INPUT TYPE="BUTTON" VALUE="`[WebDoc_HTMLLabel.UpdateButtonLabel]`" NAME="IgnoreMe" ONCLICK="SubmitMyPage();"> <INPUT TYPE="RESET" VALUE="`[WebDoc_HTMLLabel.Reset]`"> </TD> </TR> ;end </TABLE> ;;end