Showing posts with label Using Display Method get StateName in Ax 2012. Show all posts
Showing posts with label Using Display Method get StateName in Ax 2012. Show all posts

Saturday, 26 May 2018

Using Display Method get StateName in Ax 2012

display LogisticsAddressStatename stateName()
{
    LogisticsPostalAddress postalAddress = LogisticsPostalAddress::findRecId(this.DeliveryPostalAddress);
    ;
    return LogisticsAddressState::find(postalAddress.CountryRegionId, postalAddress.State).Name;

}