Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

changecompany not changing the company please see the below code

$
0
0

display CompanyName companyName()
{
CompanyName nameOfCompany;
axpContractTable contractCompany; // trying to check companycode field from this table
CompanyInfo company;

;
// contractCompany = axpContractTable::find(warehouseTable.ContractId);
//if (contractCompany.CompanyCode)
while select contractCompany
{
if (contractCompany.dataAreaId == '003')
{
changecompany(contractCompany.CompanyCode)

{
nameOfCompany = CompanyInfo::name();
}
}
if (contractCompany.dataAreaId == '014')
{
changecompany(contractCompany.CompanyCode)

{
nameOfCompany = CompanyInfo::name();
}
}
}

return nameOfCompany;
}


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>