Hi all,
can someone please shed some light how i can get a dropdown within a template.
i either get [object] or an error
uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLDivElement.appendChild]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: http://localhost/fin/ext-all-debug.js :: anonymous :: line 24866" data: no]
[CODE]
renderElements:function(n, a, targetNode, bulkRender){

this.indentMarkup = n.parentNode ? n.parentNode.ui.getChildIndent() :'';
var checked = n.attributes.checked;
var href = a.href ? a.href : Ext.isGecko ? "" :"#";
// lets say i create a in combo here

var mycombo = new Ext.form.ComboBox({
//name: 'PAYMENT_ID',
//id: 'addnumber_payment_comboedit',
store: new Ext.data.JsonStore({
url: 'ajax/json_payment_terms_combo.php',
autoLoad: false,
fields: [{
name: 'PAYMENT_TERM_ID',
type: 'int'
}, {
name: 'PAYMENT_TERM_DAY',
type: 'string'
}]

}),
//disabled:true,
fieldLabel: 'Payment term',
displayField: 'PAYMENT_TERM_DAY',
valueField: 'PAYMENT_TERM_ID',
hiddenName: 'PAYMENT_ID',
allowBlank: false,
mode: 'remote',

typeAhead: false,

triggerAction: 'all',
emptyText: 'Select a payment type...',
selectOnFocus: true,
width: 50
,applyTo:'valuta'

});


var buf = [
''
,'',this.indentMarkup,""
,''
,''
,''
,'',n.text,"" (n.leaf === true ? 'Tax: EU VAT:NON EU VAT:' : '' )
"
"
,'

'
,"
"
].join('');

var nel;
if(bulkRender !== true