KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Page not found and Runtime errors when running a Web Database in compiled mode
PRODUCT: 4D | VERSION: 6.5 | PLATFORM: Mac & Win
Published On: September 28, 2001
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

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.

Two examples:

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.

C_TEXT($1)

For more explanation on this topic, please refer to our online documentation at: