Get Component values from custom button event

Hello, I’m trying to get the field values from a search component so I can use them with my custom button. I don’t know what I’m doing wrong.

TB.render(‘component_22’, function(data) {
//add custom code here
console.log(‘component_22’, data);
var id_semana_programacion = $(’.test’);
console.log(“id_semana_programacion”, id_semana_programacion);

I get none of my logs in the console.

Best regards,

Is component_22 the search component?

Yes, it is: