cancel
Showing results for 
Search instead for 
Did you mean: 

Smarttable value help Initial Data Fetch In ValueHelpDialog

fdemir
Explorer

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.

sameerculli
Explorer
0 Kudos

Were you able to solve this issue ?

Accepted Solutions (1)

Accepted Solutions (1)

ThorstenHoefer
Active Contributor

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"/>

Answers (0)