cancel
Showing results for 
Search instead for 
Did you mean: 

smart filterbar selection fields visibility restrictions

GowthamRaja
Participant

Hi Experts,

I have to display only few selection fields instead of all fields in a smart filter bar. Since i dont have any annotated model on my selection fields in odata service, I am using custom controls inside control configuration as per my requirement, I have provided visibleInAdvancedArea="false" but i could not hide my selection fields.

<sfb:SmartFilterBar id="IdSalesDeferalSFB" entityType="/I_MaintenancePlanPlant" search="GoSearch" width="auto" filterBarExpanded="false"
								useToolbar="false" class="sapUiSizeCompact" containerQuery="true">
								<sfb:controlConfiguration>
									<sfb:ControlConfiguration key="MaintenancePlanningPlant" index="1" label="Maintenance Plant" controlType="dropDownList" groupId="_BASIC"
										visibleInAdvancedArea="false" class="sapUiSizeCompact">
										<sfb:customControl>
											<MultiInput id="idMaintPlant" valueHelpRequest=".MaintPlantF4" showSuggestion="true" width="30%" suggestionItems="{/I_MaintenancePlanPlant}">
												<suggestionItems>
													<core:ListItem key="{MaintenancePlanningPlant}" text="{PlantName1}"/>
												</suggestionItems>
											</MultiInput>
										</sfb:customControl>
									</sfb:ControlConfiguration>
									<sfb:ControlConfiguration key="Validated" filterType="single"/>
								</sfb:controlConfiguration>

</sfb:SmartFilterBar>

Please help to resolve this

View Entire Topic
junwu
Active Contributor
0 Kudos

in your backend, you should annotate those fields as unfilterable.

rizwan99
Product and Topic Expert
Product and Topic Expert
0 Kudos

But still no luck