No warning message for unsaved changes on the Configurator

Technote (FAQ)


Question

No warning message for unsaved changes on the Configurator

Cause

Currently there is no warning message displayed if user accidentally tries to close the Product Configurator screen instead of save..IBM will address the issue in a future release as the fix required is too big to be delivered in a regular HF cycle.

Answer

Following approach can be used as a workaround to show an alert message whenever the close button is clicked. If user presses OK, the popup is closed else it is retained.
.
sfs\sfs\quote\manage\products\orderlinesgrid.js
.
sc.app.common.util.LoadEntityUtils.loadPopupWithClose({
parentScr : this,
field : "abcd",
title : sc.plat.bundle["b_Item_Configurator"], entity : "ItemConfiguratorPopup",
inputObj : inputObj,
closefn: function(){
return confirm("Proceed with close ? Any unsaved changes will be lost.");
} ,
closeable:false,
windowConfig : {
callback : this.configHandler,
windowScope : this
}
});

sfs\sfs\appcommon\core\action\windowcloseaction.js

var close = fn.apply(opt.config.scope||window, [popupData, opt.screen, opt.config.parentScr, opt.win]);
if(close)
opt.win[opt.win.closeAction]();
// else{
// opt.win[opt.win.closeAction]();
// }

Rate this page:

(0 users)Average rating

Document information


More support for:

Sterling Configure, Price, Quote

Software version:

9.1

Operating system(s):

All

Reference #:

1616355

Modified date:

2013-03-31

Translate my page

Machine Translation

Content navigation