• Simple value picker and preventCache

    By Pieter JD Malan 1 decade ago

    Hello,

     

    I am trying to use a simpeValue picker pair to populate fields - the second lookup based on the first's value. The problem is as follow:

     

    User clicks on the first picker, makes a selection (OK)

    User ckicks on second picker - correct values returned (OK)

    User clicks on first picker and makes a change (OK)

    User clicks on second picker and list returned is the cached previous answer (Incorrect)

     

    Please see screenshot below - I even tried to use the preventCache parameter, without success.

     

    Anny help would be appreciated ;-)

     

    • Sorry,I don't get the issue

      By Philippe Riand 1 decade ago

      What is the problem? Also, please attach a ready to use NSF that shows the problem

      • Please find sample attached ...

        By Pieter JD Malan 1 decade ago

        Please let me know if you need more information.

        Your help would be much appreciated ... this functionality is used in quite a few places in our application...

        • Not reproducible..

          By Philippe Riand 1 decade ago

          Thanks for you app, as it is easy to run and debug.

          I tried your steps, on 852 and 853 and I'm getting 'b2' in the second lookup. What am I missing? Are you running the latest build?

          • Ah -- it works in FF but not IE ...

            By Pieter JD Malan 1 decade ago

            The application is for a customer who runs on IE only .... I should have tested for compatibility issues!

            HELP ;-)

            • Makes better sense now...

              By Philippe Riand 1 decade ago

              This was not an issue with the onchange event, but with the xhr get. IE in unfortunately caching the result of the web service. I added an expires header and it now works well. I also added a preventCache property to the dojo control, but it is not required.

              The fix will be in the next build.

              • Thank you very much!

                By Pieter JD Malan 1 decade ago


                • Fixed in latest release: Thank you!

                  By Pieter JD Malan 1 decade ago