Members
-
getFireDanger
-
Description
Description placeholder
Parameters
Name Type Description callbackfunction Function to SETVALUE of field in app
-
getNwsPoint
-
Description
Description placeholder
Parameters
Name Type Attributes Default Description callbackfunction Function to process result from request and enter data into field or variable. Will be passed on to this.getCurrentWeather()
getCurrentWeatherfunction <optional> this.getCurrentWeather Calls this.getCurrentWeather() to complete data request
Returns
-
getCurrentWeather
-
Description
Description placeholder
Parameters
Name Type Description urlstring passed in from this.getNwsPoint()
locstring passed in from this.getNwsPoint()
callbackfunction passed in from this.getNwsPoint()
-
getPlss
-
Description
Description placeholder
Parameters
Name Type Description callbackfunction Function to process result from request and enter data into field or variable.
-
getClosedDateFromRep
-
Description
Returns the most recent date from a repeatable field
Parameters
Name Type Description repDnstring The repeatable field to check for dates
dtDnstring The date field within the repeatable field
Returns
-
requestAppRecords
-
Description
Description placeholder
Parameters
Name Type Attributes Default Description querystring callbackfunction <optional> opt* <optional> Returns
Details
-
requestRecById
-
Description
Description placeholder
Parameters
Name Type Attributes Default Description appIdstring fulcrum app id
qfldsstring <optional> '' fields to pull in request
recIDsArray.<string> array or _record_id to request
callbackfunction callback
opt* <optional> option for callback
Returns
Examples
function enterDisturbanceAreaTypeCallback(rows,dn){ var output = rows.map(x => x.disturbance_area_type) SETVALUE(dn,output.join(', ')) } var opt = 'disturbance_area_types' M.requestRecById(appId,qflds,recIDs,enterDisturbanceAreaTypeCallback,opt)Details
-
enterLinks
-
Description
Description placeholder
Parameters
Name Type Description rowsArray.<{_record_id: string}> rows
opt* data name of field to enter record links into
Returns
Details
-
updateRecord
-
Description
Description placeholder
Parameters
Name Type Attributes Default Description recIDstring _record_id to get
record* callbackfunction callback to modify properties of existing record
indexnumber <optional> index of current record. If being called from array.
endnumber <optional> index of last record in array of records. If being called from array.
completestring <optional> '' Text for alert message when this.updateRecord is complete
Returns
Details
-
getRecord
-
Description
Description placeholder
Parameters
Name Type Attributes Default Description recIDstring _record_id to get
callbackfunction <optional> callback is used by M.updateRecord
indexnumber <optional> index of current record. If being called from array.
endnumber <optional> index of last record in array of records. If being called from array.
completestring <optional> '' Text for alert message when this.updateRecord is complete
Returns
Details
Methods
-
updateMStates( event )
-
Description
Updates the 'states' field with the choice values from the event
Parameters
Name Type Description eventObject The event object containing the value with choice_values
-
checkConnection( error )
-
Description
Description placeholder
Parameters
Name Type Description error* Details