Condividi tramite


How to: Create a Content Page

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

A Microsoft Dynamics AX content page is a specialized type of form. To create a content page, use the Application Object Tree (AOT) to create a new form with a WindowType property of ContentPage. The following procedure describes how to use the AOT to create a content page.

To create a content page form

  1. In the AOT, right-click the Forms node, and then click New Form. The Forms node expands and displays a new form.

  2. Right-click the new form node, and then click Properties. In the properties window, enter a unique name for the content page. To save the content page name, press ENTER.

  3. To view the design properties of the form, expand the new form node, expand Designs, and then click the Design node. The properties window displays the form properties. While most form properties can use the default value, set values for the following properties.

    Property

    Value

    BottomMargin

    Auto

    Caption

    Specify a label for the content page.

    LeftMargin

    Auto

    RightMargin

    Auto

    TopMargin

    Auto

    WindowType

    ContentPage

  4. With the basic form created, add the control that you want to use to display data. Right-click Design, click New Control, and then click the type of control.

    Note

    For information about how to use an ActiveX control, see How to: Add ActiveX Controls to Forms.

  5. Click the new control to display its properties. Set values for the following properties.

    Property

    Value

    Height

    Column height

    Name

    Specify a label for the control.

    VerticalSpacing

    0

    Width

    Column width

  6. To save the new content page, right-click the form in the AOT, and then click Save.

With the content page created, add a data source that retrieves the data records. For more information about how to add a data source to a content page, see How to: Add a Data Source to a Primary List Page.

Note

After adding the data source, you might want to override form and control methods that load data from the data source into the control, and respond to user interface events.

To complete the content page, add an action pane. For information about how to add an action pane to a content page, see Walkthrough: Creating a List Page and Adding an Action Pane.

See also

Walkthrough: Creating a Form by Using the AOT

How to: Create a List Page Form

Form Control Properties

Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.