on 2021 Dec 05 12:18 PM
Hello guys,
I am able to automatically load search assist data in the smart filter bar. However, the search assistance data in the smart table is not automatically loaded. When I press the start button the data loads otherwise the value help is blank in the first place. The problem occurs when doing it in smarttable. How can I do it with Annotation?
Main.xml
--------
<smartTable:SmartTable id="LineItemsSmartTable" entitySet="GetDataSet" smartFilterId="smartFilterBar" tableType="Table"
busy="{globalModel>/smarttableBusy}" busyIndicatorDelay="0" showFullScreenButton="true" useExportToExcel="true" useVariantManagement="true"
useTablePersonalisation="true" beforeRebindTable="beforeRebindTable" header="{i18n>smartTableTitle}" showRowCount="true"
persistencyKey="PKeyTable" enableAutoBinding="false" ignoredFields="Bdatu,Endda" class="sapUiResponsiveContentPadding"
editTogglable="true" app:useSmartToggle="true" fitContainer="true" editToggled="isToggle">
</smartTable:SmartTable>
annotation0.xml
---------------
<Annotations Target="ZHVL_FI_ZIMMET_SRV.GetData/Dprnr">
<Annotation Term="Aggregation.Aggregatable"/>
<Annotation Term="Common.ValueList">
<Record Type="Common.ValueListType">
<PropertyValue Property="CollectionPath" String="DprnrVhSet"/>
<PropertyValue Property="Parameters">
<Collection>
<Record Type="Common.ValueListParameterInOut">
<PropertyValue Property="LocalDataProperty" PropertyPath="Dprnr"/>
<PropertyValue Property="ValueListProperty" String="Dprnr"/>
</Record>
<Record Type="Common.ValueListParameterInOut">
<PropertyValue Property="LocalDataProperty" PropertyPath="Dname"/>
<PropertyValue Property="ValueListProperty" String="Dname"/>
</Record>
<Record Type="Common.ValueListParameterInOut">
<PropertyValue Property="LocalDataProperty" PropertyPath="Dkstl"/>
<PropertyValue Property="ValueListProperty" String="Dkstl"/>
</Record>
</Collection>
</PropertyValue>
</Record>
</Annotation>
</Annotations>
I would be glad if you help. Thanks.
Request clarification before answering.
Hi fdemir,
In regard to the documentation, there is a parameter fetchValues.This property can be either 1 or 2.
Common Vocabulary | odata-vocabularies (sap.github.io)
Field Help - Documentation - Demo Kit - SAPUI5 SDK (ondemand.com)
<Annotation Term="Common.ValueList">
<Record Type="Common.ValueListType">
<PropertyValue Property="CollectionPath" String="ShippingCondition"/>
<PropertyValue Property="Label" String="Shipping Condition"/>
<PropertyValue Property="FetchValues" Int="2"/>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
55 | |
10 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.