PDA

View Full Version : Combobox "hiddenName" does not appear in POST variable.



extjs.mscit
26 Sep 2013, 8:04 AM
I set combo.hiddenName (http://docs.sencha.com/extjs/4.1.3/#!/api/Ext.form.field.ComboBox-cfg-hiddenName) = "name_value" and then submit form using "Post" method.
But server side, when i check my $POST variable, It does not have any variable called "name_value".

What is the use of hiddenName then??

Any suggestion??

thanks.

ettavolt
29 Sep 2013, 9:57 PM
Doc says 'regular form submit' - that is POST handled by <form> element itself.

extjs.mscit
30 Sep 2013, 12:28 AM
Yes, and I submit form in following way, and It is regular way to submit.
where form is


form = win.down('form').getForm();

And submission as below.


form.submit({
method: "POST",
url: "formSubmit.json",
clientValidation: false,
success: this.submitSuccess,
failure: this.failureHandler,
scope: this,
waitTitle: "Please wait.....",
waitMsg: "Submission in process, please wait."
});


Even thou, I am not getting combobox value.

ettavolt
30 Sep 2013, 4:30 AM
A <form> element is not a Form component.

extjs.mscit
30 Sep 2013, 4:38 AM
Then how to declare <form> element and submit form regularly.
I would be great, if you can provide some working example.

ettavolt
30 Sep 2013, 4:42 AM
Does ordinary 'name' config work for a combo?

extjs.mscit
30 Sep 2013, 4:57 AM
I am migrating from 3.4 to 4.1, And my whole system is ready working on hidden_name property. So I prefer to use hidden_name only, which will save my time and make it quicker. One I do release, I can put this issue on suggestion. But not now.

ettavolt
30 Sep 2013, 10:06 AM
What for do you migrate? I'm afraid you won't get anything useful from Ext4. Not to mention it's tenfold (or more) slowness compared to Ext3.