Forum Discussion

kaiiii's avatar
kaiiii
Regular Contributor
7 years ago
Solved

Find a Text in List view

Find a Text in List view. The problem is wItem and wSelectedItem containing no value but there are 19 entries in wItemCount.
When i use Obj.TouchItem(2) , then it is clicking on item 2 in list view, but i need to pass "Text" in place of integer value.

  • kaiiii's avatar
    kaiiii
    7 years ago

    Hi Marsha_R,
    Yes .. Problem will be resolved by your suggestion, but i think it will be too lengthy if there are 19 entries.
    Any way problem has been resolved by using GetItemAtPosition.Code in place of wItem.
    It showing all the element containing by the list.

3 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    Using the Object Browser and / or Object Spy, try to find an object that contains list elements and find a way to select required element from the found object.

    Otherwise, talk to developers and ask them for their recommendation.

    • Marsha_R's avatar
      Marsha_R
      Champion Level 3

      If it's a fixed list, you can always build your own text->number translation

       

      if text = "A" then click 1

      else 

      if text = "B" then click 2

       

       

      etc

      • kaiiii's avatar
        kaiiii
        Regular Contributor

        Hi Marsha_R,
        Yes .. Problem will be resolved by your suggestion, but i think it will be too lengthy if there are 19 entries.
        Any way problem has been resolved by using GetItemAtPosition.Code in place of wItem.
        It showing all the element containing by the list.