Salesforce

SDI Support (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

SDI Support (Magic xpa 4.x)

When an SDI program is called, Magic xpa opens a new container that is external to Magic xpa’s MDI container. This new container will have its own menu system, toolbars and status bar.

The caption of the SDI container will be the title of the form. If the title evaluates to blank, the title will be blank.

The icon of the SDI window depends on the following:

  • If there is a valid icon file in the program properties, this icon will be used.

  • If there is no valid icon file in the program properties, the same icon that appears in the calling program will be used.

If an SDI window calls another online program and the Window Type of the called program is Default window, the program will run as a floating window.

  • You can access the SDI window by pressing Alt+Tab.

  • You can create a model that makes an SDI form.

  • An SDI form cannot be defined when the Close Task Window property is set to No.

In the SDI form, you can define whether to display the menu system, toolbars and status bar, by changing the Display properties in the SDI section of the form properties.

SDI Deployment Issues

When preparing an application that is to be executed as an SDI application, there are some issues to attend to within the Main Program:

  • Call an SDI program from the Task Prefix of the Main Program. If this is not implemented, the context will close when execution reaches the end of the Main Program.

  • This Call Program should be conditioned to CtxGetName() = 'Main'. If this is not implemented, then each time the context loads it will call the program again and again resulting in an infinite loop.

  • Make sure that the Main Program has Task Properties->Interface->Open Task Window evaluated to No. Otherwise you will get a runtime error.

Reference
Attachment 
Attachment