Sunday, February 14, 2016

Extension capabilities of AX 7 (in CTP 8) – Forms

In my last post, I had discussed about extension capabilities of Table. In this post  will cover extension capabilities of forms.

There are many form extension examples available in AX7.

I will take example of SalesTable.Extension.


Searching for element in AX 7 has become very user friendly. I loved the way it works.




To demonstrate all the capabilities I have created a new extension of SalesTable : SalesTable.FDDXXXExtension
By default when you create an extension, its name will be <ParentObject.extension>. You can rename it as you want.
You can do the following in the AX 7 form extensions:

Add new datasource:

I have added new datasource VINExampleTable to SalesTable.FDDXXXExtension.



As you see in the above screenshot, you can see the each new datasource added to the extension in Application Explorer.

Add new controls:

I have added a new string edit control: VINExampleString on overview grid




Change the properties of control:

Only few properties can be changed, they are as follows:

Visible -> Yes/No
Enable -> Yes/No
Lable -> String
Help text -> String


You can copy the pre/post event handlers for Form methods, Event nodes and datasource event nodes. You can not create event handler on form datasource methods.


You can create event handler node on the event nodes of the datasource fields
You cannot create event handler on methods of the datasoure fields.



You can create event handler node on the event nodes of the controls
You cannot create event handler on methods of the controls.






5 comments:

  1. Can you dynamically create event handlers?

    ReplyDelete
    Replies
    1. Hi Weezul,

      I did not understand what do you mean by that question. Can you please elaborate the scenario and what are you trying to achieve?

      -Vinit

      Delete
  2. This comment has been removed by the author.

    ReplyDelete
  3. How to open extension form instead of instead of standard form?

    ReplyDelete