7 Replies Latest reply: Jul 6, 2015 1:25 PM by Tushar Suvarna RSS

    easy way of accessing shared bookmarks on server

    Syed Shah

      Hi,

       

      Our customers have requested for an easy way to share the bookmarks between themselves. Sharing the bookmark is the easy part but how to access those shared bookmarks by another user is not so easy or nearly not usable for our customers.

       

      I was wondering if there exists any extension for accessing the shared bookmarks with ease. If I was to write one, where do I start from? Is there any tutorial on how to access objects from a shared file (.shared) using javascript?

       

      Shah

        • Re: easy way of accessing shared bookmarks on server
          jagan mohan rao appala

          Hi,

           

          When you are doing bookmark select

           

          Share Bookmark with other users option, this bookmarks is available for other users

           

          Bookmark.png

           

          Regards,

          jagan.

            • Re: easy way of accessing shared bookmarks on server
              Syed Shah

              Thanks for the reply Mohan. Creating the shared bookmarks is not a problem for me. Its just that accessing the shared bookmark is not so user friendly. One has to go to the repository to access the shared bookmark and then apply. I was looking for a way to make the other users shared bookmarks appear in the same dropdown where the normal bookmarks exist

               

              Its just not so user friendly to go to the repository everytime to apply a bookmark

               

               

               

              Can't we have it in the same bookmarks dropdown where the normal bookmarks exist?

               

                • Re: easy way of accessing shared bookmarks on server
                  jagan mohan rao appala

                  Hi,

                   

                  Check this link

                   

                  qlikcommunity.s3.amazonaws.com/misc/symbols/Qv.Document.Bookmarks.html

                   

                   

                  Regards,

                  Jagan.

                  • Re: easy way of accessing shared bookmarks on server
                    Alexander Karlsson

                    Hey Syed,

                     

                    So this is not exactly what you are asking for but with the QV Power Tools you can extract metadata around the bookmarks and export that into xml or a text file. Then you can read that data back into the data model as a data island to use with actions or selection state in the app.

                     

                    The benefit of doing something similar like this is that you can also monitor and administrate the use of bookmarks in your organization if you would like by just having a look at the data model. There are also more advanced solutions where the Power Tools has been used to extract shared user created bookmarks and then during reload take those bookmarks and convert them into Document bookmarks.

                     

                    You can find the power tools here Power Tools 1.2 for QlikView

                     

                    As for your question, I have not tested this code but I imagine you could do something like this from a extension.

                     

                    var mydoc = Qv.GetCurrentDocument();
                    var bookmarks = mydoc.Bookmarks().Bookmarks
                    
                    //bookmarks should be an array of available bookmarks.
                    bookmarks.forEach(function(bm) {
                     //bm.text > bookmark label
                     //bm.value > bookmark id
                    });
                    
                    //Trigger a bookmark selection with a id
                    mydoc.Bookmarks().SelectBookmark("Document\BM01");
                    
                    //Or by the value property
                    mydoc.Bookmarks().SelectBookmark(bookmarks[0].value);