9
Views
5
Comments
[Data Grid] Json structure handling
Question

Hi guys, 

I would like to ask what do I have to insert in the JSON field in order to display "dayDate" and "dayCode"  data.


The expect out come:


{

      "name":"Wong Wai Hin",

      "day":[

         {

            "dayDate":"2020-05-18",

            "dayCode":"RD"

         },

         {

            "dayDate":"2020-05-19",

            "dayCode":"CL"

         },....

Hi Parko Cham,

In the json field of a column, you have to insert an attribute name in which the data is present. In your scenario, if your attribute name is dayDate, just give it as "dayDate".


Regards

Balaji

Hi Parko Cham, 

Can you share your oml or the screenshot of the data given in the rest url?


Hi Parko Cham,

Instead of having structure inside structure, you can create two separate attributes as date and code and assign those values to it.

Regards 

Balaji