
pre adding the reload function to whatever function is already in the onClick event of the exit button $('#main_table_grid', parent.document).contents().find('#reload_top').click() ĭocument.addEventListener('DOMContentLoaded', function() triggering a click on the grid reload button On the onScriptInit event of the modal form app: echo " If you have the reload button in the grid, your JS function on the app form could trigger a click on it just before exiting via the standard SC exit button (assuming the exit button is on top of the form, if it doesn’t work, all other elements names should be double checked). Note that the script runs successfully, creates the New Incident, and completes all transactions.The only way I know, is to create a JS function that will trigger e reload of the parent iframe containing the grid. The 500 ms delay allows time for the next action after the DOM Script execution. The context of New Incident is in Window 2.
Edit the Delay After Execution property by adding 500 ms Delay msec. In the Script Property Editor, under Context field, enter a value of 2 for Window. This step allows you to save and create the New Incident as performed by the JavaScript steps. Move Save DIV from Action 5 to Action 4, below the DOM Script. Click Yes in the confirm delete dialog. Delete the following items from Action 4 by right-clicking each item and selecting Delete:. Repeat step 6 until DOM Script is in the first line of Action 4. In the Script Viewer, right-click DOM Script and select Move Up to move this line up in Action 4. key to open its documentation (default shortcut key is F1) New feedback form. fire the change event to dirty the fieldĮ = document.getElementById('arid1000000000') Į = document.getElementById('arid1000000163') Į = document.getElementById('arid1000000162') Į = document.getElementById('arid1000000164') a browser extension to make working with scriptcase simpler and even more. Var e = document.getElementById('arid303530000') When you first open a form, the following events occur in this order: The Close event occurs after the Unload event, which is triggered after the form is closed but before it is removed from the screen.
Copy the following code snippet into the Advance Scripting window. The Open event occurs before the Load event, which is triggered when a form is opened and its records are displayed. In Script Property Editor, select the ellipses to open the Advance Scripting window. From the Script Viewer, Action 4, select DOM Script. Modify the DOM Script to allow substitution of recorded actions in the New Incident form as follows:. The Script Viewer reflects this selection by adding DOM Script as the last line in Action 4. From the Script Viewer, in Action 4, right-click the_4.AR System Customizable Home Page (Search) Incident (New)_ action, and select Add DOM Script. Replace all the recorded actions in new incident form with an equivalent set of actions in a JavaScript. To resolve the playback issue for case study C To correct this issue, replace all of the necessary actions in the recorded New Incident form with an equivalent set of actions in a JavaScript by using the Script Viewer and the Script Property Editor.