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

RE: X++ Count Distinct CustAccount

$
0
0

Hi Visvash,

while Select count(custAccount) from CustInvoiceJour

join DriverShipTableDet where driverShipTableDet.InvoiceNo == this.InvoiceId

 join driverShipTable group by driverShipTable.SeqNo

where drivershipTable.SeqNo == driverShipTableDet.SeqNo

{

return this.custAccount;   //The operand is not compatible with the type of the method.

}

It's throwing "The operand is not compatible with the type of the method". custAccount is string data type. Like I mentioned above, the method is supposed to return the count, which is integer.

Thank You.


Viewing all articles
Browse latest Browse all 175888

Trending Articles



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