Ask a Question

Find by text in ListView Android Mobile

David91
Frequent Contributor

Find by text in ListView Android Mobile

Hi,

 

I can't find in the listview the item by ControlText on the layout which is in the list.

 

Object path:
Aliases.Device.Process_androidclient.Layout_NO_ID.Layout_action_bar_root.Layout_content.Layout_vmc_main_content_area.ListView_vmc_screen30_list. Layout("NO_ID").Layout("NO_ID").Layout("vmc_list_row_other_lines").Layout("NO_ID", 2).Layout("NO_ID").TextView("vmc_list_row_sub_column_value")

 

Layout("NO_ID", 2) - number 2 is second item (layout) in list. And controltext is in TextView on Layout.... (picture)

 

David91_0-1624442702525.png

 

Thank you for your advice πŸ™‚

 

 

5 REPLIES 5
sonya_m
Community Manager

Re: Find by text in ListView Android Mobile

Thank you for submitting the query! Let's see if the Community can help!

 

@abishekhari007  @jr348 @A_Roskoshnyi any thoughts on what's going on here?πŸ™‚


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
abishekhari007
Contributor

Re: Find by text in ListView Android Mobile

A_Roskoshnyi
Contributor

Re: Find by text in ListView Android Mobile

If you are looking for an element by ControlText, then you may need to use property "Parent".

Try it like this:

var text_object = Your_AliasObject.FindChild("ControlText","1001NA21000011",10);

var list_item = text_object.Parent;

sonya_m
Community Manager

Re: Find by text in ListView Android Mobile

Thanks a lot, Community!

 

@David91 did the advice help? Please share your solution.


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
David91
Frequent Contributor

Re: Find by text in ListView Android Mobile

I try it thank you

cancel
Showing results forΒ 
Search instead forΒ 
Did you mean:Β