4 Replies Latest reply: Apr 4, 2018 8:35 AM by Ilya Komlyakov RSS

    How to use Expression in "searchResults" method (App API)?

    Ilya Komlyakov



      I'm trying to implement search and filter functionality for my extension. For this purpose I'm using searchResult method.

      As I understand this method could search by field in the model, but not by expression.


      So the question is: How to search by Expression with help of API?


      (For example: we have we have following fields in the model: UserName, ChildrenCount.

      I want to search by field =if(not IsNull(ChildrenCount) or ChildrenCount = 0, UserName))