Hello Experts,
I got a Little question about portable fragment bookmarks.
I created an application where the user has the opportunity to save protable fragment bookmarks to make these bookmarks available for all users. So far so good.
To set the bookmark I use the following code:
var bookmarkname = INPUT_FAV_GLOBAL.getValue(); var groupIdentifier = "TEST_GLOBAL"; Bookmark.PortableFragmentBookmark.saveBookmark(groupIdentifier, GRID_REPORT, bookmarkname);
The name of the bookmark comes from an input field as shown above.
This coding works pretty well and all set bookmarks will be stored on BI platform.
The problem is that I want to show all bookmarks in a drop down menu to select a bookmark for loading it. To achieve this I use the following coding:
var bookmarks = Bookmark.PortableFragmentBookmark.getAllBookmarkInfos(groupIdentifier); bookmarks.forEach(element, index) { DROPDOWN_FAV_GLOBAL.addItem(element.description, element.title); }); INPUT_FAV_GLOBAL.setValue("");
My problem here is that, independing how many bookmarks I will set, only one is displayed in the drop down menu. I want to show ALL bookmarks available for the certain group identifier.
Does anyone has a suggestion for me to solve this issue?
Thank you in advance,
Karsten