UpdateTableValues()

This code sample describes how to create a script that updates the values that workflow participants specify for each workflow attribute field on the Project and Customer pages. This script is called throughout the execution of a workflow to update the information for the Table Values data type in the database tables.

		Function Boolean UpdateTableValues( \
			Object 		prgCtx, \
			Dynamic 	data )

			//Call the DeleteWorkData() script to delete any previously saved
			//workflow attribute data that has been stored in the database
			//tables.

			Boolean success = .DeleteWorkData( prgCtx, data.WorkflowID )

			//Call the SaveTableValues() script to add the new workflow
			//attribute values to the database tables.

		if ( success )
			success = .SaveTableValues( prgCtx, data.WorkflowID, data )
		end
	return( success )
end