Skip to Content
avatar image
Former Member

Is there a way to share compositions in such a way that it's still editable?

Hello all,

I was wondering whether there was a way, in Design Studio 1.6 SP04, to share compositions created using the Online Composition template on a BI Platform with other users on the same BI Platform in a way where the composition is still editable (and can be saved or shared) by those other users. The reason I'm asking is the Split Cell Container component, where you drag and drop fragments from the Fragment Gallery component, cannot be saved as a part of a Portable Fragment Bookmark; Fragment Bookmarks are, as I understand it, user-specific and cannot be shared. Sharing hyperlinks to my composition isn't good enough; the composition wouldn't be editable by other users. Any suggestions?

Thanks,

Krishna

Add comment
10|10000 characters needed characters exceeded

  • Former Member Mustafa Bensan

    Hi Mustafa,

    As long as we're assuming, I would have a listbox or other component listing the bookmarks available to that user's group. The user would be able to select from the list to specify which bookmark to load. I'm also assuming that I have a folder structure in place where I could save my dashboard to a particular folder with some security applied to it, and that the other user(s) have access to that folder).

    Krishna

  • Hi Krishna,

    Thanks for the clarification. That makes sense. Taking it a step at a time, here are some more comments and questions. It sounds like you require a user other than the creator of the original SplitCell Container fragment bookmark to be able to edit it and then save the changes by updating the SAME bookmark rather than creating a new bookmark based on the original. Is that right? If so, the inability to edit another user's SplitCell Fragment Bookmark is not related to whether the bookmark is shared by URL or via the LoadBookmark() script method (which incidentally you can do for regular Fragment Bookmarks as long as you know the BookmarkID in advance), the issue is that it is technically not possible to use the SaveBookmark() method to update a bookmark originally created by another user. If you attempt to do this, even if you have specified the BookmarkID of the original bookmark, Design Studio will simply create a new bookmark and return a new BookmarkID rather than updating the original because it recognises that you are not the "owner" and therefore does not allow you to overwrite it with an update.

    Have I understood your requirement correctly? Or by "editing the composition" do you mean being able to save an updated/edited version as a NEW BOOKMARK instead of overwriting the original author's bookmark?

    We can explore further options based on your answer.

    Regards,

    Mustafa.

  • Former Member Mustafa Bensan

    Hi Mustafa,

    I don't need users to be able to update the same bookmark created by other users. They just need to be able to receive or otherwise access compositions made by other users, edit them, and save their changes as a bookmark. It's probably better that they don't directly update the same bookmark.

    Thanks,

    Krishna

  • Get RSS Feed

1 Answer

  • Best Answer
    May 25, 2017 at 02:19 AM

    Hi Krishna,

    Based on your comment clarifications, here is an approach you can try:

    ----------------------------------------------------------------------

    1. In the Online Composition template, add a Panel component and inside the Panel component add a text component, say TEXT_BOOKMARK_ID and TEXT_BOOKMARK_TITLE. Make this Panel component invisible

    2. Modify the Online Composition template such that when the user saves their Split Cell Container as a Fragment Bookmark, the following additional steps occur:

    (i) TEXT_BOOKMARK_ID is set to the BookmarkID of the just saved Split Cell Container Fragment Bookmark ID

    (ii) TEXT_BOOKMARK_TITLE is set to the just saved Split Cell Container Fragment Bookmark Title

    (iii) Save a Portable Fragment Bookmark with a suitable Group ID (for example "CompositionList") using the Panel component in Step 1 as the container. The purpose of this new Portable Fragment Bookmark is to be able to globally access the BookmarkIDs of the Split Cell container Fragment Bookmarks in order to later build a list of all available Compositions to present to the user for selection.

    3) To build the list of available Compositions for user selection when needed:

    (i) Execute a Bookmark.PortableFragmentBookmark.getAllBookmarkInfosForApplication(groupIdentifier) script call based on the Group ID specified in Step 2 (iii)

    (ii) Iterate through the returned array of PortableFragmentBookmarkInfos and build your list in a List Box component say, by:

    (a) Loading each Portable Fragment Bookmark element in the array

    (b) Getting the values of the TEXT_BOOKMARK_ID and TEXT_BOOKMARK_TITLE components

    (c) Adding these value/text pairs to the List Box component

    4) When the user then selects an item from the list, you can get the corresponding Composition's Fragment Bookmark ID using getSelectedValue(), then navigate to the existing Composition Editing Page and load the selected Composition with a Bookmark.FragmentBookmark.loadBookmark(id) script call. The rest of the Online Composition workflow should work as it currently does.

    ----------------------------------------------------------------------

    Now, all of the above being said, for future-proofing your application, you should keep in mind the following points:

    • The Online Composition feature is only available in "Commons Mode" (i.e. SAPUI5 Mode and not the new SAPUI5 M Mode)
    • Commons Mode will be deprecated in Lumira Designer 2.0, although of course you will still be able to execute these "legacy" applications in "Compatibility Mode" for the foreseeable future but they will not be able to take advantage of any new 2.0 features

    Personally, given the above and with the GA release of Lumira 2.0 just around the corner (scheduled for July this year), I would not recommend developing any new Design Studio applications that rely on the Commons Mode or the Online Composition feature. Instead I would re-architect the solution targeting the features of Lumira 2.0.

    Regards,

    Mustafa.

    Add comment
    10|10000 characters needed characters exceeded