Discussion
2
Replies
594
Views
Posted: October 16, 2015
Last activity: October 19, 2015
how to Call Custom activity when closing a tab in tabbed header section in V.62
Hi,
In my application, Work objects are opened as new tab in center panel. when i close a tab "Do close" activity is called is default. I have a requirement where i have to perform a function during close of a tab, but as the "Do-close" is Final, not able to do a "save as" and modify it.
I am nt able to locate the where 'close' button action is defined. could any one help we with it.
thanks in advance
You need to define a hidden feild and call the onchange event of the hidden feild. In onchange call your activity.
I think tab close is same as window close action. Something like below should work.
window.onbeforeunload = function(e) {
document.getElementById('hiddenfieldname').fireEvent('onchange');
}
Make sure that 'hiddenfieldname' is the hidden field in your section/harness. and include the above javascript as a seperate script file in your harness.
All the best.
Thanks,
Shivarama Shetty