Salesforce

CTX HTTP Argument (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

CTX HTTP Argument

The CTX HTTP argument value is a context identifier that is stored on the server.

For example, http://MyServer/MagicScripts/MGrqispi.dll? APPNAME=MyApp&PRG NAME=MyProg&CTX=9755586289880

The CTX context identifier can be retrieved by the task that created the current URL by using the GetParam(CTX) or CTXGetId functions.

In runtime, the following behavior can occur:

  • No context is defined. When no CTX is set, the request opens a new context.

  • The defined context does not exist. The request fails and displays this error message: -197, Context not found.

  • The defined context exists but is active. When a request for a specific context is submitted and the context is responding to a previous request, the submitted request is kept pending until the previous request is completed. When several requests are waiting for execution from the same context, they are completed sequentially in the order of arrival. If the requester timeout of a pending request passes, the request will fail.

  • The defined context exists and is idle. When the context set by the CTX argument exists and is idle, the context is activated and the requested program will be executed within that context.

Note: With an open context, both batch and browser programs can be executed by using the CTX argument.

Reference
Attachment 
Attachment