cancel
Showing results for 
Search instead for 
Did you mean: 

Set selected value in listbox for newly stored bookmarks

sebastian_roehl1
Explorer
0 Kudos

Hi experts,

I'm currently implementing a bookmark solution to an existing dashboard.

Created bookmarks are stored in a listbox. The listbox always needs to have one item selected.

I tried to implement it in a way that in case a new bookmark is created, it should become the selected value in the listbox. However there seems to be no way to achive this as the listbox won't accept a bookmark ID as a value to set the selected value.

Heres what I tried to do:

LB_BOOKMARK is my listbox for bookmarks.
BOOKMARKS is my bookmark component.

The .addItem function for listboxes will accept a bookmark ID as input but doesn't return anything.

The .setSelectedValue function won't accept bookmark IDs and I'm stuck right there.

Do you see any way set a newly created bookmark as the selected one in a list?

TammyPowlas
Active Contributor
0 Kudos

Hello Sebastian - please share version/SP of Lumira you are using; I assume this is Lumira Designer? Also please share version/SP of BI platform you are using. Thank you

sebastian_roehl1
Explorer
0 Kudos

Hi Tammy,

sorry I forgot about that.
Yes, I'm using Lumira Designer.

Server Version is 2.1 SP1
BI Platform is 4.2 SP4 Patch4

Accepted Solutions (1)

Accepted Solutions (1)

sebastian_roehl1
Explorer
0 Kudos

Hi everyone,


I've been working on this issue once more and found a solution that might not be best one but still does the trick.


As I'm not able to provide a bookmark id to set the listbox to I use a hidden textarea. The id is passed to the textarea and the the value of the textarea can be passed on as input to set the listbox to.

TA_* = textarea

LB_* = listbox

TA_BOOKMARK_DESCRIPTION.setValue(BOOKMARKS.get(bookID).id);
LB_BOOKMARK.setSelectedValue(TA_BOOKMARK_DESCRIPTION.getValue());

Best regards,

Sebastian

Answers (0)