you dont need to use this. It just tells you whether the record, which you were trying to find was found or not.
Anil Ozay <[EMAIL PROTECTED]> wrote: Hi Amit, Thanks for your reply. When I look at findRecord(common record) method, I see that it returns boolean. How can I use this on my situation? Thanks, Anil On 2/5/07, Amit Jain <[EMAIL PROTECTED]> wrote: > > try using findRecord method on datasource. > > Regards > > Amit > > Anil Ozay <[EMAIL PROTECTED] <anilozay%40gmail.com>> wrote: > Hi everybody, > > I want to update selected records on grid, and refresh the results. This > is > the code : > > ttsBegin; > for (MyTable= MyTable_ds.getFirst(true) ? MyTable_ds.getFirst(true) : > MyTable_ds.cursor(); > MyTable; MyTable = MyTable_ds.getNext()) > { > > SELECT FORUPDATE MyTableUpdate > WHERE MyTableUpdate.RecId == MyTable.RecId; > > MyTableUpdate.Qty = newQuantity; > MyTableUpdate.update(); > > *MyTable_ds.refresh();* > } > ttsCommit; > > Update is working correct but ds.refresh() only refresh the last selected > record. How can update all of the selected records without lost the > marking. > I use ds.executeQuery(), it works but I lost selected records and cursor > goes to first record of the grid. > > This is very important for us. I will really appreciated, if anyone can > solve this problem. > > Best regards, > > Anil Ozay > MVP Dynamics AX, Software Engineer > > [Non-text portions of this message have been removed] > > --------------------------------- > Everyone is raving about the all-new Yahoo! Mail beta. > > [Non-text portions of this message have been removed] > > > [Non-text portions of this message have been removed] --------------------------------- TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV. [Non-text portions of this message have been removed]