So, as I am doing the tutorials of this app, I encountered some problems, and I don't know what I'm doing wrong, can you guys help me? I don't know how will I explain this, but this is what happening and this is the screenshot of my blocks.
So it's working in Aglaonema Plants, but when I chose the plants under the Snake Plant Category, it output the last type of plant I chose on Aglaonema Plant Category.
Note you call 5 Procedures in Aglanonema but do not in any other catagory. What happens if you request Snake Plant first? Does the next selection work properly?
consider sharing your aia and/or ALL your Blocks; someone might try to debug the app for you
copy your Project as.... Delete all the code except what is needed to select two categories in the copy of the app and debug yourself . The app should be easier to debug if you use a minimal number of code Blocks to make it work. When you get it working, smile.
post the code in your call 'plant_name'.Refresh Blocks. It is not clear where this information comes from. Are you using a ListView renamed TutorialCategory to access a database ? A guess: What might be happening is your app does not provide sufficient time to allow execution and you need a Clock to slow down execution. What kind of database are you using?
Your videos are interesting; unfortunately they don't help someone who does not have the aia understand what might be wrong.
I would structure this differently but what bianchix coded can work. Procedures? Sure but I am not sure there would be anything to gain. Rather he could eliminate quite a few blocks by deleting some blocks everywhere and using two blocks outside the conditional if provided that every one of his conditionals are executable. If all the conditions are not possible, placing the two Blocks outside the if would create issues.
Perhaps you could offer advice on how to use Procedures in this instance. I don't see much room for improvement but... There are always several different ways code can be structured to be effective.
See if you can also locate the several other places he still has issues and can eliminate code. He is a beginner and even experienced coders refactor their initial code to improve readability, avoid redundancy and improve execution.
I think, I know the prob. I made it work without clicking the proceed button. After picking the type of plants it automatically proceed on the tutorials, I just need to call each procedure under the listview.