How to display a table refering to an array field from a Collection (on a given item dynamic page)?

Hi Everyone,

I have a collection of data with an array field. I’m trying to display the content from the array field in a table on the item’s dynamic page.

Actually, It would have been great if I could create a “Table field” that I could link to a table display in the item’s dynamic page. It seems the only solution provided is to link a table to a collection, not to a field :thinking:

I was wondering if you guys had any advice on how to approach that?
I have never coded on Wix but it seems I will have to?

Thank you!

Please show an excerpt of the related DATABASE and its DATAFIELDS, to have a better overview and to understand better your issue.

Are you talking about Tag-Field?

It seems the only solution provided is to link a table to a collection, not to a field :thinking:

It is possible to connect a Tag-Field to a table or repeater.

Thank you for your answer.

Below is a screenshot of the field column. The field type is “Array”

I would like to display these data on the dynamic page like below:

I tried with the tags but it does not solve my issue.

Already have seen this interavtive example?
https://www.media-junkie.com/pflegeservice
Any similarity to your issue?

In all of the example-DATABASES you will find Tag-Fields.
Tag-Fields includes several values.

You can generate an object out of your array, like this one…

myData=[
  {
    "_id": "0",
    "engineTime": "1000",
    "engineCycle": "800",
  },
  {
     "_id": "1",
    "engineTime": "1001",
    "engineCycle": "801",
  },
  {
     "_id": "2",
    "engineTime": "1002",
    "engineCycle": "802",
  }
]

…and push it to a table or a repeater…

$w("#myRepeater").data= myData;