LoadTaskWorkData()

This code sample describes how to load information about the Table Values data type from the database tables. This script calls another script named LoadTableValues(), which populates the fields on the Project and Customer pages (based on the workflow map's ID) throughout the execution of a workflow.

		Function Dynamic LoadTaskWorkData( \
			Object 		prgCtx, \
			WAPIWORK 	work, \
			Record 		taskInfo, \
			Dynamic		data )
			
			Dynamic 	taskData

			//Call the LoadTableValues() script.

			Assoc 		retVal = .LoadTableValues( prgCtx, data )
			
			if ( !IsError( retVal ) )
				taskData = taskInfo.MAPTASK_FORM
				
			//Store the read-only values.

			if ( IsDefined( taskData ) )
			if ( IsDefined( taskData.NONEDITABLE_TABLE_VALUES ) )
				retVal.NonEditable = taskData.NONEDITABLE_TABLE_VALUES
			end
			
			//Store the required values.

			if ( IsDefined( taskData.REQUIRED_TABLE_VALUES ) )
				retVal.Required = taskData.REQUIRED_TABLE_VALUES
			end
		end
	end
return( retVal )
end