cancel
Showing results for 
Search instead for 
Did you mean: 

Integrate Smartfilterbar and smartchart

05-26-2020 10:00 AM
1402 views 3 comments
0 Likes
SAP Managed Tags
Subscribe

How to generate the chart with smartfilterbar filters

0 Likes

Accepted Solutions (0)

Answers (2)

Answers (2)

akashem
Discoverer
0 Likes

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 Likes

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

Former Member
0 Likes

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