cancel
Showing results for 
Search instead for 
Did you mean: 

How to find value in collection in sap cloud application

0 Kudos

Hi Expert,

I want search value in node with collection in business object.

Here my BO:

businessobject BusinessObject1 {

[Label("ID")] element TestID:ID;

[Label("Nama")] element TestName:LANGUAGEINDEPENDENT_SHORT_Name;

node Node1[0,n]{

[Label("Node ID")] element TestNodeID:ID;

[Label("Node Nama")] element TestNodeName:LANGUAGEINDEPENDENT_SHORT_Name;

}

action bSearch;

}

Here code action search:

import ABSL; var data:BusinessObject1.Node1; var coll=this.Node1; //coll.GetFirst().TestNodeID.Contains("2"); coll.Where(n => n.TestNodeID=="000000000000000000000000000000000000000000000000000000000002");

I want the result is:

TestNodeID TestNodeName

2 efgh

How can i filter value and show the collection without remove value collection.

q1.jpg

Regards,

Machriza

Former Member
0 Kudos

Hi Machriza,

If I undertand you corretly you want to only show the line in the nodes for your filter criteria. For this your end user can use the existing table filter in the UI. Or do you need this in an an other way?

Best regards

Tobias

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi Tobias,

That's great.

Thanks for your suggestion.

Regards,

Machriza

0 Kudos

HI Tobias,

Thanks before for your response.

Yes,i want show value the line in the nodes with a parameters.for example,if i put parameter TestNodeId,value=2..how i can do it without i removed the value in the node (that i know about node..we only add or remove collection..there are nothing find class).If it is possible to do?

Regards,

Machriza

Former Member
0 Kudos

Hi Machriza,

how about the usage of the default filter from the advanced list panes?

Best regards

Tobias