Hello I am making an app that allows the user to use two dropdown menus to pick a creature and a country and then it displays the fossil picture and info of that creature from that country. I am trying to implement code that will check to see if all the creature and country combinations have been generated by the user (all 6). And If they have it displays the message "You have discovered all the specimens". But my code for this part is not working. I will attach a screenshot maybe someone could help. I think it might have to do with the checkforselections procedure. Thanks!
(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.
Fossil_Category_App (1).aia (918.0 KB)
Note:
I added 2 missing actions, preventing half-selected actions and incomplete resets.
The Is In List error was hard to spot because the error message does not say which parameter was supposed to be the list and which parameter was supposed to be the item.
You can make this more user friendly by:
-
Center the Screen horizontally, and
-
Set the Text of each List Picker to its Selection after Selecting.
Further thoughts:
If you plan on extending the creature and country lists, take advantage of your strict naming conventions to build value functions that can accept creature and country names and return either the associated text (from a dictionary by lookup under name concatenation), or the picture file name (by text JOINs.)
Hello
Thank you so much for taking the time to help me! It seems to all be working now except the "you have discovered all the specimens!" message comes up after 5 out of the 6 combinations are selected by the user instead of all 6. Do you know why this might be happening. Thanks again!
Use the Companion Do It to track the list of selected combinations.
See what is extra and how it got there.
It finally worked! Thank you so much for your help!