Standard log files: Difference between revisions

405 bytes added ,  09:46, 10 June 2020
m
Line 86: Line 86:
==== The Edit Modal ====
==== The Edit Modal ====


*When you select a line,  two extra buttons (for editing that line and for deleting that line) are enabled
When you select a line, you are in the dataTables software, but the AltEditor software now kicks in generating what it calls a '''Modal'''.  For our purposes, it is probably more friendly to describe it as three buttons and a pop up dialog.
*#'''Edit a line''' button - rather obviously brings up a dialog (known as modal by the '''altEditor''' software that generates it) 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.  
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:
*#*Scroll down and in the footer are two buttons:
#'''Edit a line''' button - rather obviously brings up a dialog (known as modal by the '''altEditor''' software that generates it) with a HTML form
*##''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.
#* You will see you can change the contents of most individual fields as all values are shown in HTML form input fields.  
*##''Close dialog''. You can close this dialog in 3 ways:
#*Scroll down and in the footer are two buttons:
*###clicking that Close dialog button
##''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.
*###Clicking the small '''x''' at the top right
##''Close dialog''. You can close this dialog in 3 ways:
*### Clicking anywhere outside the dialog
###clicking that Close dialog button
*#'''Delete a line''' button - rather obviously brings up a dialog (known as modal by the '''altEditor''' software that generates it)
###Clicking the small '''x''' at the top right
*#* The current contents of each field is shown as a simple list
### Clicking anywhere outside the dialog
*#*Scroll down to the footer and find two buttons:
#'''Delete a line''' button - rather obviously brings up a dialog (known as modal by the '''altEditor''' software that generates it)
*##'''Delete''' - that confirms that you want the api to send back to the mX engine a message delete this line
#* The current contents of each field is shown as a simple list
*##'''Close dialog'''. You can close this dialog in 3 ways:
#*Scroll down to the footer and find two buttons:
*###clicking that Close dialog button
##'''Delete''' - that confirms that you want the api to send back to the mX engine a message delete this line
*###Clicking the small '''x''' at the top right
##'''Close dialog'''. You can close this dialog in 3 ways:
*### Clicking anywhere outside the dialog
###clicking that Close dialog button
###Clicking the small '''x''' at the top right
### Clicking anywhere outside the dialog


There is no need to say any more about deleting a line, but editing a line does deserve a full description in the following sections, although the interface is such you can probably work out what to do without reading what follows!
There is no need to say any more about deleting a line, but editing a line does deserve a full description in the following sections, although the interface is such you can probably work out what to do without reading what follows!
5,838

edits