You can save and restore data sessions like this.
Code:SAVE DATASESSION TO m_session
// do something opening up new tables
RESTORE DATASESSION FROM m_session
Printable View
You can save and restore data sessions like this.
Code:SAVE DATASESSION TO m_session
// do something opening up new tables
RESTORE DATASESSION FROM m_session
When using .rsp web pages you can maintain the exact state (database, tables, and record etc) of each cursor between pages like this.
Notice how you can store any variables into the _session[] dynamic array.Code:// On entry to the .rsp page.
IF type( '_session["state"]' ) != "U"
m_state = _session["state"]
RESTORE DATASESSION FROM m_state
ELSE
// open up your tables for the first time
ENDIF
// On exit of the .rsp page.
SAVE DATASESSION TO m_state
_SESSION["state"] = m_state