Skip to Content
0
Former Member
Aug 27, 2018 at 01:44 PM

Search value in Array and Delete - SAP LUMIRA DESIGNER

976 Views

Hi

arry = ["A","B","C", "D","F"];

My initial Dropdown list component will have all values in "arry".

arry.forEach(function(element, index) {

DROPDOWN_KPI.addItem(element, element);

});

My Requirement is :When I select random value from the dropdown list component, i need to remove the selected value from the Dropdown list.

for example if I select "C" from the Dropdown list, this "C" need to be deleted from the list and show only A,B,D,F in Dropdown.

we do have arry.pop(). it will only deletes last value in the array.

How to get this achieved in SAP Lumira Designer 2.1 SP1

Help much appreciated.

Warm Regards

Amar