"text_box.on_text_changed" does not work for me

Hello, good evening from Mexico.

I would like to know if someone from the community can help me figure out why my program doesn’t work. I want to integrate this application into another one, and I’m currently using it as a test.

The application is very simple: I want to filter information from some tables that I load into dynamic card views. I have a text box that I want to use to enter a string of text and search in each element of the table. If it finds a match, it should display it again; otherwise, it should skip it.

It seems to me that the “on text change” event of the text box is not working, because when I type a string of text, nothing happens.

If someone would be kind enough to help me, I would greatly appreciate it.

Thank you and best regards,
Javier Antonio González G.

usodecardview.aia (75.7 KB)

1 Like

Not everyone is going to download your aia file, so include your blocks, we can see how you’re handling it :victory_hand:and provide something :saluting_face:

Thanks for replying.
Here are the blocks. I also included two screenshots that explain why I have a switch in the text_box.on_text_changed block. If I remove the switch, it runs on initialization for no reason, and that’s how I control it, as shown in those screenshots.
When I modify the text_box, nothing happens.
That’s why I’m asking.
Thanks again.



does not work for me (:joy::joy: you are special so…)

Sent you the .aia file.

1 Like

Hi dear,

I’m not sure if this is the same way our dear :raising_hands:Vega_Star:raising_hands: solved it, but I also took the liberty of modifying the project.

For convenience, I added the DynamicComponents extension and managed the data using a dictionary, which I believe is the best solution, especially if you plan to connect to a database in the future.

Another suggestion would be to switch to the RecyclerList extension, as it is much more efficient for displaying lists.


usodecardview_fix.aia (117.3 KB)

2 Likes

Obviously, it’s the

I’ll upload the blocks, as soon as I get my hands on the keyboard.

Thanks for your solution, it’s exactly what I was looking for. It restored my faith in Kodular, even though I’m not an expert, but I spent quite a while trying to figure it out.
I really appreciate your help.
Regards

Thank you so much for your help as well.

Regards

The screen 2 blocks :backhand_index_pointing_down:

Screen 3 blocks :backhand_index_pointing_down: are same except the procedure: showPatients (the dynamic components)

The .aia file :backhand_index_pointing_down:

usodecardview.aia (124.9 KB)

1 Like

Thank you so much for your suggestion, I’ve already run it and I find it interesting as well.

Thanks and regards.