Sorry for repost again, but the code example has some code bugs
again.
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.query()));
}
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; this thread is also posted in yahoo newsgroup
regards
Patrick
SPONSORED LINKS
| Computer part | Programming languages | Microsoft axapta |
| Support exchange |
YAHOO! GROUPS LINKS
- Visit your group "development-axapta" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

