Technology Blog Posts by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Dhanasupriya
Active Participant
2,865
Hello SAP/ SAP Community

While I am checking on sap.ui.comp.filterbar.FilterBar control in SAP UI5 SDK, I have noticed that code has to be updated with new aggregations. For further clarifications, go on reading more.

SAP UI5 Control: https://ui5.sap.com/sdk/#/entity/sap.ui.comp.filterbar.FilterBar/sample/sap.ui.comp.sample.filterbar...


sap.ui.comp.filterbar.FilterBar sample in SAP UI5 SDK


view.xml:


filterItems and FilterItem aggregations


The above aggregations got deprecated since SAP UI5 version 1.48.0 and instead we can use filterGroupItems & FilterGroupItem as given in SAP UI5 SDK API Reference.



	<fb:filterGroupItems>
<fb:FilterGroupItem name="Name"
label="Name">
<fb:control>
<MultiComboBox
name="Name"
selectionChange=".onSelectionChange"
items="{
path: '/ProductNames',
templateShareable: true
}"
>
<core:Item key="{key}" text="{name}"/>
</MultiComboBox>
</fb:control>
</fb:FilterGroupItem>
</fb:filterGroupItems>

It would be helpful to everyone if the code can also be updated in the Sample of SAP UI5 SDK as per latest SAP UI5 versions.

Short Message: Trees and Plants blossoms flowers & fruits and not upset for rotten ones. Let's set this path and grow with ups & downs.

Thank you!!
BR// Dhanasupriya Sidagam

#EnhanceLearning