KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Return variables passed to 4DAF must be of type Text
PRODUCT: 4D Web 2.0 Pack | VERSION: 1.1 | PLATFORM: Mac & Win
Published On: June 6, 2007

PLEASE NOTE: This Tech Tip applies to 4D Web 2.0 Pack version 1.1

You can use project methods to return information to the front-end of the 4D Ajax Framework when creating Preset Queries and DDWs. However, when doing so, always remember your return variables are of type Text.

Here is a sample project method:

C_TEXT($0)
C_REAL($total)
` ...
$0:= "Total: "+String($total)



Notice how the the return variable is of type Text and the $total variable was converted with the String command in the end. Your return values must sent as type Text in order for the 4D Ajax Framework to successfully utilize them.

For the latest information on Web 2.0 Pack please go to:
https://daxipedia.4d.com