on 03-31-2020 11:55 PM
I am trying to get the smartchart filtering to work. I have tried this on several different charts, data-sources, applications and odata services.
-> Apply sorting on anything
On the table this work just fine, if you check the GET request in chrome developer view:
GET Z_I_OTHEREVENTS_Z1?$skip=0&$top=58&$orderby=event_code%20asc&$select=event_code%2cext_loc_id%2ctor_id%2cyear_%2cmonth_ HTTP/1.1
On the smartchart however nothing is sorted or filtered, because the GET request isn't correct:
GET Z_I_OTHEREVENTS_Z1?$skip=0&$top=58 HTTP/1.1
What am I doing wrong? Why is the GET request not being properly built?
Here my XML:
<mvc:View xmlns:core="sap.ui.core" xmlns="sap.m" controllerName="test1.test1.controller.View1" xmlns:smartchart="sap.ui.comp.smartchart"
xmlns:sl="sap.ui.comp.navpopover" xmlns:mvc="sap.ui.core.mvc" xmlns:data="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"
xmlns:smartTable="sap.ui.comp.smarttable" xmlns:smartFilterBar="sap.ui.comp.smartfilterbar">
<VBox>
<smartTable:SmartTable id="LineItemsSmartTable" entitySet="Z_I_OTHEREVENTS_Z1" tableType="Table"
useExportToExcel="true" beforeExport="onBeforeExport" useTablePersonalisation="true" header="Line Items"
showRowCount="true" initiallyVisibleFields="event_code" enableAutoBinding="true">
<!-- layout data used to make the table growing but the filter bar fixed -->
<smartTable:layoutData>
<FlexItemData growFactor="1" baseSize="0%"/>
</smartTable:layoutData>
</smartTable:SmartTable>
<smartchart:SmartChart enableAutoBinding="true" entitySet="Z_I_OTHEREVENTS_Z1" chartType="bar"></smartchart:SmartChart>
</VBox>
</mvc:View>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.