Hi sy0thoa

A little correction of the code inside run method:

    myTmpTable.fieldA = 'A';
    myTmpTable.insert(); // insert a temporary record into table
    myTmpTable.fieldB = 'B';
    myTmpTable.insert(); // insert an other temporary record into
table

    if (! element.queryRun)
    {
        element.queryRun = new QueryRun(element.queryRun);
    }

    element.queryRun().setrecord(myTmpTable); //inform the queryRun
to use your instance of temporary table

    super();

And about setTmpData: with this method you can copy a temporary
instance to another instance for example;

CustTable custTableTmp2;
CustTable custTableTmp1;

;
custTableTmp1.setTmp();
custTableTmp2.setTmp();

custTableTmp1.custAccount = 'halli galli';
custTableTmp1.insert();

custTableTmp2.setTmpData(custTableTmp1); // now, the custTableTmp2
contains exact the same records as custTableTmp1, but they are again
different temparay tables.

Hope this helps you
regards
Patrick







SPONSORED LINKS
Computer part Programming languages Microsoft axapta
Support exchange


YAHOO! GROUPS LINKS




Reply via email to