Announcement

Collapse
No announcement yet.

[SOLVED] Ajax event bug

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [SOLVED] Ajax event bug

    I KNOW I am not the only one with this issue.

    When you create a new ajax event, even if you select a field as a parameter... the list wont appear in the screen you are coding the event and... the actual field is not passed as a parámeter.

    you can use the {field} method but ONLY IF SUCH FIELD IS VISIBLE. otherwise the field is not available.


    An error appear in scriptcase with a

    "invalid parameter in foreach"


    I would love this to be fixed.


    Regards


  • #2
    this is the error message


    Invalid argument supplied for foreach() | Script: scriptcase8/devel/class/page/nmPageEvent.class.php linha: 900

    Comment


    • #3
      Originally posted by kafecadm View Post
      I KNOW I am not the only one with this issue.

      When you create a new ajax event, even if you select a field as a parameter... the list wont appear in the screen you are coding the event and... the actual field is not passed as a parámeter.
      Wich list?

      you can use the {field} method but ONLY IF SUCH FIELD IS VISIBLE. otherwise the field is not available.

      An error appear in scriptcase with a

      "invalid parameter in foreach"


      I would love this to be fixed.


      Regards
      Code:
      onAjaxClick event for field {myfield1}
      echo {myfield2}; //this field is hidden
      It's working as expected. Did you cleaned your tmp folder, browser cache and so on?
      /Giuseppe

      Professional Scriptcase Services
      Some Customers opinions

      Comment


      • #4
        Ok, I understand, I replicated your problem.

        This don't works, returning undefined
        Code:
        onAjaxClick event for field {myfield1}. Pass as param {fieldID}, {fieldID is hidden}
        echo {fieldID}; //this field is hidden
        But this works for me:
        Code:
        onAjaxClick event for field {myfield1}. {fieldID is hidden}
        echo {fieldID}; //this field is hidden
        /Giuseppe

        Professional Scriptcase Services
        Some Customers opinions

        Comment


        • #5
          Thank you... so bottom line when I create the ajax event I must avoiid passing the field as a parameter right?.

          Comment


          • #6
            I've tried what you suggested Gui... and its not working... only if the field is on the right when you select them in the field possitioning option.

            Regards
            Attached Files

            Comment


            • #7
              Can your share with ne the app/project and DB privatelly?
              /Giuseppe

              Professional Scriptcase Services
              Some Customers opinions

              Comment


              • #8
                I found what the confusion is gui... and I get now what you say:

                Firstly the fields have a "Hidden" option inside their properties, wich is not the same as field possitioning which I'm using.. if take the field to the right inside "field possitioning" I'm enabling the field for the generated form. if not then not even the variable is generated.

                I added the field to the form and set it to hidden... until then it worked.

                Regards

                Comment


                • #9
                  One more thing... this is nothing more than a WORKAROUND.. but not a solution... scriptcase is bugged and a hotfix is required. I think We all can agree to that.

                  Regards

                  Comment


                  • #10
                    Hello,

                    This problem has been reported to our development team.




                    ------------------------------------------------------------
                    I reported this case for you, Cavadinha.
                    Best Regards,
                    John L. Santos

                    Bug Tracker Team
                    NetMake - IT Solutions

                    Comment


                    • #11
                      Most appreciated.

                      Regards

                      Comment


                      • #12
                        Hello,

                        This problem was solved in our last release, 8.1.043.

                        --
                        Best regard,
                        Netmake team

                        Comment


                        • #13
                          Thank you so much for your time and effort guys.

                          Regards

                          Comment


                          • #14
                            Hi,

                            After update i still have problem with this error "Invalid argument supplied for foreach() nmPageAppAjaxEventNew.class.php" and for anyone who have this situation try this :
                            - in grid go to "Field positioning" and press SAVE, now you go back to "New Ajax Event" and all field are there now in first drop down.

                            This is my solution until Scriptcase solve this.
                            Note : I already try with clear browser chache,delete files from tmp,reset apache..

                            Regards

                            Comment

                            Working...
                            X