LoadStartTaskWorkData()
This code sample describes how to load the information about the data type that is required to display the Table Values tab to the initiator of the workflow when they work on the Start step. This script does not load data from the database tables because no values have previously been specified. Instead, it loads information about each workflow attribute field on the Project and Customer pages on the Table Values tab (that is, whether each field is editable, required, or read-only).
Function Dynamic LoadStartTaskWorkData( \ Object prgCtx, \ Record taskInfo, \ Dynamic data, \ Integer holderID ) Dynamic taskData Dynamic retVal = data taskData = taskInfo.FORM retVal.NonEditable = {} retVal.Required = {} //Determine which workflow attribute fields are read-only. Ready- //only fields cannot be edited by the initiator of the workflow. if ( IsDefined( taskData ) ) if ( IsDefined( taskData.NONEDITABLE_TABLE_VALUES ) ) retVal.NonEditable = taskData.NONEDITABLE_TABLE_VALUES end //Determine which workflow attribute fields are required. //Required fields must be edited by the initiator of the //workflow. if ( IsDefined( taskData.REQUIRED_TABLE_VALUES ) ) retVal.Required = taskData.REQUIRED_TABLE_VALUES end end return( retVal ) end