Code help to Create and post Project Beginning balance for Estimation posting in Ax 2012 | post project estimate
If you want to post Project Beginning balance for Estimation posting in Ax 2012 you can do that by using class and run method .
What you need to do just you need to find posting class for Posting estimation of created stage records and pass via parameters.
You need to review class ProjControlPostingPosted there are method run to post estimation. You can pass parameter then you need to write code to post it.
Do not forget to initialize class via below code.
ProjControlPostingPosted1=new ProjControlPostingPosted();
after that you need to initialize query like this.
ProjControlPostingPosted1.initQuery();
ProjControlPostingPosted1.getQueryValues();
ProjControlPostingPosted1.queryRun();
Once you done that then you need to pass parameter simply in parm method and run the class by methods of run code.
I hope you get the idea to post project estimation by code.
I am not writing here whole code because you need to try your own way to get final solution. I have provided only hints.
What you need to do just you need to find posting class for Posting estimation of created stage records and pass via parameters.
You need to review class ProjControlPostingPosted there are method run to post estimation. You can pass parameter then you need to write code to post it.
Do not forget to initialize class via below code.
ProjControlPostingPosted1=new ProjControlPostingPosted();
after that you need to initialize query like this.
ProjControlPostingPosted1.initQuery();
ProjControlPostingPosted1.getQueryValues();
ProjControlPostingPosted1.queryRun();
Once you done that then you need to pass parameter simply in parm method and run the class by methods of run code.
I hope you get the idea to post project estimation by code.
I am not writing here whole code because you need to try your own way to get final solution. I have provided only hints.
Comments