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.DynamicPageListReport

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

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

view.xml:

filterItems%20and%20FilterItem%20aggregations

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.

Tags: SAPUI5
Sara Sampaio

Sara Sampaio

Author Since: March 10, 2022

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x