2.81. update
Forces an update of the specified interchange function. Function may be one of the following:
- cart (updates current or named cart)
- process (updates order or search)
- values (updates user-entered fields)
- data (updates database, using current mv_ CGI form variables)
2.81.1. Summary
Parameters: function
- function
- cart
- Upates current or named cart (see name attribute)
- process
- Updates an order or a search page
- values
- Updates user-entered fields
- data
- Updates database, using current mv_ CGI form variables, for example:
- mv_data_table Table to update
- mv_data_key Key into table
- mv_data_fields Fields to update (space or null delimited)
- mv_data_function One of the following:
- delete
- update
- insert
- delete
- etc.
- Updates database, using current mv_ CGI form variables, for example:
- cart
- name
- Cart name to update (if 'function=cart')
- Default: current cart
Must pass named parameter interpolate=1 to cause interpolation.
Invalidates cache: YES
Called Routine:
ASP-like Perl call:
$Tag->update( { function => VALUE, } ) OR $Tag->update($function, $ATTRHASH);
2.81.2. Description
Forces an update of the specified interchange function. Function may be one of the following:
- cart (updates current or named cart)
- process (updates order or search)
- values (updates user-entered fields)
- data (updates database, using current mv_ CGI form variables)