Building dynamic Table (Left to right instead of normal top to down)

Building dynamic Table (Left to right instead of normal top to down)

Upsetti_SpaghettiUpsetti_Spaghetti Posts: 10Questions: 5Answers: 0

Hello, I want to build a table like the one in the picture below using this JSON Object

My research took me to this which shows me how to build dynamic tables and get nested items which is great but I am stuck on how to actually build the table, I looked into row.data but I am still not getting it.

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,275Questions: 26Answers: 4,765
    Answer ✓

    What you want to display is not supported by the JSON you have. Datatables will take the process_details object and create one row out of it. So you will need to restructure the data into something Datatables supports. One option is to create an array out of each key, value pair. For example:
    http://live.datatables.net/folifayi/1/edit

    The Data Manual discusses the supported data structures.

    Kevin

  • Upsetti_SpaghettiUpsetti_Spaghetti Posts: 10Questions: 5Answers: 0

    Thank you, you are a wizard!

This discussion has been closed.