Hello Miguel,

   If u want to take value of some field from buffer then u just have to
find the table which is contained in Buffer . it can be done by help of
tableid field  of buffer. After that assign the buffer to a instance of that
table after that u can find value of that record.

    Below I have attached a method which I had written in
InventUPD_Reservation for accessing buffer .. I think it will be beneficial
for u.



// Changed on - 12-15-03 at 09:55:55 am  by Matrish - AIT132

void aitSales_Quotation_LineUpdateCorte()

{

SalesLine          aitSalesLine;

smmQuotationLine   aitsmmQuotationLine;

;

if(Movement.buffer().TableId == TableNum(SalesLine))

  {

   ttsBegin;

   aitSalesLine = SalesLine::findRecId(Movement.buffer().RecId,True);

   if(aitSalesLine)

    {

     aitSalesLine.aitCorte = (!aitSetCorte);

     aitSalesLine.doUpdate();

     aitsmmQuotationLine =
smmQuotationLine::Find(aitSalesLine.salesTable().smmQuotationId(),aitSalesLi
ne.LineNum,True);

     if(aitsmmQuotationLine)

      {

       aitsmmQuotationLine.aitCorte = (!aitSetCorte);

       aitsmmQuotationLine.update();

      }

    }

   ttsCommit;

  }

}



Thanks & Regards
Matrish Mangal
Euroinfo Systems Pvt. Ltd.
C-126, Sector - 2
Noida - 201301 (U.P.)
Phone :- +91-120-2520414 Extn: 214
Mobile :- +91-9818375813

"Perfection is achieved, not when there is nothing more to add, but when
there is nothing left to take away."



________________________________



From: mrommers [mailto:[EMAIL PROTECTED]

Sent: Monday, December 20, 2004 6:01 PM

To: development-axapta@yahoogroups.com

Subject: [development-axapta] accesing information in a buffer













Hello:



I want to know how can to accessing information from a object common

buffer.

for example I need to access the information salesLine.salesId

storage in a buffer calling from updateReserveMore in a Class

InventUpd_reservation.





thanks.



Miguel Rommers











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


Yahoo! Groups Sponsor

Get unlimited calls to

U.S./Canada



Yahoo! Groups Links

Reply via email to