View Full Version : Show formPanel Issue

1 Mar 2010, 4:40 PM
In my accordion I have button, clicking on this should show formPanel in South region.

This works fine:

//accordion code

buttons: [{ text: 'Add', handler: addFunction}]

var add = function(record){
var TplMarkup = ['NAME: {name}'];
var tPanel = Ext.getCmp('formPanel');
title = 'Add';
targetTpl.overwrite(tPanel.body, record);
How can I use "new Ext.FormPanel". I tried this but didnt worked.

var TplMarkup = new Ext.FormPanel({ ...
// rest of code....
got "me.html.replace is not a function" error....

any help