Hi Try with these code. I have changed the placement of the super public boolean modified() { boolean ret; if( Box::yesNo(sometext,DialogButton::Yes) == DialogButton::Yes) { change the date; ret = super();
} else { don't change the date. } return ret; } chaminda On Thu, 13 Jan 2005 16:48:38 -0800 (PST), Padmaja Iyingar <[EMAIL PROTECTED]> wrote: > Hi, > I am not able to get it working. I hope someone will help me. > > I have a grid and one of fields is "dateEdit". I have a modified method on > the dateEdit field. Say, if the user tries to modify the date, I am > prompting a messageBox with Yes or No button. > > What I would like to have is, if user select 'No' option, the value should > not be modified to new value , it should retain the old value. I know its > something to do with placing super() call. > But I could not make it working. > > Pls find a piece of my code. > > /****************************************************************************/ > > public boolean modified() > { > boolean ret; > ret = super(); > > if( Box::yesNo(sometext,DialogButton::Yes) == DialogButton::Yes) > { > change the date; > } > else { > don't change the date. > } > > > return ret; > } > > > but if I select yes or no also, the date is getting modified. How can I > prevent modifying the date if the user selects 'No'. > > Can any one help me?. or do we need to write a validatewrite method ...... > > Thanks in advance > > -Padmaja > > > > > > > /***********************************************************************/ > > > > ________________________________ > Do you Yahoo!? > The all-new My Yahoo! â What will yours do? > > 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 the Yahoo! Terms of Service. > > ------------------------ Yahoo! Groups Sponsor --------------------~--> In low income neighborhoods, 84% do not own computers. At Network for Good, help bridge the Digital Divide! http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/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/