Let's follow up this discussion at the Neptune Community

(this forum will be kept in read-only mode)

I have a model, lets call it X. Model X consist of 1 column keeping a String value. When I look up in Model X I use "var data = modelData.Find(X,"FIELD","VALUE","OP");" I receive the found object back into "data". How do I get the indexes for the fo

 I have a model, lets call it X.

Model X consist of 1 column keeping a String value.

When I look up in Model X I use "var data = modelData.Find(X,"FIELD","VALUE","OP");"

I receive the found object back into "data". How do I get the indexes for the found object(s). I need to 

I show model X in a List/SAP.M object(with Multiple selection on), and I need to set the rows of the found object(s) to show as selected.

The last part I figured out can be don using.

var items = X.getItems();
items[index].setSelected(true/false);

Any ideas ?
Login or Signup to post a comment