Announcements
Dear great minds i want to convert this display method into field for PurchLine grid in ax2012 particularly i am facing issue to set condition where to set this condition ?
[SysClientCacheDataMethodAttribute(true)] display PurchLineShowItemName itemName() { PurchLineShowItemName purchLineShowItemName; if (this.ItemId) { purchLineShowItemName = this.inventTable().itemName(this.inventDim()); } else { purchLineShowItemName = this.Name; } return purchLineShowItemName; }
Hey Wajahat, are you asking how you create a display method in F&O or how you write a database upgrade script to use when upgrading an AX2012 database into F&O?
No my question is i have code written on display method i want to convert it into field to show on PurchLine grid ..We can do it by using quries and views but having trouble to set the condition above .Where can i write code for condition ?....
Hi Wajahat Wasti,
If you need to convert a display method to field you need to add a table that contains "PurchLineShowItemName" field value to the form datasource and add the join source with already existing datasource.
Thanks,
Girish S.
Hi,
On which table this method is written and on which form you want to add this as field.
Ideally, if the table is part of datasoruce on form, you should be able to add a string in design and set 'data source' and 'data method' property to convert this as field. In case you are not getting drop down in 'data method' property you can type 'PurchLineShowItemName' manually.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 671
André Arnaud de Cal... 621 Super User 2026 Season 1
Abhilash Warrier 589 Super User 2026 Season 1