Cascading select
gfsoluzioni opened this issue · 11 comments
please drop a snapshot of the route and function on the endpoint and a snapshot of the javascript console when selecting an option.. thanks
please drop a snapshot of the route and function on the endpoint and a snapshot of the javascript console when selecting an option.. thanks
Hi, thank you for the reply and I apologize for the previous post, but I'm not afraid of a diet that alone won't cause me problems. I invite you to your richest screenshot:
I look forward to hearing from you and thanks again for the help
Please try something along these lines
This is how i satisfy the select components requirements
Gather the result with eloquent and just build out an array containing the expected values
And secondly use a post route, you will be able to clearly see the type of request actuated by the interface on the change event... open the network monitor and view the request. You will see a response. This end point is not supported....
Please use a post endpoint. The select component handles tokenization
Seems I can't help further here, I have used the component a multitude of times across multiple projects,
Please step over the process you followed to implement the select, it does work, I am unable to see the direct cause of the issue, something small most likely, else you will need to be patient for another community member who can perhaps see what the problem is
Sembra che non posso aiutarti ulteriormente qui, ho utilizzato il componente una moltitudine di volte in più progetti,
Per favore, ripercorri il processo che hai seguito per implementare la selezione, funziona, non riesco a vedere la causa diretta del problema, qualcosa di piccolo molto probabilmente, altrimenti dovrai essere paziente per un altro membro della comunità che forse può vedere cosa sta succedendo il problema è
All this is very strange also because I followed the documentation to the letter and as you can see from the screenshots of the first ticket the api method correctly processes the json for populating the second select. Is it possible that this doesn't work because I used the form method inside an Action class, therefore when opening a modal popup? Also can I ask you and then I won't bother you anymore for a complete example? Maybe I'm wrong. I thank you in advance
it could be, I am not sure how the author handles it, but i know the popup form does ask to please keep it simple for now, i think the best thing is to actually try it in a normal form and see if it works, i am not sure a popup form is able to handle the load etc,
best way is to try it and see,
You are not bothering me, if i am able to assist when i can i will, if im not able to assist or do not have an awnser for you then i cant help, nothing funny about it
I'm not able to find the documentation snippet now but yeah try to keep it simple on the popup form i dont think it has all the functionality, but best is to try and see with a controller form
I'm not able to find the documentation snippet now but yeah try to keep it simple on the popup form i dont think it has all the functionality, but best is to try and see with a controller form
Yes, I confirm that it works from the controller. Too bad it doesn't work inside an Action class called via modal popup. Thanks again for your support and time
could you solve it? i have same isue, json response correctly but 2nd select does not fill
I've done it in my own project, probably some Miss in the one of the following,
- Id in parent select, (maybe doesnt match)
- Create router that catch the post url, (maybe go somewhere else)
- Create function so it'll catch $query parameter, to get other array for the 2nd select (maybe missed it)
- Return the 2nd array with exact format as the example. Last time i finalize my return format with return response()->Json($myreturn);
- Repeat if multi cascade.