2 weeks ago
Hi Experts,
I've created one smart table. but when I run the application automatically data will be populated based on the Odata which was incorporated with the Fiori application. Don't want to fetch the data automatically. I just need the data when click the go button. I tried enableAutoBinding="false" also, But not working for me.
Share your suggestion on this.
Also attached some codes for your reference.
<mvc:View
xmlns:table="sap.ui.table"
xmlns="sap.m"
xmlns:core="sap.ui.core"
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="DocdtlsNo"
enableBasicSearch="true"
advancedMode="false"
showAllFilters="true"
search="onValidation">
</smartFilterBar:SmartFilterBar>
<smartTable:SmartTable id='LineItemsSmartTable'
entitySet="invoiceSet"
smartFilterId="smartFilterBar"
tableType="Table"
useTablePersonalisation="false"
useVariantManagement="true"
persistencyKey="SmartTableAnalytical_Explored"
showRowCount="true"
header="E-invoice Console"
class="sapUiResponsiveContentPadding"
enableAutoColumnWidth="true"
enableAutoBinding="false"
editTogglable="true"
app:useSmartToggle="true"
busy="false"
editable="false"
busyIndicatorDelay="1000"
initiallyVisibleFields="docno">
<smartTable:layoutData>
<FlexItemData id='_IDGenFlexItemData2' growFactor="1" baseSize="0%"/>
</smartTable:layoutData>
<smartTable:customToolbar>
<OverflowToolbar id="_IDGenOverflowToolbar1" design="Transparent">
<ToolbarSpacer id="_IDGenToolbarSpacer1"/>
<Button id="_IDGenButton1" text="Reprocess" type="Emphasized" press="onReprocess" icon="sap-icon://refresh" />
<Button id="_IDGenButton2" text="Generate" type="Success" press="onGenerate" icon="sap-icon://status-completed"/>
<Button id="_IDGenButton3" text="Cancel" type="Negative" press="onCancel" icon="sap-icon://cancel"/>
</OverflowToolbar>
</smartTable:customToolbar>
<table:Table id="_IDGenTable1" rows="{/invoiceSet}">
<table:columns>
<table:Column id="_IDGenColumn1" width="3.5em">
<Label id="_IDGenLabel1" text="Status"></Label>
<table:template>
<core:Icon id="icon" src="sap-icon://alert" class="yellowText" height="1.5em"></core:Icon>
</table:template>
</table:Column>
<table:Column id="_IDGenColumn2" width="5.371em">
<Label id="_IDGenLabel2" text="Description"></Label>
<table:template>
<Text id="_IDGenText1" text="Ready" class="yellowText" />
</table:template>
</table:Column>
</table:columns>
</table:Table>
</smartTable:SmartTable>
</VBox>
</mvc:View>
User | Count |
---|---|
70 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
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.