Salesforce

A Magic xpa Program Request to the IBM i Server from the Browser Client (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

A Magic xpa Program Request to the IBM i Server from the Browser Client (Magic xpa 3.x)

A program or a task can be called from an event handler. An event handler containing a called browser program is executed by the server and returns an HTML string that is displayed in a separate browser window.

A browser task can call another browser task directly, not through an intermediate batch task. A Browser task can call to a Batch task that produces regular HTML output. A Browser task cannot call an Online task.

Browser Client Environment Settings

The Magic xpa server should have write permission to the directory defined by Magic xpa's CTLCacheFilesPath environment setting.

The Web server should have read permission to the same directory. You can choose to create a different directory and point to it using the CTLCacheFilesPath environment setting. The alias defined by the CTLCacheFilesAlias environment setting should also point to this directory.

The Browser client feature using the Task Caching mechanism requires a modification in the ANSI to Unicode translation environment setting (Ansi2Unicode). The character set of the language in use should be set using the Standard name and the Java name. For example, if the language of a browser client application is Korean, then the environment setting should include both the “MS949” Java name and the “windows-949” separated by a slash, such as MS949/windows-949

You can use the following link to find the Standard name and Java name of various character sets: http://www.devsphere.com/mapping/docs/guide/encodings.html.

A remarked entry (meaning that it's preceded by a semicolon) named MGLOCAL, which points to the Korean support library mglocal.kor, exists in the mgenv file. This file is required for proper functioning of browser-based applications when using Korean/Hangul characters.

Using Colors in Browser Tasks

To use colors properly on IBM i, you must define all the colors that are used as non-system colors. The easiest way to do this is to access the color file in the Magic xpa Studio mode and define the colors accordingly.

Reference
Attachment 
Attachment