Quantcast
Channel: SCN : All Content - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4216

Issues with bookmarking in Design Studio 1.6 ...

$
0
0

Dear Experts,

 

we are currently working on a Design Studio project at one of our customers.

One of the requirements is to safe the current state of the cockpit with all filter settings. We have decided to use the bookmarking feature within Design Studio since it provides the required functionality in theory. There are several blogs and guides out there which describe how to achieve our requirements. Unfortunately, none of these worked for us. We have checked the following guides:

 

http://scn.sap.com/community/businessobjects-design-studio/blog/2014/05/29/working-with-bookmarks-in-design-studio-13

http://visualbi.com/blogs/design-studio/general/bookmarks-and-personalization-in-sap-design-studio/

 

Requirement in detail:

 

The customer wants to safe the current cockpit state via bookmarking. This bookmarking feature is realized via script behind a button. The idea behind is that the user can enter a name for a bookmark in an input field. By pressing the save button the bookmark will be saved with the given name in the system. After this step, the newly created bookmark is distributed to a drop down menu. This drop down menu shows all bookmarks available in the system. If the user selects a bookmark in the menu, he will be able to either load the bookmark or to delete the selected bookmark. So far, so good.

 

Bookmark.jpg

 

Now, we experience some problems with this feature:

 

1. The pocedure works well, as long as we are working on the BI Platform. It doesn't work in local mode.

2. The application.alert event only works in local mode, it doesn't work with BI Platform.

3. Independing in what mode we are: If we restart our application, no bookmark is loaded although all bookmarks are stored in the system - the drop down is empty.

 

Please see our coding below:

 

On Startup event:

 

DROPDOWN_KOAR_BM.removeAllItems();
var array = Bookmark.getAllBookmarks();
array.forEach(function(element, index)
{ DROPDOWN_KOAR_BM.addItem(element.name, element.text);
});
INPUTFIELD_KOAR_BM.setValue("");

 

On Background Processing event:

 

DROPDOWN_KOAR_BM.removeAllItems();
var array = Bookmark.getAllBookmarks();
array.forEach(function(element, index)
{ DROPDOWN_KOAR_BM.addItem(element.name, element.text);
});
INPUTFIELD_KOAR_BM.setValue("");

 

On button save bookmark:

 

var bookmarkname = INPUTFIELD_KOAR_BM.getValue();
if (bookmarkname == "")
{
APPLICATION.alert("Please enter a valid name");
}
else
{
if (Bookmark.bookmarkWithTitleExists(bookmarkname))
{
APPLICATION.alert("Bookmarks already exists");
}
else
{
Bookmark.saveBookmark(bookmarkname);
var bookmarks = Bookmark.getAllBookmarks();
bookmarks. for Each(function(element, index)
{ DROPDOWN_KOAR_BM.addItem(element.name, element.text);
});
INPUTFIELD_KOAR_BM.setValue("");

 

Button load bookmark:

 

Bookmark.loadBookmark(DROPDOWN_KOAR_BM.getSelectedValue());
DROPDOWN_KOAR_BM.removeAllItems();
var array = Bookmark.get AllBookmarks();
array.forEach(function(element, index);
{ DROPDOWN_KOAR_BM.addItem(element.name, element.text);
});
INPUTFIELD_KOAR_BM.setValue("");

 

Any suggestions how to solve our issues with this feature?

 

Thank you in advance,

Karsten


Viewing all articles
Browse latest Browse all 4216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>