Server Request Actions - v22-appfactory/appfactory-wiki GitHub Wiki
#Server Actions Maintenance
Server actions allow the configuration of actions that will be taken when making calls to the server to update data.
Simple examples are writing to a log or history table when updating an issue or request or sending an email notification.
NOTE: The current page actions are configured using knowledge of Javascript and will need to be refined to allow non-programmers to configure the actions.

Select the application whose resources will be maintained. Selection of the application will populate the Page Forms select control options.
Select the application page whose resources will be maintained. Selection of the page will populate the Request Action Records datatable.
The record ID.
The type of action to be taken is specified by selecting the action from the 'Actions' select box. Subsequent data is specific to the action selected. Multiple actions are supported for any URL and as many as needed can be specified.
Actions can be specified to occur before or after the URL request processing by checking 'Pre' or 'Post'. One or both checkboxes must be checked.
Actions are associated with server requests by providing the URL for the request. Specifiying a HTTP method or methods will perform the action for requests of the specified method/s. Leaving the Methods field empty will perform the action for all requests to the specified URL. Wildcards can be used when specifying the URL using Regex notation for the wildcard.
The request methods for which the action will be performed. If left blank then the action will be performed for all requests to the URL.
The JSON data that will be used in the server request action.
NOTE: The JSON can be formatted to making editing easier. The JSON structure is checked when clicking the 'REFORMAT' button or clicking SUBMIT.

Will reformat the JSON after changes.
A text field providing more descriptive information about the server request action.
TBD
Creates or updates the application and reloads the datatable. When all required fields are entered the Submit button is enabled.
Cancels or clears the input allowing new records to be entered.
Provides a list of the records in the table using the standard datatable.
Loads the record values in the fields for editing.
Allows the user to confirm and then delete the record.