Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81972

How to concatenate two different arrays

$
0
0

Hi,
I have two array:
- a[0] a[1] a[2]
- b[0] b[1] b[2]

I have to display in a single cell something like this
"a[0] q.ta: b[0] pz"
"a[1] q.ta: b[1] pz"
"a[2] q.ta: b[2] pz"

This is a sample json row, the a and b array are "materiali" and "movimenti"

"DT_RowId": "row_158",
      "ol": {
        "id": "158",
        "ol": "0",
        "fase": "1",
        "centrale": "Roma",
        "Data_Inizio": "2017-12-12",
        "Data_Fine": "2017-12-05",
        "cliente_id": "1",
        "fatturato": "1",
        "Materiali_id": "",
        "costi_materiali": null,
        "impiegati_id": null,
        "Time_Stamp": "2017-12-06 21:10:37"
      },
      "clienti": {
        "nome": "Italtel"
      },
      "materiali": [
        {
          "id": "7",
          "codice": "F-LCLC01-DX-B"
        },
        {
          "id": "8",
          "codice": "F-LCLC02-DX-B"
        },
        {
          "id": "9",
          "codice": "F-LCLC03-DX-B"
        }
      ],
      "movimenti": [
        {
          "id": "338",
          "quantita": "12"
        },
        {
          "id": "346",
          "quantita": "22"
        },
        {
          "id": "347",
          "quantita": "55"
        }


Viewing all articles
Browse latest Browse all 81972

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>