Announcement

Collapse
No announcement yet.

Reaload Form

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

  • Reaload Form

    Hi, this is the question
    Can i reload a form when a date field was changed??
    Thanks

  • #2
    Re: Reaload Form

    Create an AJAX event on the date field then enter in the code for the field(s) you want to change.

    The form should reload to update changes.

    Regards,
    Scott.

    Comment


    • #3
      Re: Reaload Form

      Just remembered, you can also select the field and select Ajax Processing on the right and check Use Ajax ....

      If you want to change values in other fields, then add code as I mentioned above.

      Regards,
      Scott.

      Comment


      • #4
        Re: Reaload Form

        Thanks a lot for answer.
        I need to fill a select field with a grid lookup when date field change, the grid lookup use the value of date field for filter.
        pd: i don't see ajax processing on the right in my date field.

        Comment


        • #5
          Re: Reaload Form

          My fault. It seems AJAX processing is only available on List Data Types (Select, Radio).

          You may have to just use the approach I first mentioned (AJAX event). If this does not work, then let me know.

          Comment


          • #6
            I have the same scenario,

            I have field date says {BIRTH_DATE}, then I have select field {TOYS}.
            In Select field {TOYS} I have where clause and filter based on Year({BIRTH_DATE}).

            How will Ajax events handle this (reload {BRITH_DATE}), while filed {BIRTH_DATE} has no Ajax activation (Only Select, Check... Has !)

            Comment


            • #7
              Originally posted by lpangemanan View Post
              I have the same scenario,

              I have field date says {BIRTH_DATE}, then I have select field {TOYS}.
              In Select field {TOYS} I have where clause and filter based on Year({BIRTH_DATE}).

              How will Ajax events handle this (reload {BRITH_DATE}), while filed {BIRTH_DATE} has no Ajax activation (Only Select, Check... Has !)
              If you don't have a trigger on birth_date then nothing will happen if you change the field obviously. So you need to apply an (ajax) event to this. Depending on the fieldtype you can trigger a lookup automatically, i.e. if you change a listbox then automatically another listbox will be populated by a query using the first field or use a onchange or onblur (if you don't want an even on each and every key the user types, but the event will fire after leaving the field) and write you program around that.
              Albert Drent
              aducom software netherlands
              scriptcase partner, reseller, support and (turn-key) development
              www.scriptcase.eu / www.scriptcase.nl

              Comment


              • #8
                Thanks for your direction, Could you please advice how can I create ajax event for date field, and what the code inside would like be to reload other fields ?

                Otherwise how will you trick the date field, so when it change it will reload other select type fields.

                Dunke !

                Comment


                • #9
                  See other posts. Please, do not double post.
                  Albert Drent
                  aducom software netherlands
                  scriptcase partner, reseller, support and (turn-key) development
                  www.scriptcase.eu / www.scriptcase.nl

                  Comment

                  Working...
                  X