guides:o4w:o4w_api:o4wescape

O4WEscape routine

Allows for the encoding of a string to a particular environment.

O4WEscape(value, type)

The function has the following parameters:

ParameterDescription
valueThe string to be encoded.
type The encoding type
Encoding Type ValueEncoding Type O4WEquates Insert record value
0O4W_ESCAPE_HTML$
1O4W_ESCAPE_URL$
3O4W_ESCAPE_URL_COMPONENT$
4O4W_ESCAPE_ID$
nullO4W_ESCAPE_JS$

Note that O4W normally takes care of encoding strings as needed; however, it is up to the developer to use valid strings for "name" and "ID" parameters for the O4W calls, and calling O4WEscape with the O4W_ESCAPE_ID$ parameter is one way to ensure that a name or ID is valid.

  • guides/o4w/o4w_api/o4wescape.txt
  • Last modified: 2024/06/19 20:19
  • by 127.0.0.1