cancel
Showing results for 
Search instead for 
Did you mean: 

VizFrame FeedItem control UI5 Issue

former_member224398
Participant
0 Kudos

Hi Experts,

We are facing issue with the VizFrame FeedItem control in the UI5 application.

Error is "Sales" is of type string, expected any[] for property "values" of Element sap.viz.ui5.controls.common.feeds.FeedItem#__xmlview2--valueAxisFeed"

this issue suddenly popped in all the landscapes. please guide.

Thanks,

Anurag

Accepted Solutions (1)

Accepted Solutions (1)

In case the string "Sales" in is given by using i18n like:

<viz.feeds:FeedItem uid="categoryAxis" type="Dimension" values="{i18n>sales}" />

You might want to try to change it to a hard coded string:

<viz.feeds:FeedItem uid="categoryAxis" type="Dimension" values="Sales" />
former_member224398
Participant
0 Kudos

Hi Ulrich,

Indeed "Sales" is defined in i18n properties and we have defined it as you mentioned.

you meant i should define it as hard coded string and see ? I will do it and check.

Want to understand why it is expecting to be defined as array ?

Thanks,

Anurag Yadav

I guess "suddenly" is after the applications or Fiori Launchpads UI5 version was updated to 1.44. For whatever reasons this seams to confuse the logic from 1.44 on.

As it worked with i18n before you might want to raise a bug report.

former_member224398
Participant
0 Kudos

Hi Ulrich,

Can you suggest what should i do to resolve this issues ? It is popping again with other i18n properties and i think replacing with the hard-code values is not a structural fix.

Expecting your reply on this .

Thanks,

Anurag

0 Kudos

Hi Anurag,

what was the outcome of your bug report via official channels like https://launchpad.support.sap.com ?

Regards,

Ulrich

I had the same issue and was wondering how you translate your measures if you cant use i18n in the values property.

The solution was to use the "identity" property in your measure definition and use the name property for your translation:

<viz.data:MeasureDefinition name="{i18n>yourTranslationHere}" identity="Sales" value="{ ... }"/>

Hope this helps others with the same problem

Answers (3)

Answers (3)

former_member762375
Discoverer
0 Kudos

Hi Guys
How to Use and maintained i18n for same

<viz.feeds:FeedItem uid="categoryAxis" type="Dimension" values="{i18n>sales}" />

0 Kudos

Hi Anurag,

I am also getting the same problem.

Is this issue solved? Please let me know.

Regards,

Bidhan Roy

former_member224398
Participant
0 Kudos

yes the issue is resolved ..frankly i could not comment why the issue pops but if you are using i18n file then better use the same text which you have maintained in i18n file.

0 Kudos

Thanks for your reply.

But if i use same text it will be hard coded. if Language changes later it wont reflect ryt?

former_member224398
Participant
0 Kudos

Right .. it will not reflect in case of change in language if you have not maintained i18n file for other language and you are binding from i18n file.

former_member365727
Active Contributor
0 Kudos

check metadata for Sales...this should be of type Int or Decimal (someone might have changed the data type from int to string)

former_member224398
Participant
0 Kudos

hi Shrikanth,

We have used i18n properties as string. it's not related to int or decimal.

thanks,

Anurag