SAP Analytics Path Framework的filter實現原理分析

i042416發表於2020-08-21

I am recently doing self study on Analytics Path Framework and as a beginner I have finished some “Hello world” exercise and I have written down my steps to finish those “Hello world” project in these two blogs:

Build Chart and Table representation via Analytics Path Framework Access the OData service exposed by your CDS view via Smart Business Tile in S4HANA system In this blog, I will learn how to use filter in Analytics Path Framework. Source Code of used CDS views could be found from previous blog mentioned above.

In APF Configuration Modeler, there is a filter with type Smart Filter Bar automatically generated.


SAP Analytics Path Framework的filter實現原理分析


When I change it to “Individually Configured Filters”, it is then possible for me to create filter manually:


SAP Analytics Path Framework的filter實現原理分析


Then choose a property for filtering operand ( which will be used in OData filtering operation ) from drop down list:


SAP Analytics Path Framework的filter實現原理分析


And below OData request is responsible for rendering the value list in filter.


SAP Analytics Path Framework的filter實現原理分析


Let’s observe the roundtrip in the runtime. Once we click execute button, the OData request maintained in above screenshot is called to retrieve the product id list, which will be used to render the drop down list of filter.


SAP Analytics Path Framework的filter實現原理分析


This is OData request response:


SAP Analytics Path Framework的filter實現原理分析


The response is used to render filter drop down list when hyperlink is clicked:


SAP Analytics Path Framework的filter實現原理分析


When we deselect Z02 and click OK button:


SAP Analytics Path Framework的filter實現原理分析


The filtering OData request is sent to backend to get filtered data. The chart is refreshed accordingly.


SAP Analytics Path Framework的filter實現原理分析


要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":

SAP Analytics Path Framework的filter實現原理分析


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2713511/,如需轉載,請註明出處,否則將追究法律責任。

相關文章