Hello, + to check current execution context
Structure file=Structure file(*) this is documented (see example 2) http://doc.4d.com/4Dv15/4D/15.4/Structure-file.301-3274414.en.html + when the host and component share the same methods names this is also documented (see Naming conflicts: masking methods) the host takes precedence over component http://doc.4d.com/4Dv16/4D/16/Component-installation-and-compatibility.300-3048906.en.html name conflicts of this sort are reported by the compiler, if the call is tokenised. > 2017/04/18 14:51、David Adams via 4D_Tech <[email protected]> のメール: > > So, there are two different methods with the same name - one in the > component and one in the host. As far as I can tell, this won't work. 4D > calls the copy in the component and nothing happens in the host. I just ran > into this by accident, check the docs...and couldn't find any sort of > discussion. It looks like there's no explicit syntax to say 'execute in the > host method.' > > Is this correct? If so, how do people deal with this problem? All that I > can think of is to validate the input within the component. Before calling > the callback, you check if it's in the method lest for the component and > the host. Seems inefficient. Also, I'm not sure if this is even > possible...is there a way to test the calling context? Meaning, is there a > way to know if the call originates from the host or from another component > method? The component relies on callbacks internally as well. ********************************************************************** 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:[email protected] **********************************************************************

