Prompt user to save changes before tab or screen change - HxGN EAM - 12.1 - Feature Briefs - Hexagon

HxGN EAM Custom Framework

ft:locale
en-US
Product
HxGN EAM
Search by Category
Feature Briefs
HxGN EAM Version
12.1

Sample code

This message needs to be passed to EAM as soon as you know a form field, or some other condition has marked your screen dirty. It's also up to the custom application to reset the dirty flag when the form goes from a dirty state to a clean state.

{

messageName: 'setDirtyFlag',

value: true

}

  • In the usage of above scenario, setDirtyFlag, first it will call onload function in user_accounts_tab1

    While opening the screen Window.onload function in the user_accounts_tab1 will be called

  • After that it calls setExternalDirtyFlag function in user_accounts.js

  • While leaving the screen window.onunload function in user_accounts_tab1 will be called

Notes for development environment

  • If it was a Java file change then you should copy the new class file into below location to affect the changes and restart the HxGN EAM service.

    <EAM_HOME>\jboss\standalone\deployments\mp_subsystem.ear\sampleApp.war\WEB-INF\classes\com\dstm\custom\action\account

  • If it was a JSP change then you should copy the new JSP file into below location to affect the changes, and then log out and log in to EAM.

    <EAM_HOME>\jboss\standalone\deployments\mp_subsystem.ear\sampleApp.war\example

  • If it was a JS change then you should copy the new JS file into below location to affect the changes and restart the HxGN EAM service.

    <EAM_HOME>\apache\sampleApp.war\javascript