RESPONSE Command

RESPONSE — Set the response object used when using the web interface.

Synopsis

RESPONSE DATAREF prefix-data_ref

RESPONSE FILE ext_file_name

RESPONSE TXT text_document_name

RESPONSE XML xml_document_name

Introduction

The RESPONSE command sets the response object used when using the web interface. Valid response types are:

  • DATAREF

  • FILE

  • TXT

  • XML

When processing of a web request is done on 4GL level, then the contents of the object type and name as set by the RESPONSE command, will be send to the requester.

Arguments

prefix-data_ref

Any data reference that can hold data. (ie; V-orders)

ext_file_name

Any data reference or hard coded string that holds a path and file name. (ie; "/tmp/orders.html")

text_document_name

Any data reference that can hold the value of a valid and opened text document.

xml_document_name

any data reference that can holds the value of a valid and opened xml document.

Example

. . .
. . .
RESPONSE DATAREF V-orders
. . .
. . .
RESPONSE FILE "/tmp/orders.html"
. . .
. . .
RESPONSE TXT "buf1"
. . .
. . .
RESPONSE XML "doc1"
. . .
. . .

Related Commands

None.