Highlighting all the records in a grid (including NOT loaded ones)
Let’s say we have some Control in a Form of type CheckBox, Button or StringEdit and we want it them once modified/clicked to update the form grid by selecting all the records in a grid.
An example of While/Select statements to find InventSerials, when Works Order is known. Here I also will use a chance to note the ListEnumerator. No Joins are used in this example.
An example of achieving same result using Queries.
TCP/IP Client based on an example in my C# code. This example demonstrates how to send a string to TCP/IP Server and receive response back from it. The response is being read in batches.
The solution can be easily converted to Inbound Service.
publicstaticbooleanexistsSerial(str20_serial){return_serial&&(selectfirstOnlyRecIdfrominventSerial/* index hint GroupIdx //index hint is IGNORED in AX 2012. */whereinventSerial.InventSerialId==_serial).RecId!=0;}