Fellow programmers,
I have the following problem. I am adding tbars to panels in an application. Those tbars must contain datefields. If the 'genera' period selector is used, I must write the selected dates in those datefields. But it is impossible to access the tbars from outside. The method panel.getTbar() doesn't seem to exist and the tbars of panels are actually shown as null.
For example:
Code:
new Ext.Panel({
width: '100%',
title: 'BOVEN',
layout: {
type: 'hbox',
},
defaults: {
flex: 1,
height: '100%'
},
items: [
{
xtype: 'kpi.scoresByMonth',
id: 'ccKpiScoresByMonth',
tbar: [
{ text: 'BUTTON'}
]
},
{
xtype: 'kpi.contractRevenuesByMonth',
id: 'ccKpiContractRevenuesByMonth'
}
],
style: {
'border': '4px solid red'
}
})
I can look up the component - ccKpiScoresByMonth - by its id, and it is found. The debugger shows it with properties and the right id. But the tbar is null and getTbar() doesn't work at all. I have been stuck at this for hours! Does anybody have any clue where this can possible come from?
Thanks in advance for any help!