get_response_for_update(actions)
Returns a response that, when returned from an IndustraForm action button method, performs the given actions in the client's browser. This is the equivalent to calling update_form (which is not supported by the FormDataSnapshots that are passed into IndustraForm action button methods).
Sample usage:
@classmethod
@industraform_serverside_method_action
@DatabaseWriteLock.no_database_writes
def action_button_update_form(cls, sa_session, data_snapshot=None):
element_data = {'Priority': 'Critical'}
return data_snapshot.get_response_for_update(UpdateElementValues(element_data))
Parameters
-
actions - A single instance or list of j5.IndustraForms.IndustraFormActions.IndustraFormAction.
Returns
-
ResponseString
Raises
-
ValueError - Occurs if one of the provided actions was instantiated with invalid data.