• Sample code for processing selected documents

    By Bill Whittakers 2 decades ago

    Hi Jason

    Would it be possible for you to provide sample code as a guide for getting started with using the NotesView2.navigator.selected property? It would be very useful to see how to access the unid property of the NotesViewEntry2 class and thereby get to the documents selected.

    Thanks

    Bill

    • Example on processing selected documents

      By Jeremy G Hodge 2 decades ago

      Hi Bill,



      I've included a sample in the categorized view of the new release on how to access the selected documents and process them using an AJAX call to an agent, then refreshing the view. Let me know if you have any questions. See the "increase price" action of the view. (defined in the onLoad event of the $$ViewTemplate for Cars)

      • By Bill Whittakers 2 decades ago

        Thanks Jeremy. I shall have been away. I shall have a look at this as soon as possible.

      • By Bill Whittakers 2 decades ago

        Hi Jeremy,



        Thank you for the example. I have read and understood what you have done. It is very helpful.



        I am not sure why but the first few times I ran it the view did not refresh. So I refreshed it manually with the action button. On the fourth or fifth try it worked, and continues to do so?



        Regards

        Bill



        P.S. I wonder if NotesView2 views could be added to the OpenNTF site to improve its views?

        • Example

          By Jeremy G Hodge 2 decades ago

          Good, I'm glad it helped. I didnt spend alot of time debugging the sample, so i wouldnt be surpised to find a bug. I'll take a look at it here when i get back to working on NotesView in a bit.