cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori Smart Table

iamnaveen
Participant
0 Kudos
251

Hi all,

When I use the Smart table element in Fiori, I get below Error How to resolve this? after clicking on the setting button I get all the fields. but I want this by default.

How do you add the columns in the smart table?

iamnaveen_0-1713937959969.png

iamnaveen_1-1713938145417.png

 

 

 

 

<mvc:View 
    xmlns:table="sap.ui.table"  
    xmlns="sap.m" 
    xmlns:mvc="sap.ui.core.mvc" 
    xmlns:smartFilterBar="sap.ui.comp.smartfilterbar"
	xmlns:smartTable="sap.ui.comp.smarttable" 
    xmlns:html="http://www.w3.org/1999/xhtml" 
    xmlns:app="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"
    controllerName="project1.controller.View1" 
    displayBlock="true" 
    height="100%">
	<VBox id='_IDGenVBox1' fitContainer="true">
        <smartFilterBar:SmartFilterBar id='smartFilterBar'
                                       entitySet="invoiceSet" 
                                       persistencyKey="SmartFilter_Explored" 
                                       basicSearchFieldName="Irn" 
                                       enableBasicSearch="true" >
	    </smartFilterBar:SmartFilterBar>
		<smartTable:SmartTable id='LineItemsSmartTable' 
                               entitySet="invoiceSet" 
                               smartFilterId="smartFilterBar" 
                               tableType="Table" 
                               header="Line Items" 
                               enableAutoBinding="true" 
                               class="sapUiResponsiveContentPadding" 
                               enableAutoColumnWidth="true" 
                               editTogglable="true" 
                               app:useSmartToggle="true"  >

		    <smartTable:layoutData>
		        <FlexItemData id='_IDGenFlexItemData2' growFactor="1" baseSize="0%"/>
		    </smartTable:layoutData>

		</smartTable:SmartTable>
	</VBox>
</mvc:View>

 

 

 

 

Thanks in Advance...

 

Accepted Solutions (0)

Answers (0)