Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

using js, how to fetch shared bookmark created by another user

I am trying to create an extension to load all the bookmarks into a listbox and apply them. I want the shared bookmarks created by other users to also load into a listbox/dropdown box. For this purpose, I have started studying the documentation. I just came across the below function in the documentation. I was wondering if this will also access the shared bookmarks created by other users or will only access the bookmarks for the current user? If this only access the user specific bookmarks and not the shared bookmarks by other users, can someone please tell me how can I load those other users shared bookmarks also

Example:

var myBookmarkRenderer = {};

var MyDoc;

var MyBookmarks;

var MySelect;

myBookmarkRenderer.Paint = function () {

  

    MyBookmarks = MyDoc.Bookmarks().BookMarks;

    //Set the number of items in the drop down to the number of bookmarks

    MySelect.options.length = MyBookmarks.length;

    //loop through each bookmark

    for (var i = 0; i < MyBookmarks.length; i++) {

        var option = MySelect.options;

        option.text = MyBookmarks.text;

        option.value = MyBookmarks.value;

    }

}

I will really appreciate your help

Regards

Arif

1 Reply
phaneendra_kunc
Partner - Specialist III
Partner - Specialist III

Were you able to find a solution? i have same exact scenario.