Additionally, to access temporary table through static method, you must pass the temporary table as an object parameter. So from my previous example:
 
TmpTableNew::buildTempData();
 
should have been
 
TmpTableNew::buildTempData(tmpTableNew);
 
-Aji Sarosa-


Aji Sarosa <[EMAIL PROTECTED]> wrote:
-DELETED-
 
void init()
{
    super();
 
    // just a sample, remember after super()
    tmpTableNew.someId = 10;
    tmpTableNew.someName = 'Morris';
    tmpTableNew.insert();
 
   // you can try to build the content from other methods or tables
   // from a line below, method getSomeId might retrieve the Id from another table,
   // or even call other external methods
   // tmpTableNew.someId = getSomeId();
   // tmpTableNew.insert();
 
   // or maybe you have created the temp data building routine in other class method,
   // static method, or table method, so you can simply call it from here
   // tmpTableNew.buildTempData()
   // or maybe
   // TmpTableNew::buildTempData()
}
 
-DELETED-


Do you Yahoo!?
Check out the new Yahoo! Front Page. www.yahoo.com

Sharing the knowledge on Axapta.


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to