I found this sample code below and I was wondering what does the
line <CustInvoiceJour.data(journal);> do?
One more thing also why there is not a similar line
<CustInvoiceTrans.data(trans)> there?

public boolean fetch()
{
    QueryRun         qr = new QueryRun(element.query());
    CustInvoiceJour  journal;
    CustInvoiceTrans trans;
    Boolean          firstRun = true;

    while(qr.next())
    {
        if(qr.changed(tableNum(CustTable)))
        {
            if(!firstRun)
            {
              element.execute(2); //subTotal
              subTotalCust = 0;
            }
            else
              firstRun = false;
        }

        if(qr.changed(tableNum(CustInvoiceJour)))
        {
            journal = qr.get(tableNum(CustInvoiceJour));
            CustInvoiceJour.data(journal);
            element.send(journal);
        }

        if(qr.changed(tableNum(CustInvoiceTrans)))
        {
            trans = qr.get(tableNum(CustInvoiceTrans));
            element.send(trans);
        }

    }

    element.execute(2); //subTotal
    element.execute(1);


    return true;
}







SPONSORED LINKS
Programming languages Microsoft axapta Support exchange


YAHOO! GROUPS LINKS




Reply via email to