PDA

View Full Version : submit elements from tabs in a tabpanel



ollitsch
20 Aug 2009, 7:17 AM
how can i submit elements from a tab (Idee Basisdaten)? here is a excerpt of my code (buttons in tbar are defined):

Ext.onReady(function(){
Ext.QuickTips.init();

Ext.form.Field.prototype.msgTarget = 'side';

............................................

var progressbar = new Ext.ProgressBar({
text:'Initializing...'
,id:'progressbar'
,width : 300
/*,textEl:'p4text'*/
,cls:'custom'
/*,renderTo:'p4'*/
});

var tabpanel = new Ext.TabPanel({
id: 'tabpanel'
,title : "Idee erfassen"
,region: 'center'
,width : 790
,height : 465
,deferredRender : false
,border : false
,defaults : {autoHeight:true, bodyStyle:'padding:10px'}
,activeTab : 0
,items : [{
xtype : "panel"
,title : "Idee Basisdaten"
,width : 790
,heigth : 465
,layout : 'form'
,items : [{
layout:'column',
border:false,
items:[{
columnWidth:.8
,layout: 'form'
,border:false
,labelWidth : 75
,items: [{
xtype:'textfield'
,name : 'name'
,fieldLabel : 'Name'
,xtype : 'textfield'
,anchor:'95%'
},{
name : 'kategorie'
,fieldLabel : 'Kategorie'
,xtype : 'combo'
,store : ['Neues Produkt',' Neue Produktversion','Neue Produktgeneration']
,forceSelection : true
,typeAhead : true
,triggerAction : 'all'
,style : 'padding-right:5px;'
,emptyText : 'Kategorie wählen'
,anchor:'95%'
},{
xtype :'textarea'
,name : 'beschreibung'
,fieldLabel : 'Beschreibung'
,maxLength : 1000
,width : 300
,height : 150
,emptyText : 'Beschreibung des Produkts'
,anchor:'95%'
}, files]
},{
columnWidth:.2,
layout: 'form',
border:false,
items: [searchButton,emptyField,browseButton]
}]
}]
},{
xtype : "panel"
,title : "Alleinstellungsmerkmal"
},{
xtype : "panel"
,title : "Marketing"
},{
xtype : "panel"
,title : "Prozess"
},{
xtype : "panel"
,title : "IT-Aufwände"
}]
});

var panel = new Ext.Panel({
width: 800
,height: 600
,title: 'Idee erfassen'
,layout:'border'
,renderTo : 'content'
,items: [ {
/*title: 'Workflow Aktivitäten'*/
region:'north'
,width: 790
,tbar : ['->',abortButton,'->',completeButton,'->',submitButton]
},tabpanel, {
title: 'Prozess Status'
,region:'south'
,width: 790
,height: 50
,items : [progressbar]
}]
});

progressbar.render();
});

Colin Alworth
21 Aug 2009, 3:20 AM
This is the GXT forum - can someone move this thread over to Ext?

ollitsch
21 Aug 2009, 3:34 AM
sorry