Skip to Content
0

Unable to get correct folder information of saved bookmark

Apr 19 at 02:29 PM

191

avatar image

Hi,

Currently, we are using lumira designer 2.1 and Business Object BI platform 4.2 SP5.

Problem statement: After moving bookmark to different folder when I access folder information through scripting, it is showing folder we have selected at the time of bookmark creation, however bookmark management option in CMC is showing updated information.

Please find following detailed information,

1) Creating bookmark and saving it to default folder called lumira bookmarks.

2) Moving bookmark to different folder through following script,

var folder = TREE_1.getSelectedValue();
var id = FEEDLIST_1.getSelectedItem().id;
BOOKMARKS.assignToFolder(folder, id);

3) Hitting bookmark information button to get updated bookmark folder information through following script,

var bookmark = FEEDLIST_1.getSelectedItem().id;
TEXT_1.setText("Name");
TEXT_4.setText(BOOKMARKS.get(bookmark).title);
TEXT_3.setText("Folder");
TEXT_2.setText(BOOKMARKS.get(bookmark).folder);
DIALOG_4.open();

4) Now, when I check bookmark properties in CMC, it is showing updated folder name against that bookmark.

Thanks,

Darshil Shah

10 |10000 characters needed characters left characters exceeded

Hi - did you try this on SP1, the latest release?

0

Hi Tammy,

Thanks for prompt response.

No, we are on lumira 2.1 SP0.

Thanks,

Darshil Shah

0

Hi Darshil,

What is the script code you are applying to populate the content of TREE_1 and FEEDLIST_1?

Regards,

Mustafa.

1

Hi Mustafa,

Following script written to populate bookmarks in Feedlist,

var bookmark = BOOKMARKS.getAll();
FEEDLIST_1.removeAllItems();
bookmark.forEach(function(element, index) {
FEEDLIST_1.addItem({"text" : element.title, "author": element.owner, "id":element.id,
"authorId": element.owner,
"info": element.description});
});

Following script written to populate tree structure of bookmark folder,

TREE_1.setModel(BOOKMARKS.getFolderTreeModel(false));

Thanks,

Darshil Shah

0

Hi Mustufa,

I tried many times but unable to correct folder name.

Its a bug from SAP side?

Thanks,

Darshil Shah

0

Hi Darshil,

Can you provide the following?:

1. Screenshot of your application;

2. Screenshot of your Bookmark definition, showing the components that are included in the bookmark.

Regards,

Mustafa.

0

Hi Mustafa,

Total six steps are there. Somehow I am unable to update more then two screen shot, so I am sending multiple reply of your question.

I have created test application for bookmarking functionality. Please find following detailed information.

1) Components used in bookmarking application.

2) New bookmark creation logic,

capture6.jpg (38.3 kB)
capture1.jpg (29.8 kB)
0

3) Logic to display created bookmarks in list view.

4) Logic to open bookmark tree folder.

capture2.jpg (49.0 kB)
capture3.jpg (34.8 kB)
0

5) Logic to move bookmark to another folder.

6) Logic to display created bookmark information.

Thanks,

Darshil Shah

capture4.jpg (34.6 kB)
capture5.jpg (42.6 kB)
0

Can you post a screenshot of your application UI as well as a screenshot of the BOOKMARKS component definition with included components?

0
Show more comments
* Please Login or Register to Answer, Follow or Comment.

0 Answers