> On Apr 21, 2017, at 9:59 AM, Chip Scheide <4d_o...@pghrepository.org> wrote: > > What does this project method look like? > > Case of > :(form event=<???>) > case of > :(Last object = <variable or field>) > do stuff
Example below. All calls to Form event in the database are replaced with a wrapper FM_Form_event. Same for current object/focus object commands. So execution of an object method sets up the form context and then executes this method with the object name. No need to make every object method call a project method or maintain the code below -- it is automatically generated from the form. John DeSoi, Ph.D. ==== // Auto generated by DVT_Generate_form_test_method. //$1 - Form object name. C_TEXT($1) Case of : ($1="Field16") LINK1_Table (->[Company];FM_Object_self ;->[Label]Company_ID) : ($1="Button4") ESCROW_UPDATE (->[Label]Escrow_Min_Threshold;True) : ($1="BUTTON3") UI_OPEN_URL ([Label]URL) : ($1="Invisible Button4") UI_Table_input_view (->[Company];[Label]Company_ID) : ($1="BUTTON2") UI_OPEN_URL ([Label]Email;"") End case DV_FORM_EVENT ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************