cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Integrate Smartfilterbar and smartchart

0 Kudos
872

How to generate the chart with smartfilterbar filters

Accepted Solutions (0)

Answers (2)

Answers (2)

akashem
Discoverer
0 Kudos

Integrate Smartfilterbar with  Smartchart and Smart Table  :--

here is mentioned :-------

---EntitySet or binding path need to be same

---Smartfilter id  need to mention in Smart Chart or Smart Table   for intregation

--------------smart filter ---------------------------------

<smartFilterBar:SmartFilterBar id="id4SmartFilterBar"
entitySet="AuftrsbestandResults" persistencyKey="SmartFilter_Explored09"
liveMode="true" filterBarExpanded="false" considerAnalyticalParameters="true"/>
------------smart filter--------------
-------------Smart Chart-------------
 <smartchart:SmartChart id="id4SmartChart"
smartFilterId="id4SmartFilterBar"
entitySet="AuftrsbestandResults"
enableAutoBinding="true"
height="67vh" width="100%" header="Auftragsbestand"
 persistencyKey="PKeyChart4"
showDownloadButton="true"
showDrillBreadcrumbs="true"
data:chartQualifier="ChartDefault2"
beforeRebindChart="onSmartChart09BeforeRebindChart"
chartDataChanged="onChartDataChanged" smartVariant="true"
useVariantManagement="true" useChartPersonalisation="true" >
 </smartchart:SmartChart>
-----------Smart Chart-----------
-----------Smart Table------------
<smartTable:SmartTable id="id4SmartTable"
entitySet="AuftrsbestandResults"
smartFilterId="id4SmartFilterBar"
tableType="AnalyticalTable" height="80%"
header="Auftragsbestand"
persistencyKey="SmartTableAnalytical_Explored4"
enableAutoBinding="true"
beforeRebindTable="onSmartTable09BeforeRebindTable">
</smartTable:SmartTable>
---------Smart Table----------------
 
geert-janklaps
SAP Mentor
SAP Mentor
0 Kudos

Hi,

Not sure why you want to add a separate smartfilter bar to your smartchart, since the smartchart incorporates it's own filters generated based on your odata entity.

Please have a look at following example:

https://ui5.sap.com/#/entity/sap.ui.comp.smartchart.SmartChart/sample/sap.ui.comp.sample.smartchart....

Best regards,

Geert-Jan Klaps

0 Kudos

I have a smart table and smartfilterbar. Now I have to generate chart also based on the filter applied in the smartfilter bar. That is the data has to be populated both in the table and chart based on the filter applied in the filterbar