使用以下行过滤对象时,我试图获取对象列表:
onMeshTermSearch: function (oEvent) {
var allFilteredStuff = oEvent.getSource().getBinding('suggestionItems').filter(new
sap.ui.model.Filter("ICD_10", sap.ui.model.FilterOperator.EQ,'C19'))
}
我得到了很多东西,但是无法从中提取任何有意义的数据。有可能吗?
我希望看到的像是:
var allFilteredStuff = [{Object1}, {Object2},...]
模板:
</SearchField>
value="{formContent>/MESH_TERM}"
enableSuggestions="true"
search="onMeshTermSearch"
suggestionItems="{
path: 'db2>/V_PATIENT_DISEASE_ANALYSIS/'
}
}">
<suggestionItems>
<xx:SuggestionItemMesh
key="{db2>SEARCH_TERM}"
description="{parts: [
'db2>CATEGORY',
'formContent>/PATIENT_DISEASE_FILTER'],
formatter: '.formatter.meshTermDescription'}"
meshIdentifier="{db2>MESH_IDENTIFIER}"
indicationType="{db2>INDICATION_TYPE}"
icdVal="{db2>ICD_10}"
}"/>
</suggestionItems>
</SearchField>