Search Type: Posts; User: frederickd

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    289
    Views
    127,769
    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...
  2. Replies
    289
    Views
    127,769
    @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",...
  3. Replies
    289
    Views
    127,769
    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({
    ...
  4. Replies
    289
    Views
    127,769
    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...
  5. Replies
    289
    Views
    127,769
    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...
  6. Replies
    289
    Views
    127,769
    @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...
  7. Replies
    289
    Views
    127,769
    @danh2000

    Thank you for taking a look at this. I hope you had a safe return.
  8. Replies
    289
    Views
    127,769
    @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...
  9. Replies
    289
    Views
    127,769
    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...
  10. Replies
    289
    Views
    127,769
    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...
  11. 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!
  12. Replies
    3
    Views
    5,933
    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...
  13. 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...
  14. 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....
  15. 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...
  16. 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...
  17. 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...
  18. Sorry it took me a while to respond...

    Here is the JSON data being returned for the record being requested:

    {"success":"true",...
  19. 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 = ' ';
  20. 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. :-?
  21. 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...
  22. 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...
  23. 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...
  24. 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...
  25. 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
Page 1 of 2 1 2