REST Web Services to Show Multiple-dimensional Properties and Their Values

SOLVED

Greetings everyone, I have faced a bottleneck regarding REST web services and Representation which is I need help to retrieve any data I expected to see from the API platform.

Presentation and classes I recently created, both named ''ZGACCENTRYA", which its data source is from GACCENTRYA [DAA](Analytical accounting line) table.

Everything that I desired to display via API did show in Postman. Still, CCE and DIE did not display their multidimensional (both natures are 9 dimensions but I want to show the first three dimensions only) values. 

So until this point, I am wondering that in order to show multiple-dimensional properties’ value should I work on the configuration of classes or representation. If that is so, how should I start my first step to make it work out?

enquiry.pdf

  • +1
    verified answer

    Good day, multidimensional values need to be set using a collection on the class. In your class definition add a collection called C_CCE (based on best practice https://online-help.sageerpx3.com/erp/12/technical-online-help/). Then under the properties section of your class, group the properties CCE and DIE to the collection defined on the header of the class. Compile the class and you can then link it to your representation and the supervisor will load the collection with the values in the multidimensional values. You can test this within Sage using the TEST function that is generated in the WMCR_XXX.src in the TRT folder, where XXX is the name of your class.