Chip,
Thanks for you suggestions, I don't understand exactly how they help me yet, I may need to read/think about it more. In the mean time… let me clarify the context in which the events/non-event occurs maybe this will help When creating a new subscription ADD RECORD is used to display the SubscriptionDetails form When editing a subscription MODIFY RECORD is used to display the SubscriptionDetails form These are being called from within the event handle of a button that exists in the OrderDetails page. Hope this information is helpful. Sandor Szatmari Senior Software Developer Bristol Capital Inc. - InfoPlus 201 746 7215 www.infoplusonline.com From: Chip Scheide <4d_o...@pghrepository.org> To: 4D iNug Technical <4d_tech@lists.4d.com> Cc: Sandor Szatmari <s...@infoplusonline.com> Sent: 4/15/2019 2:52 PM Subject: Re: To generate events or not, that is the question Sandor, if I understand correctly, you are on the parent record entry form ([orders]) depending on how the [subscription] information is displayed may depend on how to get the code to run. 1st - place the code that needs to be run into new separate project method, so that it can be called from more then one place and do the exact same thing. possible situations: - the [subscription] data is displayed directly (a field displayed on the [order] entry form. -- call that new method (above) from both/all places (object method) the [subscription] field data is/can be changed; and make sure that: --- the 'On Data Change' form event is turned ON for the [subscription] object. --- at some point after the code executes you save the [subscription] record - this does not have to be immediately, but could be done in parent [order] entry form's Ferm method during 'On validate'. - the [subscription] data is displayed in an editable subform (not a widget), which is a listing of the [order] related record(s), including [subscription]. -- in this case you want to place a call to the (above) new method in the form method for the listing form that is being used, or in the [subscription] data field's object method on that same listing form. same things to make sure of as above (marked with ---) - the [subscription] data is displayed in a listbox. In this case you need to find the code that is managing the listbox (probably in the object method of the listbox) and add the (above) new method call there. again same things to be sure of as above (marked with ---) hope that is not too confusing, and that it helps :) Chip On Mon, 15 Apr 2019 14:07:04 -0400, Sandor Szatmari via 4D_Tech wrote: > > Path 2: Indirect path to SubscriptionDetail form through OrderDetails: > • Create a new order (OrderDetails) > • While in OrderDetails make it a subscription, > SubscriptionDetails is displayed > • Now in SubscriptionDetails > • Edit SubscriptionDetail.textField the On Data change does not > appear fire, > or the wrong form is receiving it, or some scenario I can't > envision… etc. > --------------- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing CONFIDENTIALITY NOTICE: This email (and any related attachments) contains information from InfoPlus (a service of Bristol Capital, Inc.). It is intended only for the addressee and may contain information that is confidential and/or otherwise exempt from disclosure under applicable law. If you are not the intended recipient or are acting as agent for the intended recipient, any use or disclosure of this communication is prohibited. If you have received this communication in error, please notify us immediately to arrange for the appropriate method of returning or disposing of the communication. If our respective Companies have confidentiality provisions in effect, this email and the materials contained herein are deemed CONFIDENTIAL and should be treated accordingly unless expressly provided otherwise. ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************