on 09-05-2018 7:46 AM
Hi,
I am currently devolping an analytical list page fiori element. I want to create a table and a chart.
I created an analytical list page with the template given in the SAP Web IDE Full-Stack. Followed the wizard, binding my oData service and my entity set.
I could create everything, but my table is showing me the "[50005] - valueAxis : does not meet the minimum or maximum number of feeds definition." error. After some analyzation I found out, that the attribute "visibleMeasures" is empty. And the attribute "visibleDimensions" is filled with 5 values.
I don't know where the chart gets the "visibleDimensions" from. In my annotation modeler I have following code:
<Annotations Target="***.user">
<Annotation Term="UI.LineItem">
<Collection>
<Record Type="UI.DataField">
<PropertyValue Property="Value" Path="Username"/>
</Record>
<Record Type="UI.DataField">
<PropertyValue Property="Value" Path="Duration"/>
</Record>
</Collection>
</Annotation>
<Annotation Term="UI.Chart">
<Record Type="UI.ChartDefinitionType">
<PropertyValue Property="Title" String="Chart"/>
<PropertyValue Property="Description" String="Chart"/>
<PropertyValue Property="ChartType" EnumMember="UI.ChartType/Column"/>
<PropertyValue Property="Measures">
<Collection>
<PropertyPath>Duration</PropertyPath>
</Collection>
</PropertyValue>
<PropertyValue Property="MeasureAttributes">
<Collection>
<Record Type="UI.ChartMeasureAttributeType">
<PropertyValue Property="Measure" PropertyPath="Duration"/>
</Record>
</Collection>
</PropertyValue>
<PropertyValue Property="Dimensions">
<Collection>
<PropertyPath>Username</PropertyPath>
</Collection>
</PropertyValue>
<PropertyValue Property="DimensionAttributes">
<Collection>
<Record Type="UI.ChartDimensionAttributeType">
<PropertyValue Property="Dimension" PropertyPath="Username"/>
</Record>
</Collection>
</PropertyValue>
</Record>
</Annotation>
</Annotations>
With the UI5 Diagnostics tool in my Chrome browser, I can live change the attributes. After I add "Duration" to the attribute "visibileMeasures" the chart shows up.
My second, less important, issue: My table isn't showing data. It says the "noDataText". There is the problem that the table and smartTable have no Binding Infos. Although I can change the view of the columns, reagarding to the entity set. So some sort of Binding Infos have to be there.
EDIT: my second, less important, issue just resolved by itself. I didn't change anything. But somehow it just works, when I don't include the chart.
I hope someone can help me. If you need any information, just ask.
Thank you very much!
Best Regards,
Dennis.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.