Show TOC

Background documentationset-persistent Macro Locate this document in the navigation structure

 

You use the set-persistent macro to make context fields persistent.

This is useful for making data persistent beyond one request/response cycle.

Syntax Syntax

  1. set-persistent 
    argument1     (in, char)
    argument2     (in, num)
End of the code.
Parameters

Parameter

Description

argument1

Context field name you want to make persistent or transient.

argument2

Makes the context field in argument1 persistent or transient.

X

Makes a transient context field persistent.

<blank>

Makes a persistent context field transient.

Example

Make the field context-field persistent:

set-persistent 'context-field' 'X'

Make the field context-field transient:

set-persistent 'context-field' ' '