1. #231
    Sencha - Services Team Stju's Avatar
    Join Date
    Dec 2008
    Location
    Redwood city, California
    Posts
    290
    Vote Rating
    3
    Stju is on a distinguished road

      0  

    Default


    monitorValid issue workaround(as a sidenote-first card must be plain Welcome Text!):
    Code:
    onClientValidation : function(card, isValid)
        {
            //if card 0 , ignore validation! Use validation events only for card it belongs to!
            if(this.currentCard>0 && this.cardPanel.layout.activeItem.id === card.id){
                if (!isValid) {
                    this.nextButton.setDisabled(true);
                } else {
                    this.nextButton.setDisabled(false);
                }
            }else{
                this.nextButton.setDisabled(false);
            }
        },

  2. #232
    Ext User
    Join Date
    Mar 2010
    Posts
    5
    Vote Rating
    0
    CarlosLuiz is on a distinguished road

      0  

    Default File Upload

    File Upload


    I'm trying to get a fileUploadField in the function getWizardData in the 'wizard' class, but it didn´t work.

    someone can help me.

    thanks

  3. #233
    Sencha User charleshimmer's Avatar
    Join Date
    Jul 2008
    Location
    Austin, TX
    Posts
    329
    Vote Rating
    0
    charleshimmer is on a distinguished road

      0  

    Default


    I know several others have commented that the upload form doesn't work with the wizard component, but if I put the exact same upload form inside a normal window it works fine. The error I am getting is that the file was never submitted if I use the wizard component. Any ideas on where the Wizard component could be interfering with the upload form submit?

  4. #234
    Sencha User TheColonel's Avatar
    Join Date
    Dec 2008
    Posts
    4
    Vote Rating
    0
    TheColonel is on a distinguished road

      0  

    Default


    I've been trying to update to 3.2.1 from 2.3.0 and this component was one the the last issues. I've been slamming my head against the wall trying to figure out why the 'close' and 'clientvalidation' events were not getting fired.

    I finally seem to have had a breakthrough. It turns out the card component is checking the card(FormPanel) for the 'bound' property in the 'bindHandler'. This property doesn't seem to be present in the newer FormPanel class.

    I have tentatively instituted a fix that seems to have everything working properly. Just removed that check and all good so far.

    I changed

    Code:
    bindHandler : function()
       {
          if(!this.bound){
             return false; // stops binding
          }
    to
    Code:
    bindHandler : function()
       {
           if(!this.bound){
              // return false; // stops binding
           }
    I also changed the default currentCard to 0 in the Wizard component to 0.

    I did notice that this line was not even present in an earlier version of the component. I'm using the latest version from the ux repository. Hope this helps someone. If anyone could verify that this is legit fix that would be great.

    That change is in the Ext.ux.Wiz.Card component.

  5. #235
    Ext JS Premium Member
    Join Date
    Jan 2010
    Posts
    12
    Vote Rating
    0
    ccrotty is on a distinguished road

      0  

    Default


    Where is the latest source located, the googlecode location or the ux repository?

    In the ux repository, it appears that the Card object has some of the later changes, like in the bindHandler function.

    But the wizard class in the ux.repository is using the Ext.ux.layout.CardLayout() while the googlecode source is using the Ext.layout.CardLayout(). I thought since the changes in 3.X, we should be using the Ext.layout.CardLayout class?

    The googlecode source also has more complete doc/comments.

    Thanks,
    Chris

  6. #236
    Sencha User
    Join Date
    Mar 2007
    Posts
    210
    Vote Rating
    1
    KRavEN is on a distinguished road

      0  

    Default


    Quote Originally Posted by ccrotty View Post
    Where is the latest source located, the googlecode location or the ux repository?

    In the ux repository, it appears that the Card object has some of the later changes, like in the bindHandler function.

    But the wizard class in the ux.repository is using the Ext.ux.layout.CardLayout() while the googlecode source is using the Ext.layout.CardLayout(). I thought since the changes in 3.X, we should be using the Ext.layout.CardLayout class?

    The googlecode source also has more complete doc/comments.

    Thanks,
    Chris
    Now I'm confused. I've been using the google repo but it looks like it's still using Ext.ux.layout.CardLayout(). I've tested and both
    Ext.ux.layout.CardLayout() and Ext.layout.CardLayout() work in Extjs 3.2.

    http://code.google.com/p/ext-ux-wiz/.../src/Wizard.js

  7. #237
    Ext JS Premium Member
    Join Date
    Jan 2010
    Posts
    12
    Vote Rating
    0
    ccrotty is on a distinguished road

      0  

    Default


    Checking again, I manually changed the google code to use the Ext.layout.CardLayout.

    The ux repository was added 12/6/2009 with no apparent updates, while the last google code update occurred on 1/24/2010.
    These last changes to the google repository are not in the ux repository. (These changes are the ones mentioned by the author in http://www.sencha.com/forum/showthre...639#post411639)

    So it appears that the google code repository has the latest updates.

  8. #238
    Ext JS Premium Member
    Join Date
    Jan 2010
    Posts
    12
    Vote Rating
    0
    ccrotty is on a distinguished road

      0  

    Default


    Were you able to solve the problem with the fileuploadfield?

    I am having the same issue as the submit is not transmitting as a multipart-form.



    Quote Originally Posted by charleshimmer View Post
    I know several others have commented that the upload form doesn't work with the wizard component, but if I put the exact same upload form inside a normal window it works fine. The error I am getting is that the file was never submitted if I use the wizard component. Any ideas on where the Wizard component could be interfering with the upload form submit?

  9. #239
    Sencha User
    Join Date
    May 2010
    Posts
    40
    Vote Rating
    0
    yugikhoi is on a distinguished road

      0  

    Default


    Hi, I am just beginner and looking for how to submit form with ext.ux.wiz. I understand that I need to call listeners: {finish : function(){} to get submit. However, with extjs form i normally do
    Code:
    formPanel.getForm().submit({
            url: 'test.jsp',
            method:'POST',
            success: function(f,a){
                Ext.getCmp('myform').close();
                Ext.Msg.alert('Success', "Your form has been successfully added");            
            },
    But i cannot found how to submit form in wizard. Can you show me code to do that?

    Thanks a lot.

  10. #240
    Ext User
    Join Date
    May 2007
    Posts
    5
    Vote Rating
    0
    anestesiadorhvs is on a distinguished road

      0  

    Default


    I´m trying a similar approach that yugikhoi, I'd like lo load default values in wizard cards with a reader (like in a form) and submit then in the same way a form do, calling the method submit.
    Is this possible?
    Thanks in advance

Thread Participants: 96

  1. Animal (2 Posts)
  2. franklt69 (1 Post)
  3. jay@moduscreate.com (1 Post)
  4. Digital God (1 Post)
  5. mystix (4 Posts)
  6. fangzhouxing (3 Posts)
  7. mike1993 (2 Posts)
  8. KRavEN (1 Post)
  9. jsakalos (2 Posts)
  10. Ylodi (1 Post)
  11. Fabyo (2 Posts)
  12. anestesiadorhvs (1 Post)
  13. John Sourcer (1 Post)
  14. kmiyashiro (3 Posts)
  15. anjelika (6 Posts)
  16. cutigersfan (1 Post)
  17. mjlecomte (1 Post)
  18. kevinwu8 (2 Posts)
  19. JEBriggs (3 Posts)
  20. CutterBl (5 Posts)
  21. gelleneu (1 Post)
  22. Spirit (1 Post)
  23. Michelangelo (9 Posts)
  24. wm003 (1 Post)
  25. Juvs (3 Posts)
  26. Mthor (2 Posts)
  27. sean.zhou (2 Posts)
  28. donssmith (3 Posts)
  29. sigaref (1 Post)
  30. ajaxvador (1 Post)
  31. prodigy7 (2 Posts)
  32. mask_hot (2 Posts)
  33. ec-cts (1 Post)
  34. dorgan (2 Posts)
  35. DhakouaniM (1 Post)
  36. Romantik (2 Posts)
  37. franck34 (4 Posts)
  38. sirioz10 (1 Post)
  39. razor (15 Posts)
  40. chalu (2 Posts)
  41. cirvine (2 Posts)
  42. ClemsonJeeper (1 Post)
  43. GOTTMODUS (1 Post)
  44. rnfbr1 (2 Posts)
  45. walldorff (2 Posts)
  46. jlowe (1 Post)
  47. moegal (1 Post)
  48. johnstontrav (1 Post)
  49. mirko (1 Post)
  50. J.B (1 Post)
  51. niaz (1 Post)
  52. Jack_S (2 Posts)
  53. knarz (1 Post)
  54. hatch79 (1 Post)
  55. Eki (1 Post)
  56. accilies (3 Posts)
  57. SamuraiJack1 (1 Post)
  58. gthe (2 Posts)
  59. Scorpie (1 Post)
  60. supercharge2 (1 Post)
  61. lucasmarin (1 Post)
  62. alienwebz (7 Posts)
  63. kellyt (2 Posts)
  64. charleshimmer (20 Posts)
  65. nomdeguerre (3 Posts)
  66. perdar (2 Posts)
  67. agalue (2 Posts)
  68. pablitobs (4 Posts)
  69. jmariani (4 Posts)
  70. wemerson.januario (3 Posts)
  71. mschwartz (2 Posts)
  72. Stju (3 Posts)
  73. TheColonel (1 Post)
  74. lakilevi (1 Post)
  75. roque (2 Posts)
  76. Jangla (8 Posts)
  77. cchic (1 Post)
  78. MH61 (2 Posts)
  79. MasterAM (1 Post)
  80. pezze (8 Posts)
  81. phpfreak (1 Post)
  82. talha06 (1 Post)
  83. swarm (7 Posts)
  84. udalaitz (2 Posts)
  85. esh (1 Post)
  86. reci (1 Post)
  87. ccrotty (3 Posts)
  88. CarlosLuiz (3 Posts)
  89. guyfomi (1 Post)
  90. yugikhoi (1 Post)
  91. drunkmoose (1 Post)
  92. occiso (2 Posts)
  93. slckysr (3 Posts)
  94. samir_ware (1 Post)
  95. eCoast (2 Posts)
  96. wpenton (1 Post)