Ah yes, sorry I skimmed too fast. Add
From: Peter Bozek <[email protected]> Date: Wednesday, February 5, 2020 at 11:10 AM To: iNug <[email protected]> Cc: Add Komoncharoensiri <[email protected]> Subject: Re: What is equivalent to SELF when a form object's "variable or expression" is an object attribute? On Wed, Feb 5, 2020 at 7:04 PM Add Komoncharoensiri via 4D_Tech <[email protected]<mailto:[email protected]>> wrote: Just a little modification from Peter's code Instead of defining an object attribute in the Variable and Expression, leave it blank so 4D will generate a dynamic variable for it. In the object method, you just need to execute the following when the On Data Change occurs. Case of : (FORM Event=On Data Change) Form.en_edit.contact:=Self-> End case The second part of my code deal with initialisation of dynamic variable from Form.en_edit.contact. Peter Bozek ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

