Extracting a Method View

Although a method view is not extracted as part of a standard schema extraction, you can extract methods added to a method view that you created or one that was created by another developer.

A method view schema extract file contains only the methods added to that view. As no information regarding the method view itself is extracted, loading a method view schema extract file into a new JADE database does not recreate the method view itself but loads the methods that were added to the originating method view.

To extract methods in a method view

  1. Perform one of the following actions.

    • In the Methods View Browser, select the method view whose methods you want to extract and then select the Extract command from the Methods View menu.

    • In the Methods View Browser, right-click on the method view whose methods you want to extract and then select the Extract command from the popup menu that is displayed.

    The Extract dialog is then displayed, with all options other than the selected Multiple Schemas option button disabled.

    The file name defaults to the name of the current schema, with a .mul suffix.

    The syntax of the multiple schema file for methods extracted from a method view is as follows.

    #MULTIPLE_SCHEMA_EXTRACT
    schema-name_method-view-name.scm schema-name_method-view-name.ddb|ddx
    schema-name_method-view-name.scm schema-name_method-view-name.ddb|ddx
    schema-name_method-view-name.scm schema-name_method-view-name.ddb|ddx
    ...

    The following is an example of a method view multiple schema extract file.

    #MULTIPLE_SCHEMA_EXTRACT
    NoteTest_MyMethodView.scm NoteTest_MyMethodView.ddb
    PrintTest_MyMethodView.scm PrintTest_MyMethodView.ddb
    SortTest_MyMethodView.scm SortTest_MyMethodView.ddb
    TestSchema_MyMethodView.scm TestSchema_MyMethodView.ddb

    The methods in each schema in your methods view are extracted to a separate pair of .scm and .ddb or .ddx files, depending on the value of the Use DDX style (xml format) as Default instead of DDB check box on the Schema sheet of the Preferences dialog, for each schema. The multiple schemas extract file itself contains merely a list of these file names. For details about multiple schema extract files, see "Extracting Multiple Schemas", in Chapter 10.

  2. In the Multi Extract File Name text box, specify the name and location of the methods view multiple schemas file you want to extract.

    If you do not specify a location, the file is extracted to your JADE working directory (for example, c:\jade\bin\MyMethodView.mul).

    If you want to extract the methods in the methods view to an existing multiple schemas file or you are unsure of existing file names or location, click the Browse button. The common File dialog is then displayed, to enable you to select the appropriate file or location, if required.

    When you extract a method view, all methods in that view are extracted to a partial schema file. You cannot encrypt the saved methods view in the multiple extract file.

    If the multiple extract file does not have the same absolute path as the schema and forms definition files containing the class or classes in which the methods are defined, a load error is encountered when you attempt to load the extracted methods view into your JADE database.

  3. Click the OK button to continue with the method view extraction process. Alternatively, click the Cancel button to abandon the extraction.