Skip to Content
avatar image
Former Member

Design Studio Portable Fragment Bookmarking Issue

I'm using Design Studio 1.6 SP04 with BusinessObjects 4.1 SP06. My goal is to make a bookmark appear in an HTML iframe. I have been trying to do this by pointing the HTML iframe source to the bookmark URL. I am not working with the BI Launchpad.

As a test, I created a blank analysis application, and added a data source, a chart (CHART_1), a listbox(LISTBOX_1), a panel around the chart and listbox (PANEL_1), and a button outside the panel (BUTTON_1). The button has the following script in its On Click field:

 Bookmark.PortableFragmentBookmark.saveBookmark("ONLINE_COMP",PANEL_1);

My understanding is that this script should create a new bookmark that contains the panel, the listbox, and the chart, but not the button since it lies outside the panel. If I visit the bookmark URL (e.g.

http://localhost:<PORT>/aad/zen?APPLICATION=<APPLICATION_NAME>&BOOKMARK=<BOOKMARK_ID>), I see all the components on the screen rather than just what's in the panel. This is despite the fact that the properties file for the bookmark doesn't contain the button component in this example. However, if I open the bookmark using the Online Composition template, it loads just the panel and its contents. What am I missing here? What is the Online Composition template doing above and beyond just loading the bookmark? Does it have something to do with how the Fragment Gallery handles the bookmarks?

Thanks,

Krishna

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 19, 2017 at 07:55 AM

    Hi Krishna,

    My comments and questions are as follows:

    1) You mention "I am not working with the BI Launchpad". So which platform are you deploying your application to, NetWeaver, HANA?

    2) I think the behaviour you are experiencing is the standard functionality by design. When you launch a bookmark URL, it still launches and renders the entire application but applies the saved portable fragment bookmark properties to the corresponding components inside the panel. You will notice that the bookmark URL references both the application name and the bookmark ID.

    3) When you say "if I open the bookmark using the Online Composition template, it loads just the panel and its contents", I assume you mean you are referring to the screenshot example where "the bookmark appears correctly once dragged and dropped into the compose area". What is happening here is that you are dragging the portable fragment bookmark ("smart object") from the Fragment Gallery to the Split Cell Container in the compose area. In this case, the answer to your question "Does it have something to do with how the Fragment Gallery handles the bookmarks?" is yes. The Fragment Gallery and Split Cell Container are integrated to allow only the saved "fragments" to appear in the Split Cell Container rather than all components in the host application. Indeed, this is the whole purpose of the online composition mechanism. You cannot replicate it by attempting to load the bookmark URL into an iFrame. The bookmark URL will always load the entire application, not just the components that were saved as part of the bookmark.

    Perhaps if you could elaborate more about what use case you are trying to implement with the iFrame and bookmark, we can provide other suggestions.

    Regards,

    Mustafa.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 18, 2017 at 06:35 PM

    Reading this SAP blog https://blogs.sap.com/2015/11/30/so-what-exactly-is-a-design-studio-bookmark-and-how-would-i-or-the-business-use-one/ it sounds like what you really want is a Fragment bookmark and not a portable fragment bookmark. Have you tried that?

    Add comment
    10|10000 characters needed characters exceeded