Hi select the table for update. Like id projFund is the buffer,
the code should be like projFund.selectForupdate(true); projFund.check = NoYes::Yes; projFund.update(); these statements should be under ttsbegin and ttscommit statements. if you dont find the update in the form, then close the form and open again. if the updating has been done, then you have to add the following statements in the code at the end. projFund_ds.reread(); projFund_ds.executeQuery(); Try this and please let me know if you were successful in it. --- In [email protected], "Max Belugin" <[EMAIL PROTECTED]> wrote: > > try to call refresh on the formDataSource after the field change > > On Mon, Jun 9, 2008 at 12:10 PM, syed baber <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > I have a problem regarding checking checkbox in Axapta through X++ code. On > > some conditions I want to check the checkbox. For this I am writing the > > following code > > > > projFund.Check=NoYes::Yes; > > > > where projFund is the table buffer. > > Check is the enum type field and enumtype is assigned NoYes Enum. > > Now What is the problem with the code. Plz let me know is it the right way > > to check the checkbox? or is there any other way to do this. > > > > Regards. > > > > Syed Baber. > > > > > > [Non-text portions of this message have been removed] > > > > > > ------------------------------------ > > > > Yahoo! Groups Links > > > > > > > > > > > > -- > Max Belugin, http://belugin.info , ICQ:9406811, MSN: [EMAIL PROTECTED] >

