Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRISOpens in a new window, see the InterSystems IRIS Migration Guide and Migrating to InterSystems IRIS, both available on the WRC Distributions pageOpens in a new window (login required).

Creating the Composite Menu Component

Use Studio to create the composite menu component. Name the new component MenuComponent.cls. Here are the steps:

  1. Open Studio. Change to the namespace which contains HomePage.cls. On the Menu Bar click File–>New. This opens the New dialog:

    generated description: newcomposite1 20152

  2. Click the Zen category. Click New Zen Component and click OK. This launches the Zen Component Wizard.

    generated description: newcomposite2 20131

  3. Enter the following information:

    • Package Name: ZenTutorial.CustomComponents

    • Class Name: MenuComposite

    • Type: Composite

    • XML Namespace: http://www.intersystems.com/ZenTutorial

      This namespace information puts the new component into a separate namespace from the standard Zen components.

    Click Finish. The Studio Editor displays the following class definition:

    generated description: newcomposite3 20101

FeedbackOpens in a new window