web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Dynamics 365 Vs Me / How to add new fields/Metho...

How to add new fields/Methods in Listpage from in AX 2012

Deepak Agarwal Profile Picture Deepak Agarwal 8,602

How to add new fields/Methods in Listpage from in AX 2012

Here we use Production Order list page for example

Open Production order list page from below link

Production control/Common/Production orders/All production orders

clip_image002

Now we need to add one new field “Serial Number” in this grid (Assuming there will be only one item in one Production order in every case).

This serial number is available in “Transaction” from of this production order.

Untitled

Now to display new fields you can add a new display method in table and drag-drop this method in grid as field.

Add one new method in “ProdTable” table add copy below code

display InventSerialId inventTransInventSerialId()

{

InventTransOrigin InventTransOrigin;

InventTrans InventTrans;

;

select InventTrans join InventTransOrigin

where InventTrans.InventTransOrigin == InventTransOrigin.RecId &&

InventTrans.ItemId == InventTransOrigin.ItemId &&

InventTransOrigin.ReferenceId == this.ProdId &&

InventTransOrigin.ItemId == this.ItemId;

return InventDim::find(InventTrans.inventDimId).inventSerialId;

}

Now set DataSource property of this new field as ProdTable. Save your from and compile for any error.

Now open this from, here is your from

clip_image008

 

-Harry


This was originally posted here.

Comments

*This post is locked for comments