Hi Mark,
I have a scenario where, the user needs to autosave the changes in the page, when he switches to the other tab. I have implemented the same approach using selectTabService ..instead of the closeTabService. But that doesn't work . Just switching the tab, I get a Confirmation dialog that my changes are not saved.. and I lose the changes when I press Ok.
var _selectUserTabService;
OpenAjax.hub.subscribe("Noodle.page.load", function(name, page) {
if (!_selectUserTabService) {
console.log("Replacing Noodle.tab.selectUserTab");
_selectUserTabService = Noodle.tabBarContainer.o_tabBar.selectUserTabService;
Noodle.tabBarContainer.o_tabBar.closeUserTabService = function(modelId) {
//TODO perform custom logic
/// alert("implement custom logic here");
page.save();
//optionally invoke the default behavior to present the confirmation dialog
_selectUserTabService(modelId);
};
}
});
But this doesn’t work for me… Please clarify.
Thanks,
Chandra.
#MWS-CAF-Task-Engine#webMethods#webMethods-BPMS