Hello,
inventDim.data(InventDim::find(inventQuarantineOrder.InventDimId)); // replace the data with the new search data inventDim_ds.setCurrent(); // makes it current _____ From: development-axapta@yahoogroups.com [mailto:development-axa...@yahoogroups.com] On Behalf Of pranam mukher Sent: Friday, 22 May, 2009 2:13 PM To: axa knwoldge Cc: dev ax Subject: [development-axapta] SetCurrent method on Axapta hi all Could you please tel me what is the purpose of the method setCurrent() For Ex: if (inventQuarantineOrder.InventDimId != inventDim.InventDimId) { inventDim.data(InventDim::find(inventQuarantineOrder.InventDimId)); inventDim_ds.setCurrent(); } Please help me on this. Share files, take polls, and make new friends - all under one roof. Go to http://in.promos. <http://in.promos.yahoo.com/groups/> yahoo.com/groups/ [Non-text portions of this message have been removed] __________ NOD32 4099 (20090525) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com [Non-text portions of this message have been removed]