Sorry, but axapta crashes if this is done, and I've tried with this as well:

upgradeNode = upgradeNode.loadForInspection();

Regards
Jan Stelsig Dahlsgaard



-----Oprindelig meddelelse-----
Fra: Erik Hansen [mailto:[EMAIL PROTECTED]
Sendt: 24. maj 2004 15:24
Til: [EMAIL PROTECTED]
Emne: SV: [development-axapta] How do I export a project from code


I guess this will solve your problem, change the line to this.

   upgradeNode = upgradeNode.getRunNode();

Regards
Erik

________________________________

Fra: Dahlsgaard Jan [mailto:[EMAIL PROTECTED]
Sendt: ma 24-05-2004 11:18
Til: [EMAIL PROTECTED]
Emne: [development-axapta] How do I export a project from code


Hi

Apparently it should be as easy as:

   treenode _treeNode;
   str projectname = 'JD_Projekt';

   _treeNode = infolog.projectRootNode();
   _treeNode = _treeNode.AOTfirstChild();

   upgradeNode = _treeNode.AOTfindChild(projectName);
   upgradeNode.getRunNode();

   upgradeNode.treeNodeExport('c:\\temp\\expfile.xpo');

but the only content of the export-file is the project-header. Anyone got an idea ?

Regards
Jan Stelsig Dahlsgaard
Fujitsu


[Non-text portions of this message have been removed]




________________________________

Yahoo! Groups Links


*      To visit your group on the web, go to:
      http://groups.yahoo.com/group/development-axapta/
       
*      To unsubscribe from this group, send an email to:
      [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
       
*      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service < http://docs.yahoo.com/info/terms/> .




[Non-text portions of this message have been removed]




Yahoo! Groups Sponsor     

ADVERTISEMENT
<http://rd.yahoo.com/SIG=1296jn1a1/M=295196.4901138.6071305.3001176/D=groups/S=1705006764:HM/EXP=1085492462/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com> click here     
  <http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=:HM/A=2128215/rand=837398158>      


  _____ 

Yahoo! Groups Links


*      To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
 

*      To unsubscribe from this group, send an email to:
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
 

*      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .




[Non-text portions of this message have been removed]


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to