Standard log files: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
285 bytes added ,  10:16, 10 June 2020
m
Line 92: Line 92:
==== The Edit Modal ====
==== The Edit Modal ====


When you select a line, you are in the dataTables software, but the AltEditor software now kicks in activating what it calls a '''Modal'''.  For our purposes, it is probably more friendly to describe it as three buttons and a pop up dialog.
When you select a line, you are in the dataTables software, but the AltEditor software now kicks in activating what it calls a '''Modal'''.  For our purposes, it is probably more friendly to describe it as three buttons seen above the table, and two pop up dialogs initially sitting hidden at bottom of the web page.


Before you select the line, only the '''Refresh''' button is enabled. That basically just reloads the dataTables part of the web page without a need to reload the whole web page. When you select a line,  two extra buttons (for editing that line and for deleting that line) are enabled:
Before you select the line, only the '''Refresh''' button is enabled. That basically just reloads the dataTables part of the web page without a need to reload the whole web page.  
*'''Edit a line''' button - brings up a dialog with a HTML form
 
** You will see you can change the contents of most individual fields as all values are shown in HTML form input fields.
Whenever you select a line,  the other two buttons (for editing that line and for deleting that line) are enabled:
*'''Edit a line''' button - clicking this reveals the dialog with a HTML form
** In this HTML form there are labels and input fields.
** These labels and inputs will now be filled with text, this includes the current contents of each field in the line (where these appear depends on whether this is first or second edit of the line as described below)
**Scroll down and you will see some footnotes.
**Scroll down and you will see some footnotes.
** Below that in the footer are two buttons:
** Below those footnotes in the footer are two buttons:
*#''Save Edit'' will send the edited line back to the MX engine where the log file is then read into an array, and the relevant array element is replaced by the line received. After that the log file is overwritten from the amended array. After that the log file as a whole is converted back to dataTables format and returned by the api that delivered the table originally.
*#''Save Edit'' will send the edited line back to the MX engine where the log file is then read into an array, and the relevant array element is replaced by the line received. After that the log file is overwritten from the amended array. After that the log file as a whole is converted back to dataTables format and returned by the api that delivered the table originally.
*#''Close dialog''. You can close this dialog in 3 ways:
*#''Close dialog''. You can close this dialog in 3 ways:
Line 104: Line 107:
*##Clicking the small '''x''' at the top right
*##Clicking the small '''x''' at the top right
*## Clicking anywhere outside the dialog
*## Clicking anywhere outside the dialog
*'''Delete a line''' button -  brings up a dialog with the current contents of each field shown as a simple list
*'''Delete a line''' button -  clicking this reveals a dialog where the current contents of each field will be added as a simple list
**Scroll down to the footer and find two buttons:
**Scroll down to the footer and find two buttons:
*#'''Delete''' - that confirms that you want the api to send back to the mX engine a message delete this line
*#'''Delete''' - that confirms that you want the api to send back to the mX engine a message delete this line
5,838

edits

Navigation menu