In SalesTable I have a date field 'Delivery Date'. Whenever the user changes the date, I have to update a new logtable If the user agrees to that.
Modified på control 'SalesTable_DeliveryDate': public boolean modified() boolean ret; SalesLine salesLine; ; ret = super(); if (ret) { if (Box::okCancel("Skal leveringsdato rettes på alle linier", DialogButton::Ok) == DialogButton::Ok) { ttsbegin; while select forupdate salesline where salesline.SalesId == SalesTable.SalesId { salesLine.ConfirmedDlv = SalesTable.DeliveryDate; salesLine.update(); newLogTable::CreateLogRecord(); } ttscommit; } } return ret; Whenever I use the lookup control, it runs the method modified twice, and thereby generates two log records. If I enter a new date manually using my keyboard, it runs the method modified one time and thereby generates one log record. How do I solve this problem? I only want one log record no matter how I enter the new date. Regards Irving ------------------------ Yahoo! Groups Sponsor --------------------~--> $4.98 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/Q7_YsB/neXJAA/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/