• Documents being included in a view in 1.7 incorrectly. The view is working properly in 1.6.

    By Bill Whittakers 2 decades ago

    Hi Jeremy

    Using release 1.7, I have a view that contains entries in "Draft" status which continues to show these entries when they have been "Processed". The underlying views are working as expected in the Notes client , and in the browser with the jsNotesView2.1.6_crunched library they also work. I have not investigated further as yet.

    Regards

    Bill

    • Outdated Documents

      By Jeremy G Hodge 2 decades ago

      I would guess its from the cache replay for saveState()… what is the scenario under which the view is outdated? When you come back to the page with view after leaving, after running a an action or agent on the documents ?



      Thanks



      Jeremy

      • Scenario

        By Bill Whittakers 2 decades ago

        Yes it looks like it is reloading a cache. The scenario is: I open a draft document, do various things to complete it, change the status field that the view selection formula depends on, and save it. Under 2.1.6 it works as expected. What can I do to remove the cache replay?

        • Try this ...

          By Jeremy G Hodge 2 decades ago

          at the end of reset() try calling .. refresh(). See if that helps ….

          • Not sure how to implement your suggestion

            By Bill Whittakers 2 decades ago

            Sorry, you will have to be more explicit please. Where should I try adding refresh()?

            • Refresh()

              By Jeremy G Hodge 2 decades ago

              Sorry to take a bit to get back to you … In the full source code, there is a function called reset() … towards the end of that, you'll see a call to drawRows() ,,, after that line, put in a call to refresh … conceivably, that should refresh the displayed lines …. I havent done any testing on this yet as I havent had a chance, so please report the results. As soon as I can get a chance, I'll take a look at it for an "official" fix …



              Also, you can reset the stateTimeout to a -1 days, and it will clear the state and reload the view from scratch,



              Let me know what you find!



              Thanks



              jeremy

              • By Bill Whittakers 2 decades ago

                Thanks Jeremy. I have been over my head in a project. I shall test this and report back. BW.