Does SalesOrderAdapter have InvokeSearch method?


(Youdao Zou) #1

I could not find InvokeSearch method for SalesOrderAdapter in Object Explorer (Epicor 10.2.100.6). However a post on this forum (SalesOrderAdapter) seems to suggest the method does exist. However, when I tried the code in that post, it bombs on InvokeSearch method.


(Chris Conn) #2

I don’t see that method in Reflector. Base adapter method maybe?


(Jason Hecker) #3

@yzou555 - Can you elaborate on ‘it bombs’?


(Chris Conn) #4

You could using this with a whereclause:

public OrderHedListDataSet GetListCustom(string whereClause, int pageSize, int absolutePage, string customClause, out bool morePages)


(Youdao Zou) #5

Thanks, Jason. It generates a run time error on the line calling InvokeMethod. The error message is “Object reference not set to an instance of an object”. On which version of Epicor you get your code working?


(Youdao Zou) #6

Thanks, Chris. I will try that.