Problem link in ajax

Hi, I have a grid dedicated to customers who recall the content of the customer database, then I have a database orders where each order is associated with a customer field
id_ordini = cod_ordine (the database client)

in the grid customer I created an HTML button with an event where IMAGINE ajax I would create a link that invokes the order detail through the grid in cod_ordine ORDERS

my code is:
sc_redir (‘grid_prenotazione_h?id_ordini={cod_ordine}’);

but the grid that opens does not filter the display of single order … where am I wrong ???

Hello, no one knows how to help me ???

hi could you try to change the values of the sc_redir parameters and test? try static values first instead of {cod_ordine} or any other variable variable