Hello
I am developing in x++ recently so I don't know alot of things. I was trying to limit my rows that I get from a while loop with a select. I already searched the forum here, but I only found an unsolved question in terms of what I was searching (http://community.dynamics.com/product/ax/f/33/p/64433/116870.aspx#116870).
I only want to get back 10 addresses for example, but limit doesn't seem to work. I also found something like firstOnly10, but that doesn't work either.
So here is my code that I am using:
while select AssetId from mcsConnectionTable
join mcsAssetTable
where mcsConnectionTable.AssetId == mcsAssetTable.Id
join mcsAssetLocationTable
where mcsAssetTable.RecId == mcsAssetLocationTable.Asset
join logisticsLocationTable
where mcsAssetLocationTable.Location == logisticsLocationTable.RecId
join logisticsPostalAddressTable
where logisticsLocationTable.RecId == logisticsPostalAddressTable.Location
{
...
}
I hope someone can help me out.
Thanks in advance.
Vincent
*This post is locked for comments