cancel
Showing results for 
Search instead for 
Did you mean: 

Lumira Designer 'next and previous' Button on dynamic List.

spiegler_s
Explorer
0 Kudos
876

Hi @ all.

I struggle with the following requirement.

We try to load a Listbox with Items on the start of an application.

The Listbox item affected an chart as filter.

Now i want to change the selected entry in the listbox over an button.

like an next button. When the user click on it the next entry should get selected.

Maybe someone can help me.


I already tried to create an array and load the elements from the List. But it doesnt work.

Thanks for your help.

Best regards

View Entire Topic
spiegler_s
Explorer
0 Kudos

Hi Mustafa.

Thanks. Thats perfect.

Already struggeling with the getMembers loop.

Maybe you can help me there.

I put a loop on the top.

But it says Cannot convert from members to String.



var test = DS_1.getMembers("BRANCH", 100);

var test2 = [''];

test.forEach(function(element, index) {

test.push(element);

test = test2;

});

ListItems = test2;

Maxitems = ListItems.length - 1;

ItemIndex = 0;

var Item = [''];

Item.pop();

ListItems.forEach(function(item, index) {

Item = item.split(',');

LISTBOX_1.addItem(Item[0], Item[1]);

});

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

Thanks for your help. I am really new in it.

Best regards

Sebastian

triasadi_pt
Discoverer
0 Kudos
var test = DS_1.getMembers("BRANCH", 100);
var test2 = [''];
test.forEach(function(element, index) {
test.push(element);
test = test2;
});

Hi,

Try using

test.push(element.text);

Thanks,