If a method is called with a 4DACTION, it is always passed a single text parameter in $1. This text is any extra data placed at the end of the requested URL after the name of the method. In this case, $1 must be declared at the top of the method even if it is empty.
URL #1: https://www.myserver.com/4DACTION/myWebMethod/myWebParameters
The project method "myWebMethod" will receive "myWebParameters" in $1.
URL #2: https://www.myserver.com/4DACTION/myWebMethod
The project method "myWebMethod" will receive "" (an empty string) in $1.
You are required to declare $1 for all methods that are called with 4DACTION as follows.
For more explanation on this topic, please refer to our online documentation at: