Array inside data source object

Hello! I would like to know if it’s possible to display following structure somehow inside table?

var sourceDataObject = [
        {
            type: "RE",
            name: "Test",
            skill: "Test",
            data: [
                {
                    period: "19.10-25.10",
                    value: "Some value"
                },
                {
                    period: "26.10-31.10",
                    value: "Some value"
                }                     
            ]
        },
        {
            type: "DE",
            name: "Test2",
            skill: "Test2",
            data: [
                {
                    period: "19.10-25.10",
                    value: "Some value2"
                },
                {
                    period: "26.10-31.10",
                    value: "Some value2"
                }
            ]
        }
    ];

So the first column should be with value from type filed, second column - from name field, third column - skill field, and the rest amount of columns is dynamical and will be retrieved from backend. So with example I showed above there will be 2 more columns with headers ‘19.10-25.10’ and ‘26.10-31.10’. And values to the rows are taken from ‘value’ field inside ‘data’ array.

It’s not late to change data source objects structure, so if you have idea how to make it better - I appreciate it.

So first 3 columns are fixed, and rest of columns will have different amount and different headers.

Hi @dmitriy.vovney

currently the following structure will give you

[object Object],[object Object]

in the last column and unfortuntely we do not have an option to get inside the object, like data.value
you would need to parse the object or just use setDataAtCell in a loop for the last column and there pass the data from data.value

Thank you for your reply!

you’re welcome.

I’m happy I could help.