KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Client executing a method as a process when displaying on 4D Server
PRODUCT: 4D | VERSION: 15.1 | PLATFORM: Mac & Win
Published On: April 20, 2016

When a method property is either selected to be "Executed on Server" (stored procedure) or not, it can be confusing if that method is called as a process from another method which those properties can be selected to be "Executed on Server" or not as well. Here are some examples of the behavior when the properties are not consistent:

Example #1: Method_Sample is set to "Execute on Server" while the process method is NOT set to "Execute on Server":






The result is that the process is ran locally on the client on 4D Server.






Example #2: Method_Sample is set to NOT "Execute on Server" while the process method is set to "Execute on Server":





The result is that the process is ran as a stored procedure on 4D Server.




A rule of thumb would be consistent with the methods properties for executing stored procedures or locally to the client.