Skip to Content
0
Apr 27, 2018 at 01:20 PM

Set selected value in listbox for newly stored bookmarks

803 Views Last edit Apr 27, 2018 at 01:23 PM 3 rev

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?

Attachments

unbenannt.png (35.5 kB)