
<ST:SmartTable id="smartTable" entitySet="Orders" smartFilterId="smartFilterBar" initiallyVisibleFields="CustomerID,OrderDate,ShipName,ShipCity"
enableAutoBinding="true" tableType="ResponsiveTable" ignoredFields="ShipVia" useTablePersonalisation="true" header="Order Records" showRowCount="true"
showTablePersonalisation="true" editTogglable="true" beforeRebindTable="BeforRebindTable" showFullScreenButton="true" persistencyKey="SmartTableGrid"
initialise="onInitialiseSmartField">
<ST:customToolbar>
<OverflowToolbar design="Transparent">
<ToolbarSpacer />
<OverflowToolbarButton icon="sap-icon://sort" tooltip="Sort" text="Sort" press="onSort"/>
</OverflowToolbar>
</ST:customToolbar>
<Table growing="true" growingThreshold="10" autoPopinMode="true"
sticky="ColumnHeaders,HeaderToolbar,InfoToolbar">
<columns>
<Column >
<customData>
<core:CustomData key="p13nData"
value='\{"columnKey": "localShipDate", "leadingProperty":"ShippedDate","columnIndex":"3","type": "date", "sortProperty": "ShippedDate", "filterProperty": "ShippedDate"}' />
</customData>
<Text text="local Date" />
</Column>
</columns>
<items>
<ColumnListItem type="Navigation">
<cells>
<DatePicker value="{ShippedDate}" editable="false">
</DatePicker>
</cells>
</ColumnListItem >
</items>
</Table>
</ST:SmartTable>
Here is the newly added Column
Newly added the custom column
<smartFilterBar:SmartFilterBar id="smartFilterBar" entitySet="Orders" persistencyKey="SmartFilter_Explored" basicSearchFieldName="CustomerID" enableBasicSearch="true" showRestoreOnFB="true">
<smartFilterBar:controlConfiguration>
<smartFilterBar:ControlConfiguration key="CustomerID" visibleInAdvancedArea="true" >
</smartFilterBar:ControlConfiguration>
<smartFilterBar:ControlConfiguration key="localShipDate" label="Custom Local Date" visibleInAdvancedArea="true" groupId="_BASIC">
<smartFilterBar:customControl>
<Input showValueHelp="true" valueHelpRequest="inputValueRequest"></Input>
</smartFilterBar:customControl>
</smartFilterBar:ControlConfiguration>
</smartFilterBar:controlConfiguration>
Local date is a custom filter
inputValueRequest:function(oEvent){
this.oPersonalizationDialog = sap.ui.xmlfragment("samrt.HTML5Module.fragment.p13nDialog", this);
this.getView().addDependent(this.oPersonalizationDialog);
this.oPersonalizationDialog.open();
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
9 | |
9 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |