3 Replies Latest reply: Apr 5, 2018 1:23 PM by Erik Wetterberg RSS

    Field API Select Method does not work on complex field

    Ilya Komlyakov

      Hi everybody,

       

      I've got the following code:

       

      var test = app.field("=if(len(someField)>0,anotherField)").getData();

       

      test.OnData.bind(function(){

           test.rows[0].select(true, true);

      });

       

      or another option:

       

      app.field("=if(len(someField)>0,anotherField)").selectValues(["Some val from response"], true, true);

       

      The problem is that getData() returns the right collection of values for this expression, but none of the select methods work.

      Also those methods rise no exception or warnings.


      Does anybody know what's wrong with my code or Field API?

       

      Thanks