on 2016 Mar 31 9:36 AM
Dear Experts
I have stored FragmentBookmarks in a special Folder used with selected TreeModel. Now i like to show, if a End-User is clicking on a Folder, all stored FragmentBookmarks in a Listbox element. How i can do that? Thanks for you answers and examples.
Kind regards,
Adrian
Hi Adrian,
To achieve your requirement, in the "On Select" event of your Tree component you would code the following, as an example:
var myFolder = me.getSelectedValue();
var myFragmentBookmarks = Bookmark.FragmentBookmark.getAllBookmarksByFolder(myFolder);
LISTBOX_1.removeAllItems();
myFragmentBookmarks.forEach(function(myBookmark, index) {
LISTBOX_1.addItem(myBookmark.id, myBookmark.title);
});
Regards,
Mustafa.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Adrian,
You're welcome. You can learn more about the "me" functionality in the blog Using me in scripting.
Regards,
Mustafa.
User | Count |
---|---|
59 | |
10 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.