[TOC] [Prev] [Next] [Bottom]



<@RESULTS>

Syntax

<@RESULTS [ENCODING=encoding]>

Description

Evaluates to the accumulated Results HTML for the current execution of the application file.

The returned value includes the Results HTML for all the actions up to, but not including, the current action.

The accumulated Results HTML can be cleared with the <@PURGERESULTS> tag.

Example

This tag can be used to give a variable the value of the Results HTML from a database query so that the results can be used in other application file calls without re-doing the search. (This technique is useful only with data that does not change often--a list of product categories, for example.) After generating the HTML and assigning <@RESULTS> to a variable (cached_list, for example), subsequent calls to the application file can be handled by checking the contents of the variable with a Branch action. If cached_list is not empty, you can immediately return <@VAR NAME="cached_list" ENCODING="NONE">. If the variable is empty, you would branch to the normal processing to query the database.

See Also

<@ACTIONRESULT>
Encoding Attribute
<@PURGERESULTS>



[TOC] [Prev] [Next] [Bottom]



docs@pervasive.com

Copyright © 1998, Pervasive Software Inc. All rights reserved.