Associating Secondary Pages With Primary Pages

You can use two page controls to associate a secondary page with a primary page:

  • Insert a push button or link page control on the primary page.

    When you use this control type, you must set the Type properties to invoke the secondary page. At runtime, when the user clicks the push button or link, the secondary page appears. Use this control when:

    • You need no procedural PeopleCode logic before the secondary page appears (PeopleCode can be used on the secondary page just like any other page).

    • You want to control the formatting of the information (therefore, you want to use a page and not use the Prompt function).

    • You use the secondary page multiple times.

    See Using Push Buttons and Links.

  • Insert a secondary page control on the primary page.

    This control looks like a command push button, but it is invisible at runtime. When you use a secondary page control, you must also insert and configure a push button on the primary page. After you set the push button Type properties to invoke Command PeopleCode, you then call any of the DoModal* PeopleCode functions from the FieldChange event for the push button to display the secondary page.

    See Inserting Secondary Page Controls.

    See Using Push Buttons and Links.

    See PeopleCode Language Reference: Modal Windows and Secondary Pages.