Select With Input Get Key for Redirect #16036
Unanswered
CynthiaBlue
asked this question in
CLI - Electron mode
Replies: 1 comment
-
Okay nevermind, I had to add a v-model and passing that works. Another question though, where I initially do the database call, how can I sort the results that I get? I want to sort them for display and a regular sort isn't working.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using a select which searches a database table and shows the user all the dogs in a table. This works fine and the user can type in a dog's name, and a filter is used to narrow down the options.
What I'm trying to do is pull the dog's key out of that field to send it to a method so when a certain dog is clicked, the user is redirected to another page with detail information about that dog.
So basically I need to pull the dog's key out of the filter and pass it to the method, and I don't know how.
As the user types in the select and the dogs are narrowed down, say 2 dogs are left in the results from the filter. If I use the following code, it passes both of those results to the method, but I only want the dog that is clicked on, not all the results from the filter. If the user just clicks on one of the dogs in the drop down without typing anything in, the entire array of dogs is sent to the method. How do I just get the one selected dog's key sent to the method?
Thanks!
This is my code:
Beta Was this translation helpful? Give feedback.
All reactions