Skip to main content
Solved

Fetching Translated values for Enumerations in Projections

  • September 30, 2021
  • 3 replies
  • 589 views

Forum|alt.badge.img+2
  • Sidekick (Partner)
  • 6 replies

Hi Guys,

Im working on a integration where I try to fetch data from a projection end-point and show the dataset in a third party client. Here’s a screencap of a Postman request where it fetches the dataset from  InventoryPartInStockHandling.svc/InventoryPartInStockSet entityset
 

The dataset contains the Enumeration “LocationType” which is Translatable.

Problem is that I CAN NOT fetch translated value for the “LocationType” if i want to use a language other than English. I tried setting the Accept-Language header and specifying the language (ex: sv-SE for Swedish) but it still returns the same dataset as before (see the screencap).

Since im only using the projection layer i cant rely on Aurena Client metadata service for translations. Is there anyway that I can fetch Translated values for a dataset returned from a projection ?

Best answer by Jonas Feigl

@irshad Unfortunately this is not possible at the moment. The value returned by the projection for any enumeration attributes always just contains the ID of the individual enum value. The translations are only available in the Arena client metadata but not via the projections.

View original
This topic has been closed for comments

3 replies

Jonas Feigl
Superhero (Employee)
Forum|alt.badge.img+20
  • Superhero (Employee)
  • 261 replies
  • Answer
  • October 1, 2021

@irshad Unfortunately this is not possible at the moment. The value returned by the projection for any enumeration attributes always just contains the ID of the individual enum value. The translations are only available in the Arena client metadata but not via the projections.


Forum|alt.badge.img+2
  • Author
  • Sidekick (Partner)
  • 6 replies
  • October 1, 2021

@Jonas Feigl thank you for the clarification. Are there any plans to support this in future versions ?


Jonas Feigl
Superhero (Employee)
Forum|alt.badge.img+20
  • Superhero (Employee)
  • 261 replies
  • October 1, 2021

@irshad I don’t think this is currently on the roadmap. This is a request I have heard before though so I have just documented this as an idea: 

https://community.ifs.com/ideas/improve-enumeration-handling-in-projections-13822

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings