projectpane.html
This HTML file sets up the information required to display the Project page when a workflow participant clicks the Project tab on the Table Values page in the work package for an executing workflow.
;;webscript projectpane( Assoc a ) <!-- File: projectpane.html --> ;String selected ;Assoc data = a.Data.Fields <TABLE BORDER="0" CELLPADDING="2" CELLSPACING="1" WIDTH="100%"> //Set up the Project Name row. <TR> <TD bgcolor="#CCCCCC" NOWRAP><FONT FACE="`[WebDsp_Font.SansSerif]`" size="2"> Project Name: </FONT></TD> ;if ( a.IsEditable && !( 'Project_Name' in a.Data.NonEditable ) ) <TD NOWRAP> <INPUT TYPE="TEXT" SIZE="40" NAME="project_name" VALUE="`data.project_name`" ONCHANGE="markTaskEditDirty();"> </TD> ;else <TD>`data.project_name`</TD> ;end </TR> //Set up the Project Code row. <TR> <TD bgcolor="#CCCCCC" NOWRAP><FONT FACE="`[WebDsp_Font.SansSerif]`" size="2"> Project Code: </FONT></TD> ;if ( a.IsEditable && !( 'ID_Code' in a.Data.NonEditable ) ) <TD NOWRAP> <INPUT TYPE="TEXT" SIZE="10" MAXLENGTH="5" NAME="ID_Code" VALUE="`data.ID_Code`" ONCHANGE="markTaskEditDirty();"> </TD> ;else <TD>`data.id_code`</TD> ;end </TR> //Set up the Due Date row. <TR> <TD bgcolor="#CCCCCC" NOWRAP><FONT FACE="`[WebDsp_Font.SansSerif]`" size="2"> Due Date: </FONT></TD> ;if ( a.IsEditable && !( 'DueDate' in a.Data.NonEditable ) ) <TD NOWRAP> ;;call <.htmlPrefix() + 'datefield.html'>( "duedate", data.duedate, TRUE, TRUE ) </TD> ;else <TD NOWRAP>`.FmtDate( data.duedate, True )`</TD> ;end </TR> //Set up the Priority row. Then set up the values that can be //selected from the Priority list box (that is, High, Medium, //or Low). <TR> <TD bgcolor="#CCCCCC" NOWRAP><FONT FACE="`[WebDsp_Font.SansSerif]`" size="2"> Priority: </FONT></TD> ;if ( a.IsEditable && !( 'Priority' in a.Data.NonEditable ) ) <TD NOWRAP> <SELECT NAME="priority" ONCHANGE="markTaskEditDirty();"> ;selected = ( data.priority == 1 ) ? 'SELECTED' : '' <OPTION `selected` VALUE="1">High ;selected = ( data.priority == 2 ) ? 'SELECTED' : '' <OPTION `selected` VALUE="2">Medium ;selected = ( ( data.priority == 3 ) || !IsDefined( data.priority ) ) ? 'SELECTED' : '' <OPTION `selected` VALUE="3">Low </SELECT> </TD> ;else <TD NOWRAP> ;switch( data.priority ) ; case 1 High ;end ; case 2 Medium ;end ; default Low ;end ;end </TD> ;end </TR> ;if ( a.IsEditable ) //Set up the Action row, which contains the Update and Reset //buttons. <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