Skip to content

Instantly share code, notes, and snippets.

@JanTristanH
Last active June 15, 2022 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JanTristanH/97d544ef14587733f85ae32fe6f2f0b0 to your computer and use it in GitHub Desktop.
Save JanTristanH/97d544ef14587733f85ae32fe6f2f0b0 to your computer and use it in GitHub Desktop.

Fiori Elements analytical list page no chart displayed

Resulution

I resolved the issue before posting, but would still like to share, in case anybody else has the same issue in the future. May the google algorithms be with you.

I followed this blog by Gregor, and implemented the counting of records in a similar way. BUT I added the annotaion @UI.Hidden which caused my dummy field to be excluded. Removing the annotation caused the issue to be resolved.

What am I trying to achieve?

I am trying to create a FE analytical list page with an inteactive chart displayed (Hybrid mode). The intention is just testing and getting it to work.

The backend is build using CAP.

When loading the app the following error is given where the chart would go: [50005] - valueAxis : does not meet the minimum or maximum number of feeds definition.

See the picture Below

badChart

What i have defined in annotations

  • a Chart (qualifier MaterialMovement)
  • a PresentationVariant (no qualifier) referencing the Chart
  • a SelectionPresentationVariant (qualifier DefaultVariant) referenced in the manifest.json

What I tried to solve it

I tried to solve it by adding the annotations described in the offical documentation here. A version with a dedicated SelectionPresentationVariant can be found in the branch PresentationVariantExtended.

Even if the app is able to run with a specified SelectionPresentationVariant in the manifest.json of the app, would I be able to set a default SelectionPresentationVariant by providing SelectionPresentationVariant without a qualifier?

when observin the Network tab I noticed that a request is sent to the backend, loading the correct dimension (MATNR, only referenced in the interactive chart), not metioning the measure (DummyForCounting). The query in the console does not contain the necessary aggregation for DummyForCounting (the default aggregation type is defined for that field).

When googeling the error i found a note pointing out, that no measure was defined. Even though the note describes the error for a specific apllication, the underlying problem would be applicant to the observed network traffic.

The chart itself should be fine, as it loads as expected in an FE ovp app.

The code

The code is available here

note: the ODatasercive used is using the v2 Version

Best Regards, Tristan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment