This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Feb 27, 2017, 7:07 PM
68 Posts

this works on a button, still need a solution for closing the tab

  • Category: Dojo and Client Side JavaScript
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 2

Ok, this works in a button:

if (XSP._isDirty()){

  if (confirm ("Are you sure you want to navigate away from this page?")){

    XSP._setDirty(false,"");

    return true

  }else{

    return false;

  }

I still need a good solution for closing the tab or the browser.  enableModifiedFlag will prompt the user, but it will not use the message I enter!

 


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal