Progress
ADM 2 Reference


outputFields (html-map.p)

Replaces the tagged HTML field definition with the data values stored in the form buffer.

Parameters: None

Returns: Nothing (procedure)

Notes: Merges the HTML file with the results of running the WEB.OUTPUT procedure, if one exists, for each HTML field. Otherwise just the HTML field definition is output. When available, default utility procedures containing the WEB.OUTPUT procedure are run, based on HTML field type. Commonly used in process–web–request procedure.

Examples:

PROCEDURE process-web-request: 
   IF REQUEST_METHOD = "POST":U THEN DO: 
    /* Copy HTML input field values to form buffer fields. */ 
    RUN inputFields. 
    /* Find datasource record that needs to be assigned. */ 
    RUN findRecords. 
    /* Assign form buffer field values to datasource. */ 
    RUN assignFields. 
    /* Display datasource field values to form buffer fields. */ 
    RUN displayFields. 
    /* Enable form buffer fields. */ 
    RUN enableFields. 
    /* Output static HTML page and form buffer field values to web stream. */ 
    RUN outputFields. 
  END. 
END. 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095