我正在从后端获取JSON数组中的重复值,并且我想删除重复值并仅在SAPUI5 ViewSettingsItem中显示唯一值。
请帮助我。
{
"d": {
"results": [{
"Status": "Completed",
"sId": "C1"
},
{
"Status": "Completed",
"sId": "C1"
},
{
"Status": "Started",
"sId": "S1"
},
{
"Status": "In Process",
"sId": "P1"
},{
"Status": "Completed",
"sId": "C1"
}]
}
}
XML视图:
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core">
<ViewSettingsDialog >
<filterItems>
<ViewSettingsFilterItem>
<items>
<ViewSettingsItem text="{Status}" key="{sId}"/>
</items>
</ViewSettingsFilterItem>
</filterItems>
</ViewSettingsDialog>
</core:FragmentDefinition>
哔哔one
相关分类