Hi,

try this:

    SalesFormletter SalesFormletter;
    SalesTable      SalesTable;
    ;

    SalesFormletter = 
SalesFormletter::construct(DocumentStatus::Confirmation,true);

    SalesTable = SalesTable::find("00016_036");

    SalesFormletter.update(SalesTable,
                                     systemDateGet(),
                                     SalesUpdate::All,
                                     AccountOrder::None,
                                     false,
                                     false);


Best regards

Michael

>From: "Dyachenko, Dmitry" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: <[email protected]>
>Subject: RE: [Axapta-Knowledge-Village] Somthing cool - IO
>Date: Wed, 27 Jul 2005 16:05:21 -0700
>
>I've never felt myself so bad after just a joke.
>
>Ok, here is the example of code which you can use. Again, it's "ancient"
>3.1, so you need to make sure that it works with your version. It's
>probably not an excellent example of how it could be done, but it works
>at least.
>
>And yes, you're write. You can use it for any types of postings
>
>
>
>
>
>   SalesFormLetter_Confirm confirm;
>
>   SalesParmTable   salesParmTable;
>
>   ParmId           parmId;
>
>   ;
>
>   confirm = new SalesFormLetter_Confirm(true);
>
>   parmId = confirm.parmId();
>
>   confirm.ParmsalesTable(_salestable);
>
>   confirm.allowEmptyTable(confirm.initAllowEmptyTable(true));
>
>   confirm.multiForm(false);
>
>   confirm.getLast();
>
>   confirm.parmId(parmId);
>
>   confirm.transDate(SystemDateGet());
>
>   confirm.specQty(SalesUpdate::All);
>
>   confirm.sumBy(AccountOrder::none);
>
>   salesParmTable.parmId = confirm.parmId();
>
>   confirm.createParmUpdate();
>
>   confirm.salesTable(_salestable);
>
>   confirm.updateQueryBuild();
>
>   confirm.chooseLines(salesParmTable);
>
>   confirm.createParmTable(salesParmTable, _salestable);
>
>   confirm.SetPrintForm(NoYes::No);
>
>   salesParmTable.write();
>
>   confirm.editLinesChanged(true);
>
>   confirm.initParameters();
>
>   confirm.run();
>
>
>
>   _____
>
>From: [email protected]
>[mailto:[EMAIL PROTECTED] On Behalf Of Brandon
>George
>Sent: Wednesday, July 27, 2005 3:45 PM
>To: [email protected]
>Subject: RE: [Axapta-Knowledge-Village] Somthing cool - IO
>
>
>
>Well..
>
>
>
>  I am glad everyone is happy... now. Now problem on the comment, it was
>meant as a joke which should be laughed at... long hours will get to ya!
>
>
>
>Anyway I do have another question. Does anyone have any code examples of
>through X++ code, taking a Sales Order and Confirming it? I am sure you
>have to make use of the SalesFormLetter_Confirm class. I am just
>wondering what is the steps, because there is so many Methods of that
>class...
>
>
>
>I assume too that once I can do it for the Confirm, the Packing Slip
>update, and also the Invoice update can be done with similar code..
>
>
>
>So if anyone can help me out with this, that would be great!
>
>
>
>thanks,
>
>Brandon
>
>
>
>   _____
>
>From: [email protected]
>[mailto:[EMAIL PROTECTED] On Behalf Of
>Subrahmanyam, Mamidi
>Sent: Wednesday, July 27, 2005 6:14 PM
>To: [email protected]
>Subject: RE: [Axapta-Knowledge-Village] Somthing cool - IO
>
>He He He He.
>
>
>
>I see there is a mismatch of our frequencies in the humour..
>
>It happened to me when I was new to US.  I joked with my manager  and it
>turned it in another way :((  But from then onwards I am alright.....
>
>Its very cool........But I came to know about some more clasess . he he
>he he ..
>
>
>
>
>
>
>"Dyachenko, Dmitry" <[EMAIL PROTECTED]> wrote:
>
>       Ok, guys. I see that nobody has notices a smile in the end of my
>posting. Or nobody has understood that. What happened to your sense of
>humor, guys???
>
>
>
>       All right,
>
>
>
>       1.      Brandon, I'm really sorry, if I have offended you. I
>didn't want to do it.
>       2.      Jesper & Mamidi. Guys, I'm sorry that you didn't
>understand that it was just a joke.
>
>
>
>       2 All. I'm really sorry, guys if someone, who's newbee, has been
>been offended.
>
>
>
>
>
>
>
>
>   _____
>
>
>       From: [email protected]
>[mailto:[EMAIL PROTECTED] On Behalf Of
>Subrahmanyam, Mamidi
>       Sent: Wednesday, July 27, 2005 1:31 PM
>       To: [email protected]
>       Subject: RE: [Axapta-Knowledge-Village] Somthing cool - IO
>
>
>
>       I am with you.
>
>       Expertise in Axapta does not come by birth. The more we work, we
>more we get.
>
>       Someone might have started X++ in 2000 and at the same time
>another one  might have started hardcoding in C++ in 2000. We can not be
>shame on C++ guy  for not knowing X++ and vice versa.
>
>
>
>       Since I am also in the same boat, I appreciate Brandon's
>opinion.
>
>
>
>       Simple Living
>
>       High Thinking
>
>       Hard Working  is always great........
>
>
>
>       Let us continue to help each other.
>
>
>
>       Thanks,
>
>       subbu
>
>       Jesper Kehlet <[EMAIL PROTECTED]> wrote:
>
>               Brandon, I would just ignore the reply to your IO
>article.  Saying "shame on you" because you just found out about those
>classes is very arrogant in my opinion -- somebody once told me there
>are no stupid questions, only stupid answers, and the response to your
>post in my opinion just proves that there are no stupid posts, just
>arrogant replies.
>
>
>
>               And people replying so arrogantly may end up finding
>themselves with no answers when they suddenly need it because nobody
>wants to talk to them...
>
>
>
>               If this forum were only for experts, where would
>beginners get the answers they need to become experts?
>
>
>
>               So ignore the answer while exploring another cool class
>in Axapta:  The XppCompiler class...
>
>
>
>
>   _____
>
>
>               From: [email protected]
>[mailto:[EMAIL PROTECTED] On Behalf Of Brandon
>George
>               Sent: Wednesday, July 27, 2005 2:58 PM
>               To: [email protected]
>               Subject: RE: [Axapta-Knowledge-Village] Somthing cool -
>IO
>
>               Well...
>
>
>
>                I mean I have only been developing in Axapta since
>June. I believe myself and other fellow Axapta Developers here have came
>a LONG way. We have done 4-5 months worth of development into 2 1/2
>months time frame...
>
>
>
>               There's nothing really out there on Axapta IO, and so I
>thought I would get this out there as a marker, so when a search is done
>in the future someone, will have a way to get to what they need! :-)
>
>
>
>               -Brandon
>
>
>
>
>   _____
>
>
>               From: [email protected]
>[mailto:[EMAIL PROTECTED] On Behalf Of
>Dyachenko, Dmitry
>               Sent: Wednesday, July 27, 2005 2:48 PM
>               To: [email protected]
>               Subject: RE: [Axapta-Knowledge-Village] Somthing cool -
>IO
>
>               Man, you want to say, that you didn't know about *Io
>classes in axapta? Shame on you. ;-)
>
>
>
>
>   _____
>
>
>               From: [email protected]
>[mailto:[EMAIL PROTECTED] On Behalf Of Brandon
>George
>               Sent: Wednesday, July 27, 2005 11:43 AM
>               To: [email protected]
>               Subject: [Axapta-Knowledge-Village] Somthing cool - IO
>
>
>
>               Hell All!
>
>
>
>                I wanted to take the time to review a great class, that
>exists in Axapta - that for some reason there is not a lot of
>Documentation on. I guess they don't want us to know about this one! :-)
>
>
>
>
>               Class: Io extends Object <kerndoc://Classes/Object>
>
>
>               Run on: Called
>
>
>                 <command://SHOWMETHODS/> Methods
>
>finalize <kerndoc://Classes/Io/finalize>
>
>new <kerndoc://Classes/Io/new>
>
>read <kerndoc://Classes/Io/read>
>
>status <kerndoc://Classes/Io/status>
>
>write <kerndoc://Classes/Io/write>
>
>writeExp <kerndoc://Classes/Io/writeExp>
>
>
>                <command://SHOWPROPS/> Properties
>
>inFieldDelimiter <kerndoc://Property/Io/inFieldDelimiter>
>
>inRecordDelimiter <kerndoc://Property/Io/inRecordDelimiter>
>
>inRecordLength <kerndoc://Property/Io/inRecordLength>
>
>outFieldDelimiter <kerndoc://Property/Io/outFieldDelimiter>
>
>outRecordDelimiter <kerndoc://Property/Io/outRecordDelimiter>
>
>
>
>
>               Description
>
>
>               The Io classes are used to access external files. The
>basic Io class features no actual data I/O but works as base class for
>the format specific io classes. The methods common to all io classes are
>described here. For format specific features and behavior of the member
>functions, please refer to the documentation for each of the I/O
>classes.
>
>
>               Remarks
>
>
>               To support read and write of different formats of
>external files, MorphX features a range of different Io classes; CommaIo
><kerndoc://classes/CommaIo>  for comma separated files, Comma7Io
><kerndoc://classes/Comma7Io>  for comma separated 7 bit files, BinaryIo
><kerndoc://classes/BinaryIo>  for binary files and AsciiIo
><kerndoc://classes/AsciiIo>  for plain text files.
>
>
>               See Also
>
>
>               Comma7Io <kerndoc://classes/Comma7Io> , CommaIo
><kerndoc://classes/CommaIo> , BinaryIo <kerndoc://classes/BinaryIo> ,
>AsciiIo <kerndoc://classes/AsciiIo>
>
>
>
>               Anyway this is directly from the Documentation that
>exist in the System Documentation / Classes. It's great because now we
>have a way, or should I so, now I know of a way to process flat files,
>etc. without having to do it in C# (or some other language.)
>
>               The IO class exists, and then there are some classes
>that inherit from it which are listed in the the See Also section above.
>The one I am most intersted in is the ASCiiIO class. Well anyway, maybe
>this will help someone in the future know that there is Axapta Related
>Classes that help you use and work with IO. (ie: Text Files, CD Files,
>etc. etc.)
>
>               -Brandon
>
>
>
>       __________________________________________________
>       Do You Yahoo!?
>       Tired of spam? Yahoo! Mail has the best spam protection around
>       http://mail.yahoo.com
>
>   _____
>
>Start your day with Yahoo! - make it your home page
><http://us.rd.yahoo.com/evt=34442/*http:/www.yahoo.com/r/hs>
>
>Sharing the knowledge on Axapta.
>
>
>
>
>   _____
>
>YAHOO! GROUPS LINKS
>
>
>
>*       Visit your group "Axapta-Knowledge-Village
><http://groups.yahoo.com/group/Axapta-Knowledge-Village> " on the web.
>
>*       To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED]
><mailto:[EMAIL PROTECTED]
>ubscribe>
>
>*       Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>Service <http://docs.yahoo.com/info/terms/> .
>
>
>
>   _____
>




Sharing the knowledge on Axapta. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Axapta-Knowledge-Village/

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

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


Reply via email to