Just to keep Vikas happy, here's an example showing a modal window, with an update event to refresh the calling page.
This time, the edit link attributes are:
onClick="Ext.app.PopupWindow({url: this.href, height: 450},4009224866130853); return false;"
The function is:
Ext.app.PopupWindow = function (config,regionId) {
var w = new Ext.ux.PopupWindow(config);
w.on({
'close': {
fn: function () {
/**
* Refresh using Apex call
*
* NOTE: 1. Assumes a "classic" report with Partial Page Refresh enabled
*
* 2. Doesn't deal with pagination - an exercise for the reader
*
*/
new Ext.LoadMask('report_' + regionId + '_catch', {removeMask: true}).show();
$a_report(regionId,'1',null,'1');
}
}
});
w.show();
}
The popup form includes the following javascript in it's success message:
Action Processed.
<script type="text/javascript">parent.Ext.WindowMgr.getActive().close();</script>
Ditto for the cancel button.
The custom component js is not minified so it is readable. See popup-window.js.