PDA

View Full Version : [FIXED] Hi when i try to submit form i can not get on.click to work.



intro
2 Sep 2010, 7:41 AM
Hi when i try to submit form i can not get on.click to work..

i try to get button submit


this.SaveAddNewsSubmit.on('click', this.SpremiAddNews, this);

Here is big code :) i dont know why this is not working after update designer...


MyForm9Ui = Ext.extend(Ext.form.FormPanel, {
padding: 10,
itemId: 'FormAddNews',
autoDestroy: false,
id: 'FormAddNews',
initComponent: function() {
this.initialConfig = Ext.apply(this.initialConfig, {
fileUpload: true
});
this.items = [
{
xtype: 'textfield',
fieldLabel: 'Naziv Hrvatski',
anchor: '100%',
itemId: 'NazivHR',
autoShow: true,
ref: 'NazivHR',
id: 'NazivHR'
},
{
xtype: 'textfield',
fieldLabel: 'Naziv Engleski',
anchor: '100%',
itemId: 'NazivEN',
ref: 'NazivEN',
id: 'NazivEN'
},
{
xtype: 'hidden',
fieldLabel: 'Upload slike',
anchor: '100%',
inputType: 'file',
autoWidth: true,
labelStyle: '',
itemId: 'FileUpload',
ref: 'FileUpload',
id: 'FileUpload'
},
{
xtype: 'htmleditor',
anchor: '100%',
height: 150,
fieldLabel: 'Tekst mali hrvatski',
itemId: 'TextHR',
ref: 'TextHR',
id: 'TextHR'
},
{
xtype: 'htmleditor',
anchor: '100%',
height: 150,
fieldLabel: 'Tekst mali Engleski',
itemId: 'TextEN',
ref: 'TextEN',
id: 'TextEN'
},
{
xtype: 'radio',
fieldLabel: 'Odabir veze',
boxLabel: 'Link',
anchor: '100%',
itemId: 'LinkOdabir',
name: 'LinkOdabir',
autoShow: true,
ref: 'LinkOdabir',
id: 'LinkOdabir'
},
{
xtype: 'radio',
boxLabel: 'HTML',
anchor: '100%',
itemId: 'HTMLOdabir',
name: 'HTMLOdabir',
autoShow: true,
ref: 'HTMLOdabir',
id: 'HTMLOdabir'
},
{
xtype: 'fieldset',
title: 'Link upis',
style: 'margin-top:20px;',
hidden: true,
itemId: 'LinkSelect',
ref: 'LinkSelect',
id: 'LinkSelect',
items: [
{
xtype: 'textfield',
fieldLabel: 'Link Hrvatski',
anchor: '100%',
itemId: 'LinkHR',
autoShow: true,
ref: '../LinkHR',
id: 'LinkHR'
},
{
xtype: 'textfield',
fieldLabel: 'Link Engleski',
anchor: '100%',
itemId: 'LinkEN',
autoShow: true,
ref: '../LinkEN',
id: 'LinkEN'
}
]
},
{
xtype: 'fieldset',
title: 'HTML Upis',
hidden: true,
itemId: 'HTMLSel',
ref: 'HTMLSelect',
id: 'HTMLSel'
}
];
this.fbar = {
xtype: 'toolbar',
itemId: 'SaveAddNewstab',
autoShow: true,
enableOverflow: true,
ref: 'SaveAddNewstab',
id: 'SaveAddNewstab',
items: [
{
xtype: 'button',
text: 'Snimite podatke',
itemId: 'SaveAddNewsSubmit',
type: 'submit',
autoShow: true,
formBind: true,
ref: '../SaveAddNewsSubmit',
id: 'SaveAddNewsSubmit'
}
]
};
MyForm9Ui.superclass.initComponent.call(this);
}
});

intro
2 Sep 2010, 3:21 PM
Hi any ideas... i am still working on it ... any ideas after update designer something changed
Thanks in advance

intro
2 Sep 2010, 4:40 PM
I found out that it is diferent code

Before:
xtype: 'form',
padding: 10,
itemId: 'FormAddNews',
fileUpload: true,
ref: 'FormAddNews',
id: 'FormAddNews',
items: [
And now export from designer is

xtype: 'form',
padding: 10,
itemId: 'FormAddNews',
autoScroll: true,
autoShow: true,
ref: 'FormAddNews',
id: 'FormAddNews',
initialConfig: Ext.apply(this.initialConfig, {
fileUpload: true
}),


Mabe is that problem ?

jarrednicholls
3 Sep 2010, 12:19 AM
This is due to the same bug as has been previously reported regarding the initialConfig generation. It is fixed in 1.0.2.14.

Thanks,
Jarred

intro
3 Sep 2010, 12:33 AM
hi do you have manual update because my designer say in 13 all the time...

jarrednicholls
3 Sep 2010, 12:37 AM
Yes we have manual upgrade instructions located here: http://www.sencha.com/forum/showthread.php?103738-Manual-Upgrade-Instructions-to-xds-1.0.2.14

Have you had automatic upgrade troubles in the past? Normally on the startup of the Designer, you will get an update notification of a new version if you are connected to the internet.

Let me know when you have upgraded successfully. Thanks!

intro
3 Sep 2010, 12:44 AM
i open restart cp and now he update with designer.. thanks on fast reply

jarrednicholls
3 Sep 2010, 12:45 AM
Ok perfect, great to hear. Thanks for letting me know.