Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    #16
    Any news on this topic?

    Comment


      #17
      You still haven't provided code to analyze and we're having trouble understanding what issue you perceive here.

      A *single* CanvasItem knows when the value is applied because of the showValueHandler.

      If there's an interdependency between two or more fields, we would expect you to create a subclass of DynamicForm to handle this. There, you could have your own version of setValues() that all of your code calls.

      Are you saying you'd like to see an event fired in this circumstance so you don't have to have your own version of setValues()?

      Comment


        #18
        I use the Value Manager to set the values. I tried to override the form.setValues() method but was not called.

        Comment


          #19
          setValues() cannot be overridden, we were suggesting creating your own variant of setValues() (called something else) which your code then consistently calls.

          So you're saying you want to create this behavior on individual DynamicForms, but also use them in a ValuesManager, so calling your own variant of setValues() won't work for this scenario?

          Comment


            #20
            Yes. I don't call setValues directly on the inner form.

            Comment


              #21
              Any news on this?

              Comment


                #22
                It's assigned to an engineer - should be available within a few days

                Comment


                  #23
                  In fact, it's there now and will be present in builds dated July 5 or later

                  Comment


                    #24
                    Could you please explain what was added?
                    Thanks,
                    Mihnea

                    Comment


                      #25
                      DynamicForm.addValuesChangedHandler()

                      Comment


                        #26
                        That method doesn't exist in smartgwtpower-3.1p.2013-07-05.

                        Comment


                          #27
                          Yes, sorry - we meant July 6, since the changes were only made today, well after the July 5 autobuilds started running.

                          Comment


                            #28
                            Upgraded to smartgwtpower-3.1p.2013-07-07.

                            I tested the new handler: DynamicForm.addValuesChangedHandler().

                            It is triggered when I call form.setValues() but not when I call valueManager.setValues(). As I said from the beginning of the thread I need to work with the value manager.

                            Comment


                              #29
                              Ok, this is now added - as of builds of all version 3.1 and later dated July 11, DynamicForm.valuesChanged() will fire as a result of a call to valuesManager.setValues(), *if* the member form actually receives any updates

                              Comment

                              Working...
                              X