¿Por que mi buscador no aplica a todos mis campos? (Symfony 6)
66 views
Skip to first unread message
Luis Vallejos
unread,
Jul 17, 2022, 3:57:34 AM7/17/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to symfony-es
Tengo un proyecto en Symfony 6, tengo una tabla normal que muestra datos desde mi BD y trato de implementarle un buscador (en JavaScript), este funciona para buscar en los campos (nombre, descripción, ubicación etc), pero para los campos Clase y Proyecto (que son foráneos) de otras entidades, no funciona.
Mi tabla:
Mi javascrip:
Pero no busca en el campo que corresponde al foraneo de otra tabla
GRACIAS
Saúl Hernández Arellano
unread,
Jul 18, 2022, 2:59:10 PM7/18/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to symfony-es
Punto 1.- NO tiene nada que ver con symfony. Es JavaScript
Punto 2.- Si usas "
search" envés de "indexOf" ???
Search, es una función "string" mientras que indexOf es de "Array"
Saludos
Luis Vallejos
unread,
Jul 20, 2022, 3:04:01 AM7/20/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to symfony-es
Creo que si es algo de Symfony, ya que cuando esta asi:
No busca:
Pero, cuando esta así: referenciando otro campo que no sea nombre..
Si busca:
NO TERMINO DE ENTENDER POR QUE....
Gonzalo Alonso
unread,
Jul 20, 2022, 9:31:35 AM7/20/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to symfony-es
Definitivamente symfony no es.
Revisa el HTML final generado y el código js.
Podés usar la consola del navegador para hacer pruebas además de agregar algunos log para ver qué pasa.
Luis Vallejos
unread,
Jul 26, 2022, 2:05:59 AM7/26/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to symfony-es
Lo hago, pero no capto donde esta el error la verdad
Luis Vallejos
unread,
Jul 29, 2022, 3:02:57 AM7/29/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to symfony-es
Asi si funciona:
Luis Vallejos
unread,
Jul 29, 2022, 4:08:08 AM7/29/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to symfony-es
Y asi, tambien, pero sin comillas no funciona
No se... pero me funciona...
Santiago Mena
unread,
Jul 29, 2022, 5:38:20 PM7/29/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to symfony-es
Pero caracteres especiales no son eso de "ñ" etc, la verdad, ando perdido con el asunto, probe con otro buscador basado en JS, pareciera que reconociera todo con el mismo nombre, osea no es que no busque, si no que encuentra 3
Santiago Mena
unread,
Jul 30, 2022, 4:52:54 AM7/30/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message