I believe that in the data source properties the 'Start Position' is set to last.
Regards, Matt S --- In Axapta-Knowledge-Village@yahoogroups.com, "Harry \(Harshawardhan Deshpande" <[EMAIL PROTECTED]> wrote: > > hi > > no idea, may be.... after doing a positing its important to refresh the records in the sales table. However, in case of summary update there are multiple records so instead of refreshing the sales orders one by one, executeQuery is done > > regards > > harry > > James Flavell <[EMAIL PROTECTED]> wrote: > Thanks Harry I will try it next week when have sometime > > Can you shed any light on why does the std Axapta go to last record? Is there any reason or just a 'feature' because from what I can see in the std code (what I posted before) it is very specific in doing different based summary update being used or not. > > Thanks > James > > -----Original Message----- > From: Axapta-Knowledge-Village@yahoogroups.com [mailto:Axapta- [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 update > > > hi > > change the clicked method of ButtonHeaderUpdateNow (on purchtable form) as follows > > void clicked() > { > PurchTable purchTableCurrent; > ; > purchTableCurrent.data(purchTable); > purchTable.checkMarkupTrans(); > purchTableForm.enableUpdateJournalButtons(purchTable, > buttonUpdatePurchaseOrder, > buttonUpdateReceiptsList, > buttonUpdatePackingSlip, > buttonUpdateInvoice); > super(); > purchTable_ds.findRecord(purchTableCurrent); > purchTable = purchTable; > } > regards > > harry > > > 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! for Good > Click here to donate to the Hurricane Katrina relief effort. > > 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 uk > > --------------------------------- > 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. > > > --------------------------------- > > > > > --------------------------------- > Yahoo! for Good > Click here to donate to the Hurricane Katrina relief effort. > ------------------------ Yahoo! Groups Sponsor --------------------~--> Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/kGEolB/TM --------------------------------------------------------------------~-> 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/