PDA

View Full Version : Close Panel



dot.Scott
18 Jun 2008, 4:57 AM
I have tried to figure this out as it should be fairly simple. After saving a document, I would like the WQS to close the current panel. The WQS is performing several other functions that maintain status and workflow so a simple @Command([FileCloseWindow]) won't do.

Any help would be greatly appreciated.

Jan K
19 Jun 2008, 12:38 AM
Hi Scott.

You must close the panel in the Submit button or action after the submit call. Like this:



document.forms[0].submit();
var center = parent.MainApp.ui.layout.getRegion('center');
var panel = center.getActivePanel();
if (panel) {
center.remove(panel);
}
/Jan