1
0
-1

Hi there,

 

I am using a multi-page form, one page contains an advanced grid which call a plugin of mine when storing.

The problem I have is that the store only happens when I move to another page. I need the store to be done when I validate the current page.

 

Note that on my multi-page form I have these options :

 

Partially store form when page changed? Yes.
Store main form data when partial storing is enabled? Yes.
Cheers,
Matthieu.
    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      OK sorry, I want to produce the same effect that partial storing : when moving from a tab to another but without changing tab. 

      1. Anders

        Do you mean you want to store the data even if it fails the validation?

      2. RIBAUCOURT Matthieu

        No, I mean that I have a multi-page form with several tabs. In one of the tab, the form is a grid containing objects of another form (I will call it the subform). I want to trigger the store of these objects when creating, deleting, updating. The action triggered is to launch a plugin I did because I need to do some updates of another tables in database. I put a message using "System.out.println();" to know when the store is called in several places (store binder of the form, the subform, sub-elements of the subform) and my conclusion is that it is called when the user change the tab. The problem is that I want the changes to appears in the data grid when the submit on the subform is done because the user can see data which is not updated ...

      3. Anders

        I believe grid data is only stored when a form is submitted. In a multipage form the current form is submitted when saving the form or changing the tab. You could perhaps try using some custom JavaScript to simulate submitting the form to trigger the storing.

      4. RIBAUCOURT Matthieu

        I think the problem is that in my multipage form my page is a grid which contains subforms.Each subform contains 2 grids as well. I think when I submit the subform Joget calls the store of the element parent and don't store the data. I will go on looking for a javascript solution ...

      CommentAdd your comment...
    2.  
      1
      0
      -1

      Hi, I am afraid I do not understand the question fully.

      The problem I have is that the store only happens when I move to another page. I need the store to be done when I validate the current page.

      Doesn't the validation only happen when you move to another page or submit the form? 

       

        CommentAdd your comment...