PutMapData()
This code sample describes how to save the information specified on the HTML page that is referenced in the GetMapData() script (that is, t_tablevalues.html). This script saves the settings that the creator of a workflow map specifies when they define whether each workflow attribute field is editable, required, or read-only for a particular workflow task.
function Assoc PutMapData( \ Object prgCtx, \ Dynamic context, \ Dynamic data, \ Record r ) Assoc retVal List nonEditable List required String name String key //Determine whether each workflow attribute field is editable, //required, or read-only. for name in Assoc.Keys( data.Fields ) key = 'TV_' + name if ( IsFeature( r, key ) ) if ( r.( key ) == 'ReadOnly' ) nonEditable = { @nonEditable, name } elseif ( r.( key ) == 'Required' ) required = { @required, name } end end end //Store the information about the workflow attribute fields in an //Assoc named context.Form so that it can be accessed when the //workflow is initiated. if IsUndefined( context.Form ) context.Form = Assoc.CreateAssoc() end context.Form.NONEDITABLE_TABLE_VALUES = nonEditable context.Form.REQUIRED_TABLE_VALUES = required retVal.OK = TRUE return retVal end