David Grossi
30 Dec 2009, 2:19 AM
Hello,
I'm using the Ext.nd.DominoUI functionality to build the default viewport, but now, I would like to use the left panel to add - for example - a button that will open a view which is not in the initial outline.
The below code is nearly working well : when I click on the button (see the screenshot), it appends a tab containing the desired view... but...
... the documents opened from within this view are not opened as a new tab of the tabpanel.
As I think I've passed the right parameters (viewport, tabPanel, container) to the new Ext.nd.UIView object, I don't see what to do to have these documents opened as a new tab element.
Could you help ?
Here is the code :
Ext.onReady(function() {
nui = new Ext.nd.DominoUI({
uiOutline : {
outlineName: 'Documents'
},
uiView : {
viewName: 'WKF_ByInitiator',
viewTitle: 'WKF by initiator',
count: 50,
showSearch: true
}
});
nav = nui.outlinePanel;
grid = nui.viewContainer;
tab = nui.tabPanel;
var nbutton = new Ext.Button({
text: 'Open another view',
width: 180,
renderTo: 'xnd-outline-panel',
handler: function(){
var myNewView = new Ext.nd.UIView({
viewport: nui.viewport,
container: grid,
tabPanel: tab,
viewName: 'Frais',
count: 30,
renderTo: grid
});
tab.add({
id: 'My new view',
title: 'My new view',
items: myNewView,
closable: true,
layout: 'fit'
})
}
})
});
Post Scriptum : please, note on the screenshot that the total columns add unnecessary decimals with an approximation error. In Lotus Notes, the totals are correct. Is it a well-known bug ?
I'm using the Ext.nd.DominoUI functionality to build the default viewport, but now, I would like to use the left panel to add - for example - a button that will open a view which is not in the initial outline.
The below code is nearly working well : when I click on the button (see the screenshot), it appends a tab containing the desired view... but...
... the documents opened from within this view are not opened as a new tab of the tabpanel.
As I think I've passed the right parameters (viewport, tabPanel, container) to the new Ext.nd.UIView object, I don't see what to do to have these documents opened as a new tab element.
Could you help ?
Here is the code :
Ext.onReady(function() {
nui = new Ext.nd.DominoUI({
uiOutline : {
outlineName: 'Documents'
},
uiView : {
viewName: 'WKF_ByInitiator',
viewTitle: 'WKF by initiator',
count: 50,
showSearch: true
}
});
nav = nui.outlinePanel;
grid = nui.viewContainer;
tab = nui.tabPanel;
var nbutton = new Ext.Button({
text: 'Open another view',
width: 180,
renderTo: 'xnd-outline-panel',
handler: function(){
var myNewView = new Ext.nd.UIView({
viewport: nui.viewport,
container: grid,
tabPanel: tab,
viewName: 'Frais',
count: 30,
renderTo: grid
});
tab.add({
id: 'My new view',
title: 'My new view',
items: myNewView,
closable: true,
layout: 'fit'
})
}
})
});
Post Scriptum : please, note on the screenshot that the total columns add unnecessary decimals with an approximation error. In Lotus Notes, the totals are correct. Is it a well-known bug ?