Use methods in where statements
Table table; select * from table where this.id != table.id && this.foo(table); I am trying to make a selection from a table in X++ code. The table is compared against a record from the table ( this ). A record shall be added to the selection if the id of the record and another record from the table do not equal and several other conditions in foo() evaluate to true. The plan is to make this.foo(table) evaluate the record together with each other record in the table. When I insert the code from foo() directly into the call, it works just fine. However, when calling the method, it appears like