Sunday 13 August 2023

Create new form D365 FnO

                                                             Create new forms

Create the form

·       Right click on project and add new form “MyNewForm” in your project, a form is added to the project. Open the project to see designer

·       Add a Data Source to the Form, Expand MyNewForm so that the Data Sources and Designs nodes are visible. Drag Sales Table onto the Data Sources node of the form.

·       You can also create a form data source by right-clicking the Data Sources node of MyNewForm, and then clicking New Data Source. Use the Table property to select Sales Table.

Form controls belong to one of three groups, depending on their data source as follows:

·        Bound control – associated with a field in an underlying table. Use bound controls to display, enter, and update values from fields in the database.

·        Unbound control – does not have a data source. Use unbound controls to display pictures and static text.

·        Calculated controls – uses a method as the data source. An example of a calculated control is the sum of two fields on a form.


Add a control and fields to the Form

·       Right click the Design node of MyNewForm. In the properties window, click Caption and type Sales. The value in the Caption property appears in the title bar of the form.

·       Click Title Datasource and select salesTable from the drop-down list.

·       Right-click Design, click New Control, and then click Grid.Click the grid in the Design node. In the Properties window, click Width and select Column width. Click Height and select Column height.

·       Expand the Data Sources > SalesTable > Fields node of MyNewForm.

·       Press Ctrl and then click AssetId, Name, SerialNum, and Model. Drag the highlighted fields to the Grid in the Design node of MyNewForm.

 

Add a Button to the Form

·       Right-click Design, click New Control, and then click Button.

·       In the Properties window, click Text and type Sales order.

·       Expand the node for the new button, right-click Methods, click Override method, and then click clicked.

·       Right-click the clicked node, and then click View Code. The clicked method opens in the code editor.

 

 

Add the action pane

·       Go to Designs in forms, right-click Design, point to New Control, and then click ActionPane. An action pane control is added to the Design node of the form.

·       Properties

Name - Enter a name that identifies your action pane.

Style - Standard

Vertical Spacing - 0

Width - Column width

Add an action pane tab

·       Right-click the action pane control, point to New Control, and then click ActionPaneTab. An action pane tab control is added to the action pane.

·       Properties

Name - Enter a name that identifies your action tab.

Caption

Add an action pane button group

·       Right-click the action pane tab, point to New Control, and then click ButtonGroup. A new button group control is added in the AOT.

 

Add an action pane button

·       Right-click the button group control, point to New Control, and then click the type of button you want to add to the group. The new button is added to the button group.

·       For example, you click CommandButton to add a button that performs a specified Microsoft Dynamics AX command.

 

 

 

 

No comments:

Post a Comment

Data Entities in D365 FnO

  Data management - Data entities ·        Data entity is a conceptual abstraction and encapsulation of one of more underlying tables. ...