Skip to Content
0

Book marking issue in design studio

Dec 21, 2017 at 11:27 AM

108

avatar image

HI All,

I have an application created with Bookmark feature which was working fine few months back.

Now the issue is- Bookmarks aare getting saved. when i try to load a bookmark, the data is getting changed according to the bookmark selected.But the dropdown filters are not showing the selected filters.

My application has year dropdown.

I select 2017 and book mark it as 2017data.

i change the filter to 2016 and bookmark it as 2016data.

When i choose the bookmark 2017data, i can see the data displayed is for 2017. but the dropdown shows"All", it should show "2017".

IS there any one facing similar issue.

please share you ideas on the issue.

Thanks,

Swapna

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Mustafa Bensan Dec 21, 2017 at 12:17 PM
0

Hi Swapna,

I assume you are using Fragment bookmarks since you are referring to Design Studio bookmarks and not Lumira Designer bookmarks, is that right? If that is the case, is your Dropdown component included in the container component assigned to the Fragment bookmark?

Mustafa.

Show 4 Share
10 |10000 characters needed characters left characters exceeded

HI Mustafa,

I am using standard bookmark.

0

Can you post the script code you are applying for the Year Dropdown as well as for saving a bookmark?

0

HI Mustafa please find the code below for Loading and Saving the bookmarks.

For Saving the bookmark:

var book = INPUTFIELD_1.getValue();

Bookmark.saveBookmark(book);

var bookmarks = Bookmark.getAllBookmarks();

bookmarks.forEach(function(element, index) {

DROPDOWN_1.addItem(element.name, element.text);

});

INPUTFIELD_1.setValue("");

For Loading the Bookmark:

Bookmark.loadBookmark(DROPDOWN_1.getSelectedValue());

var bookmarks = Bookmark.getAllBookmarks();

DROPDOWN_1.removeAllItems();

bookmarks.forEach(function(element, index) {

DROPDOWN_1.addItem(element.name, element.text);

});

INPUTFIELD_1.setValue("");

0

HI,

Is there any one facing the issue stated above.

0