Thanks
Sorry
I am not so technical with Axapta so kinda get you but at the sametime not
enough to fix it. Can you help me a little more.
The
first bit of code I psoted was standard Axapta. Are you suggesting I change
that?
Thanks
James
-----Original Message-----
From: Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amit Jain
Sent: 14 November 2005 21:06
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: RE: [Axapta-Knowledge-Village] Cursor not on record after Summary updateThe main problem seems to be the executeQuery code block. Why do you want to run executeQuery, because it will always take you to last record. If you follow the same rereadlines and research, i think you will not even require to use the findRecord method as Harry suggested......
James Flavell <[EMAIL PROTECTED]> wrote:Hi Harry,Thanks for theis code (hope you can remember it)It seems the users have told me they were getting out of memory error once this code was put into the system (on both sales and purchase side).Any ideas what might be wrong?ThanksJames-----Original Message-----
From: Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Harry (Harshawardhan Deshpande
Sent: 22 September 2005 21:32
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: Re: [Axapta-Knowledge-Village] Cursor not on record after Summary updatehichange the clicked method of ButtonHeaderUpdateNow (on purchtable form) as followsvoid clicked()
{
PurchTable purchTableCurrent;
;
purchTableCurrent.data(purchTable);
purchTable.checkMarkupTrans();
purchTableForm.enableUpdateJournalButtons(purchTable,
buttonUpdatePurchaseOrder,
buttonUpdateReceiptsList,
buttonUpdatePackingSlip,
buttonUpdateInvoice);super();purchTable_ds.findRecord(purchTableCurrent);
purchTable = purchTable;
}regardsharry
James Flavell <[EMAIL PROTECTED]> wrote:Hi I have a customer using the summary update funciton on both SO and PO and
I just realised that after posting SO or PO of any kind the cursor does not
stay on the record the user had highlighted before they pressed the posting
button. Instead the cursor goes to the last recod in the SO or PO list!!!!
I found one bit of code that maybe is affecting in
Classes/PurchFormLetter/main:
if (PurchTable::exist(purchTable.purchId))
{
if (purchFormLetter.sumBy() !=
AccountOrder::None ||
purchFormLetter.numberOfRecords() > 1)
{
purchTable_ds.executeQuery();
}
else
{
purchTable_ds.reRead();
purchTable_ds.reFresh();
purchTable_ds.editPurch();
purchTable_ds.reReadLines();
}
}
else
{
purchTable_ds.reSearch();
}
Can anyone tell me if I change so that the purchtable_ds.executequery() is
replaced by the same code in the else part (reread,refresh) will this work?
I am afraid that this code is actually the part selecting which PO and lines
to include in the posting and not just the refresh
If this is not the right code to change can anyone tell me how to get the
cursor to stay on the same record once the posting is finished.
Thanks
James
Yahoo! FareChase - Search multiple travel sites in one click.
Sharing the knowledge on Axapta.
SPONSORED LINKS
Business finance course Business to business finance Small business finance Business finance consultant Business finance magazine Business finance schools
YAHOO! GROUPS LINKS
- Visit your group "Axapta-Knowledge-Village" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.