Hey,
I have a set of stacked panels. All in which have the bbar. There is a bbar variable I have set that builds a bunch of buttons (options) for the user. It will always be the same for each panel, I do not want to replicate code, so Im not going to name a variable bbar2, bbar3, ECT with the same code. The first panel with bbar works fine, but anything after that it doesnt. Cisco Developer Community - Substitution Window displays the same :: 2 posts - 2 authors - Last post: Oct 13Substitution Window displays the same variable name multiple times. Every time I use a Data tab of an element to assign a new value to one Session Data variable, that variable is added again to the display of http://developer.cisco.com/c/message_boards/find_message?messageId=1660604HOME |
Here is the code...
tbbar.. the var that needs to be used multiple times
var tbbar = new Ext.Toolbar({
cls: 'toolbar',
items: [
{
text: 'Tenant History'
},{
text: 'Edit Tenant'
},{
text: 'Add New Meter'
},{
text: 'Add Existing Meter'
},{
text: 'Inactivate Tenant'
}
]
})
the code that calls the tbbar
var tenant1 = new Ext.Panel({
layout: 'column',
defaults: {border: false, columnWidth: .5},
title: 'Tenant 1',
collapsible: true,
monitorResize: true, Why is this query not editable? - dBforums:: Nov 6, 2009 There are multiple records on one side joined to one on the other. . any functions you might be calling would be called multiple times. based on the 1st recordset, etcuntil I set it up to meet the needs. Is there a way to integrate variable usage like this into the query designer? http://www.dbforums.com/microsoft-access/1650013-why-query-not-editable.htmlHOME |
items: [
{
contentEl: 'tenantLeft'
}, {
contentEl: 'tenantRight'
}
],
bbar: tbbar
});
var tenant2 = new Ext.Panel({
layout: 'column',
defaults: {border: false, columnWidth: .5},
title: 'Tenant 2',
collapsible: true,
monitorResize: true,
items: [
{
contentEl: 'tenantLeft'
}, {
contentEl: 'tenantRight'
}
],
bbar: tbbar
});
Help Please!
Cheerio,
Paul
because each toolbar represents actual elemts in the html markup, you need to have separate toolbars. however, you can reuse the config object: Chi-Square Tests: Statnotes, from North Carolina State University :: Jan 14, 2009 For each of k categories of a control variable (called the The stratification variable need not be ordinal but it is There is a control effect if at least one subtable is Use of multiple control variables is possible. cell is the column expectation times the row expectation times n. http://faculty.chass.ncsu.edu/garson/PA765/chisq.htmHOME |
var tbbarCfg = {
cls: 'toolbar',
items: [
{
text: 'Tenant History'
},{
text: 'Edit Tenant'
},{
text: 'Add New Meter'
},{
text: 'Add Existing Meter'
},{
text: 'Inactivate Tenant'
}
]
}
var tenant1 = new Ext.Panel({
layout: 'column',
defaults: {border: false, columnWidth: .5},
title: 'Tenant 1',
collapsible: true,
monitorResize: true,
items: [
{
contentEl: 'tenantLeft'
}, {
contentEl: 'tenantRight'
}
],
bbar: new Ext.Toolbar(tbbarCfg)
});
var tenant2 = new Ext.Panel({
layout: 'column',
defaults: {border: false, columnWidth: .5},
title: 'Tenant 2',
collapsible: true,
monitorResize: true,
items: [
{
contentEl: 'tenantLeft'
}, {
contentEl: 'tenantRight'
}
],
bbar: new Ext.Toolbar(tbbarCfg)
});
actually, i believe it can even be simplified further, as the docs state the the 'bbar' config option just needs a valid toolbar config object.
Hey,
Thanks, that fixed it!
Cheerio,
Paul
Get Smart About Monitoring Virtual Machines
Microsoft Gets Ex-Streamly Cozy with U.K.'s MediaWave
|