allows to register field for usage while INSERT/UPDATE/DELETE operation.
<cfset action.add_field(name,value)>
Parameters:
See also:
marks provided data as invalid and cancels default UPDATE processing (invalid record will be highlighted in red bold font).
<cfset action.error()>
Parameters:
See Also:
returns hash of data values that will take part in INSERT/UPDATE/DELETE operations.
<cfset action.get_data()>
Parameters:
returns id of the currently selected record.
<cfset action.get_id()>
Parameters:
returns ID, received after INSERT operation (valid for afterProcessing event only).
<cfset action.get_new_id()>
Parameters:
returns action type of the item.
<cfset action.get_status()>
Returns:
update, insert, delete, error or custom status set through set_status() method Parameters:
none.
See Also:
returns value of a field.
<cfset action.get_value(name)>
Parameters:
See Also:
marks provided data as invalid and cancels default UPDATE processing (invalid record will be highlighted in bold font).
<cfset action.invalid()>
Parameters:
See Also:
allows to remove one of default fields from INSERT/UPDATE/DELETE operation.
<cfset action.remove_field(name,value)>
Parameters:
See Also:
Allows to define custom attribute which will be added to the related action tag in XML response.
<cfset action.set_response_attribute(name,value)>
Parameters:
See Also:
Allows to set string that will be included in response
<cfset action.set_response_text(text)>
Parameters:
See Also:
Allows to set xml-string that will be included in response (if you need to provide just a text - use set_response_text() method).
<cfset action.set_response_xml(text)>
Parameters:
See Also:
sets the status of operation.
<cfset action.set_status(value)>
Parameters:
value - status of operation.
It can be either some predefined value (updated, inserted, deleted, error) or any custom status. Beware, when you set custom status you cancel default data processing.
See Also:
sets value of a field.
<cfset action.set_value(name,value)>
Parameters:
See Also:
confirms that operation has been executed correctly and cancels any default data processing.
<cfset action.success()>
Parameters: