Search Type: Posts; User: frederickd
Search: Search took 0.08 seconds.
-
15 Jan 2010 7:21 PM
- Replies
- 289
- Views
- 104,086
That is one of the parts I do not yet know how to do; update the JSON data so that it has [] coming down to match the [] going back up. With one statement on the PHP side the JSON data is being...
-
15 Jan 2010 5:25 PM
- Replies
- 289
- Views
- 104,086
@danh2000
Thank you for the post and the update! I have just installed and there is a difference for me. Here is my JSON data coming from the server.
{"Repairorder":
{"id":"150",... -
12 Jan 2010 9:27 PM
- Replies
- 289
- Views
- 104,086
I don't think I am using an HTML submit button, but maybe I am.
buttons: [{
text: 'Save',
type: 'submit',
handler: function() {
edit_form.form.submit({
... -
12 Jan 2010 9:07 PM
- Replies
- 289
- Views
- 104,086
Understood. So it must be that the data needs to be defined as an array in the JSON data coming from the server so that it can go back the same way.
Right now the data is coming from the server as... -
12 Jan 2010 8:28 PM
- Replies
- 289
- Views
- 104,086
Understood.
Here is the POST from FireBug:
data[Repairorder][advisor_id]1
data[Repairorder][customer_email]fxxx@mac.com
data[Repairorder][dealer_id]1
data[Repairorder][distributor_id]1... -
12 Jan 2010 7:51 PM
- Replies
- 289
- Views
- 104,086
@danh2000
Thank you for taking a look at it. I will try to figure something out. The POST in FireBug from the JavaScript side shows the array elements. Dumping the fields on the PHP side after... -
12 Jan 2010 5:44 PM
- Replies
- 289
- Views
- 104,086
@danh2000
Thank you for taking a look at this. I hope you had a safe return. -
8 Jan 2010 10:18 AM
- Replies
- 289
- Views
- 104,086
@danh2000
Thanks for the tip. Gotta love square brackets. In this case it didn't work for me. I added the trailing [] to the hiddenName field and the existing value in the field did not display... -
7 Jan 2010 8:16 PM
- Replies
- 289
- Views
- 104,086
Did some more scratching around and here is the POST data that is going back to the server:
data[Repairorder][advisor_id]1
data[Repairorder][dealer_id]1
data[Repairorder][distributor_id]1... -
7 Jan 2010 5:37 PM
- Replies
- 289
- Views
- 104,086
This extension is fantastic! It is just what I wanted to eliminate some troublesome checkboxes and be more Web 2.0-ish. Thank you!
I am very close to having my implementation done. My problem is... -
6 Jan 2010 1:15 PM
- Replies
- 623
- Views
- 216,405
Is it confirmed that the extension does NOT work in 3.1? I was about to give it a try, so could use confirmation please.
Thanks! -
5 Jan 2010 11:43 AM
Jump to post Thread: Default Value in ComboBox by frederickd
- Replies
- 3
- Views
- 5,350
Awesome tip! I also learned that one can define the local store variables in-line. Too kewl! This helped me tremendously. I only added a hiddenName to send data to the database and have it...
-
15 Nov 2009 5:25 PM
- Replies
- 26
- Views
- 4,141
Your code was the SIMPLEST that I have seen for the definition and loading of comboBoxes! Very straightforward and easy to understand. Thank you very VERY much!
I plan on publishing these results... -
15 Nov 2009 4:25 PM
- Replies
- 26
- Views
- 4,141
Thanks to some timely help from NOSLOW, this is now totally fixed for the 'add' scenario and the 'edit scenario.
As explained to me by NOSLOW, here is what the issue was with the 'edit' scenario.... -
14 Nov 2009 9:56 PM
- Replies
- 26
- Views
- 4,141
I keep pounding away. In order to get away from all the brackets and stuff, I changed getForm().load to look like this:
// Use .getForm to retrieve information about the form... -
14 Nov 2009 5:10 PM
- Replies
- 26
- Views
- 4,141
Thank you. I will give it a try later tonight...
The brackets in the JSON are put there automatically when CakePHP generates the JSON. I didn't do it explicitly. Each field name has the format... -
14 Nov 2009 3:27 PM
- Replies
- 26
- Views
- 4,141
I tried and was unsuccessful. I put the following code just outside of the form.FormPanel and just before the "new Ext.Window" in the edit logic portion:
// Use .getForm to retrieve... -
14 Nov 2009 3:10 PM
- Replies
- 26
- Views
- 4,141
Sorry it took me a while to respond...
Here is the JSON data being returned for the record being requested:
{"success":"true",... -
14 Nov 2009 1:01 PM
- Replies
- 26
- Views
- 4,141
It is just my implementation of your sample that is most likely incorrect.
I put the dealerStore.on code here:
distributorStore.load();
userStore.load();
var selectedDealerID = ' '; -
14 Nov 2009 12:02 PM
- Replies
- 26
- Views
- 4,141
Okay. Wasn't sure about that. Functionally equivalent, but good to reduce lines.
The dealerStore.load line was formatted by "Online javascript beautifier" so that Mystik doesn't get mad at me. :-? -
14 Nov 2009 10:56 AM
- Replies
- 26
- Views
- 4,141
Thanks to everyone for their help. This is awesome and very nearly complete. Here is what I have.
First the CakePHP in my Advisors controller for the action 'getAllDealers' just in case there are... -
13 Nov 2009 9:25 PM
- Replies
- 26
- Views
- 4,141
Yes, I see that. I need to play around with my CakePHP controller action and retrieve the parameter from the "post" parameter instead of via the URL.
Hmmm... so close. MaƱana.
Thanks for the... -
13 Nov 2009 8:45 PM
- Replies
- 26
- Views
- 4,141
Got the controller action fixed up. Testing on a web page that calls the action, passing a parameter, returns exactly the right JSON data.
Just a simple question then (that reveals my lack of... -
13 Nov 2009 8:11 PM
- Replies
- 26
- Views
- 4,141
Okay... I think I am approaching vague awareness. Makes sense. I am using CakePHP on the server end. I will noodle around in my controller to add a parameter for the action that fetches the dealers...
-
13 Nov 2009 7:54 PM
- Replies
- 26
- Views
- 4,141
Simple is VERY good. I implemented the use of the JsonStore as shown. Kewl! I copied the code over directly for the data store load and the comboBoxes... I did comment out a couple duplicate entries...
Results 1 to 25 of 47
