hello everyone
can anyone help me.
i learn about marking in ax 2012 to get sales id dan custaccount and i get example like this :
private void countFromFN2(ProdId _prodIdFN2)
{
prodTable = ProdTable::find(_prodIdFN2);
getProdMarking = new AGSGetProdMarking(prodTable, InventDim::find(prodTable.InventDimId));
markedProdConFN2 = getProdMarking.getMarkedProd();
markedQtyConFN2 = getProdMarking.getMarkedQty();
containerPROLength = conLen(markedProdConFN2);
for(counterPRO = 1; counterPRO <= containerPROLength; counterPRO++)
{
prodIdPRO = conPeek(markedProdConFN2,counterPRO);
prodTable = ProdTable::find(prodIdPRO);
getProdMarking = new AGSGetProdMarking(prodTable, InventDim::find(prodTable.InventDimId));
markedProdConPRO = getProdMarking.getMarkedProd();
containerPSTSLength = conLen(markedProdConPRO);
for(counterPSTS = 1; counterPSTS <= containerPSTSLength; counterPSTS++)
{
prodIdPSTS = conPeek(markedProdConPRO,counterPSTS);
prodTable = ProdTable::find(prodIdPSTS);
getProdMarking = new AGSGetProdMarking(prodTable, InventDim::find(prodTable.InventDimId));
markedProdConPSTS = getProdMarking.getMarkedProd();
containerSOLength = conLen(markedProdConPSTS);
for(counterSO = 1; counterSO <= containerSOLength; counterSO++)
{
salesId = conPeek(markedProdConPSTS,counterSO);
_salesTable = SalesTable::find(salesId);
if(_salesTable)
{
_soTemp += salesId;
_prodTemp += prodIdPSTS;
_custTemp += _salesTable.CustAccount;
_simbulTemp += InventDim::find(prodTable.InventDimId).InventColorId;
select firstFast firstOnly _salesLine
where _salesLine.SalesId == salesId
&& _salesLine.ItemId == prodTable.ItemId;
_noExtTemp += _salesLine.ExternalItemId;
}
}
}
}
}
how to show all the data that i get in salesid variable. when i show the data all the data i get are show together in one line
exmple like : D00032D00042D00056
but i want to show the data like : D00032
D00042
D00056
because from that sales id i should search a custaccount from salestable
thanks,
*This post is locked for comments