GetPrimaryWebhareTransaction (open)

Returns the ID of the primary WebHare transaction

Syntax

LOADLIB "wh::internal/transservices.whlib";

INTEGER FUNCTION GetPrimaryWebhareTransaction()

Return value

INTEGER

Transaction ID for the primary transaction, or 0 if no primary transaction was set up

Description

In some contexts, such as a SHTML file parsed by the WebHare webserver, or a template used for conversion, a WebHare database transaction is opened by WebHare when calling the script. This function can be used to obtain the ID for that transaction