Well, for the list scrolling pattern. We want to use the data that is found within our filteredLists. We DO NOT use the original data set to scroll through the list as it contains all of the data prior to filtering. The filteredLists will always have a lesser or equal length of that of the filteredLists (more often than not its lesser and almost never equal). We traverse through the filteredLists as that is our new data that we actuall want to access. Hope this clarifies it. 🤞
I'm doing something similar to this but when I choose from my drop-down menu, it displays the last element in my list. Does anyone know why that would happen?
Hello Abdul, I think this is what you meant: var list = []; onEvent("text_input1", "change", function( ) { var item = getText("text_input1"); appendItem(list, item); setText("text_input1", ""); setProperty("dropdown1", "options", list); }); Let me know if this helps. Remember to test this program in a new project first so that you can eventually add it to a larger project. I used a text input and a dropdown on the interface. Change the onEvent from "click" to "change".
Best of luck with debugging. I tend not to help during period when people are doing the Performance Task. I do have a video on all about helping debug the most frequent issues. Its on my chanel. Best of luck once again! :)
@@MyCodingJourney318 what do you mean by Performance Task? I'm a teacher looking to create my own app as an example and trying to help students who want to use the same type of filtering system, but we keep coming across this issue, even when I'm replicating your code line by line to just understand how everything works. It's a little odd that your code would work fine and my version pops up with an error
So I'm going to write pseudocode: if element < option1 if element == option2 append element to filter list Nesting if statements make its easier to write code apparently... students sometimes struggle using the compound or logical operators &&, ||: if element < option1 AND element == option2: append element to filter list
You saved my grade fam appreciate it
😎
Thank you sir, this cleared up some of my doubts and troubles
Glad to hear that
hey can you briefly explain your list scrolling pattern? with the onevent button click
Well, for the list scrolling pattern. We want to use the data that is found within our filteredLists. We DO NOT use the original data set to scroll through the list as it contains all of the data prior to filtering.
The filteredLists will always have a lesser or equal length of that of the filteredLists (more often than not its lesser and almost never equal).
We traverse through the filteredLists as that is our new data that we actuall want to access.
Hope this clarifies it. 🤞
Is there any way to dynamically populate Choices dropdown ? why typing manually ?
Here it is: ua-cam.com/video/K39InX8FNO4/v-deo.html
I'm doing something similar to this but when I choose from my drop-down menu, it displays the last element in my list. Does anyone know why that would happen?
I would have to see.
why does it have to be string lowercase?
I like to compare strings in its lower case form so that I don't have to worry about capitalization.
"This Word" is not the same "this word".
Is there a way that I can create values of the drop down my self. Then I make that whatever value the user picks equal to a value in the list
Hello Abdul,
I think this is what you meant:
var list = [];
onEvent("text_input1", "change", function( ) {
var item = getText("text_input1");
appendItem(list, item);
setText("text_input1", "");
setProperty("dropdown1", "options", list);
});
Let me know if this helps. Remember to test this program in a new project first so that you can eventually add it to a larger project. I used a text input and a dropdown on the interface.
Change the onEvent from "click" to "change".
Hey so, I did find a video I also created on what I think you are asking about:
ua-cam.com/video/K39InX8FNO4/v-deo.html
how do you make it output everything in the list (i'm also using 3 lists)
actually never mind; thanks for the vid btw!!
:)
Can I use this even tho my drop-down and my result page isn’t on the same screen? Because I’m doing a us states and the capitals
Yes, you sure can. Just make sure the IDs match. 😊
How can i search with location states as the options in the dropdown
rephrase your sentence. I don't understand what you are asking me. 😊
How do I make my list update because it’s stuck on outputting the first thing on the list
list[i]
My watchers said the filtered lists have 0 please help
This will help debug: ua-cam.com/video/FPVVhpiachI/v-deo.html
Hey, i did a code similar to you but it is not working. I was wondering if you cant help. Thank you.
Best of luck with debugging. I tend not to help during period when people are doing the Performance Task. I do have a video on all about helping debug the most frequent issues. Its on my chanel. Best of luck once again! :)
@@MyCodingJourney318 Hey, I used this code segment for my function for the Create Task so do I need to cite this or is there no need to?
@@fcjimmy1526 did you cite him?
i keep getting the error: "population.toLowerCase is not a function" why could this be?
I do not help within the timeline of the Performance Task. Sorry but best of luck!
@@MyCodingJourney318 what do you mean by Performance Task? I'm a teacher looking to create my own app as an example and trying to help students who want to use the same type of filtering system, but we keep coming across this issue, even when I'm replicating your code line by line to just understand how everything works. It's a little odd that your code would work fine and my version pops up with an error
thank you so much man, ur the best
Glad I could help
my outputs said they were undefined, help
Well, I need to know the context...
if you are trying to setText... do this on the right input for the setText block "" + yourList or element.
@@MyCodingJourney318 i’m also having the same problem
@@monrovaproductions2667 have you figured it out?
@@Bruhbruh01938 dude im doing the ap computer project and i havent finished and its due monday
@@mackinthemoon LOL me too
Thanks bro
Welcome bro.
I LOVE YOU
Hello i was wondering what to do if you have two dropdowns and need to filter both at the same time to combine the output.
IM DOING THE SAME THING
So I'm going to write pseudocode:
if element < option1
if element == option2
append element to filter list
Nesting if statements make its easier to write code apparently... students sometimes struggle using the compound or logical operators &&, ||:
if element < option1 AND element == option2:
append element to filter list