gregorwolf / sap-support-message-reporting

SAP Support Message Reporting
MIT License
19 stars 5 forks source link

Can Overview Page use OData v4 to configure analysis charts? #113

Open BanDianMan opened 3 months ago

BanDianMan commented 3 months ago

After configuration, the chart did not appear, but the Card is displayed. Below are my Annotation configuration and the current page situation.

                <Annotation Term="UI.Chart" Qualifier="ConsultationByRegion">
                    <Record>
                        <PropertyValue Property="Title" String="咨询数量"/>
                        <PropertyValue Property="MeasureAttributes">
                            <Collection>
                                <Record Type="UI.ChartMeasureAttributeType">
                                    <PropertyValue Property="Measure" PropertyPath="constantOne"/>
                                    <PropertyValue Property="Role" EnumMember="UI.ChartMeasureRoleType/Axis1"/>
                                </Record>
                            </Collection>
                        </PropertyValue>
                        <PropertyValue Property="DimensionAttributes">
                            <Collection>
                                <Record Type="UI.ChartDimensionAttributeType">
                                    <PropertyValue Property="Dimension" PropertyPath="geoName"/>
                                    <PropertyValue Property="Role" EnumMember="UI.ChartDimensionRoleType/Category"/>
                                </Record>
                            </Collection>
                        </PropertyValue>
                        <PropertyValue Property="ChartType" EnumMember="UI.ChartType/Donut"/>
                    </Record>
                </Annotation>
      "ConsultationByRegionCard": {
        "model": "mainModel",
        "template": "sap.ovp.cards.v4.charts.analytical",
        "settings": {
          "title": "地区咨询情况",
          "entitySet": "ConsultingCustRequest",
          "valueSelectionInfo": "比上月",
          "chartAnnotationPath": "com.sap.vocabularies.UI.v1.Chart#ConsultationByRegion",
          "identificationAnnotationPath": "com.sap.vocabularies.UI.v1.Identification#IDENT",
          "dataPointAnnotationPath": "com.sap.vocabularies.UI.v1.DataPoint#TotalQuantity",
          "addODataSelect": true
        }
      }
image