Standard log files: Difference between revisions

m
Line 87: Line 87:


*When you select a line,  two extra buttons (for editing that line and for deleting that line) are enabled
*When you select a line,  two extra buttons (for editing that line and for deleting that line) are enabled
*#'''Edit a line''' button - rather obviously brings up a dialog (known as modal by the '''altEditor''' software that generates it) showing all fields and letting you change the contents of most individual fields. 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
*#* You will see you can change the contents of most individual fields as all values are shown in HTML form input fields.  
*#*Scroll down and 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 93: Line 95:
*###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 - rather obviously brings up a dialog (known as modal by the '''altEditor''' software that generates it) showing all fields and when you scroll down in the footer you find two buttons:
*#'''Delete a line''' button - rather obviously brings up a dialog (known as modal by the '''altEditor''' software that generates it)
*#* The current contents of each field is shown as a simple list
*#*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
*##'''Close dialog'''. You can close this dialog in 3 ways:
*##'''Close dialog'''. You can close this dialog in 3 ways:
5,838

edits