DB Read with two databases relation

lukaluka 28 Aug, 2015
Hi,
I have a DB Read with table 1 relation belong to table 2. The model id of the first table is set to DatiFattura and the model id of the second table is set to sottotabellafatture.
The DB Read performs the query and returns me an array for each returned record.
Question
How do I get the data from the models id if the result is:
Array
(
    [option] => com_chronoforms5
    [chronoform] => fattura_visualizza
    [0] => Array
        (
            [DatiFattura] => Array
                (
                    [IDFattura] => 1
                    [NumeroFattura] => 0
                    [AnnoFattura] => 2015
                    [NFatturaCompleto] => 01/2015
                    [Cliente] => 1
                    [Data] => 2015-02-03
                    [Modalitapagamento] => a mezzo Bonifico Bancario
                    [Note] => 
                    [Saldata] => 1
                    [DataOrdine] => 
                    [NOrdine] => 
                    [DataDdt] => 
                    [NDdt] => 
                    [Spedizione] => Vettore
                    [Allegati] => 
                )

            [sottotabellafatture] => Array
                (
                    [IDFattura] => 1
                    [CODARTICOLO] => 
                    [DESCRIZIONE] => Prestazioni sanitarie svolte per Vostro conto nel mese
                    [QUANTITA] => 34.5
                    [PREZZO] => 18.75
                    [ALIQUOTAIVA] => 4
                    [SCONTO] => 2
                )

        )

    [1] => Array
        (
            [DatiFattura] => Array
                (
                    [IDFattura] => 2
                    [NumeroFattura] => 0
                    [AnnoFattura] => 2015
                    [NFatturaCompleto] => 02/2015
                    [Cliente] => 1
                    [Data] => 2015-03-02
                    [Modalitapagamento] => a mezzo Bonifico Bancario
                    [Note] => 
                    [Saldata] => 0
                    [DataOrdine] => 
                    [NOrdine] => 
                    [DataDdt] => 
                    [NDdt] => 
                    [Spedizione] => Vettore
                    [Allegati] => 
                )

            [sottotabellafatture] => Array
                (
                    [IDFattura] => 2
                    [CODARTICOLO] => 
                    [DESCRIZIONE] => Prestazioni sanitarie svolte per Vostro conto nel mese 
                    [QUANTITA] => 102
                    [PREZZO] => 18.75
                    [ALIQUOTAIVA] => 4
                    [SCONTO] => 2
                )

        )

)

Thanks for your attention and I await some answers.
relliott 29 Jan, 2016
Hello,

I am having the same issue. Did you ever figure out an answer?
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger