Oct 10, 2013, 9:17 AM
[CLOSED] Print external page in tabs
Hi,
I have a tabpanel where I can add 1-n tabs.
Is there a way to print the content of the selected tab?
I have a tabpanel where I can add 1-n tabs.
<Command Handler="#{WindowTourInfos}.show();addTab(#{TabPanelTourInfos}, record.data.TourNummer,record.data.CustomerTourNumber, 'showInfo.aspx?tourid='+record.data.TourNummer+'');" />
The content of the tab is another aspx page <ext:XScript ID="XScript1" runat="server">
<script>
var addTab = function (tabPanel, id, cid, url) {
var tab = tabPanel.getComponent(id);
console.log(id);
if (!tab) {
tab = tabPanel.add({
id : id,
title : "Tour "+cid,
closable : true,
loader : {
url : url,
renderer : "frame",
loadMask : {
showMask : true,
msg : "Lade Informationen zu Tour " + cid + "..."
}
}
});
tab.on("activate", function (tab) {
var resultGrid = App.TourResultPanel;
var activeGrid = App.GridPanelActiveTours;
var find = activeGrid.store.find('CustomerTourNumber', cid);
if (find != -1) {
//...
} else {
find = resultGrid.store.find('CustomerTourNumber', cid);
if (find != -1) {
resultGrid.getView().select(find);
}
}
});
}
tabPanel.setActiveTab(tab);
}
</script>
</ext:XScript>
Is there a way to print the content of the selected tab?
Last edited by Daniil; Oct 22, 2013 at 2:40 PM.
Reason: [CLOSED]