Good morning, I have a problem that I have been looking for a solution, I am passing a dataTable that is initialized by the client view, with the ajax method to load everything on the server side, so far it was easy, I managed to recover all the data which I need, but in the dataTable that didn't use ajax, I had a hyperlink that passed a parameter to enter another view, but now when I create the hyperlink it works fine, but the parameter takes me as a string instead of retrieving the value that I give it I want to pass.
I pass the code of how I perform the hyperlink creation process in columns:
$(document).ready(function(){
$('#usuarios').DataTable(
{
// processing: true,
serverSide:true,
responsive: true,
ajax: "{{route('dataTable', $procesoElegido)}}",
dataType: 'json',
"columns":[
{data: 'proceso.user_proceso.Matricula'},
// {data: 'proceso.user_proceso.alumno_perfil_user.Nombre'},
{
data: null,
render: function (data, type, row)
{
return '<a href="{{ route('progresoDocumentacion','$id=data.proceso.IdProceso')}}">' + data.proceso.user_proceso.alumno_perfil_user.Nombre + ' ' + data.proceso.user_proceso.alumno_perfil_user.APP + ' ' + data.proceso.user_proceso.alumno_perfil_user.APM + '</a>';
}
},
In the second data column it gives me the error, specifically in the href, when I try to pass the variable, I have tried it in several ways, at first I thought that I am using the single and double quotes wrong, but still I keep getting error, when I enter to the hyperlink, the URL comes out as follows:
"http:// 127.0.0.1: 8000/ user process/%24id=data.process.ProcessId"
When in reality I should be passing a numeric value that I try to pass through data.process.IdProceso.
Well, maybe it is something easier to do and due to ignorance I have not observed or detected it, I hope someone can help me, thanks.
**: