OnClick with Link activated do nothing

Dear all,
I’m fighting with a grid where I added a HTML image icon field .
I got a Link that connect the clicking of icon to a blank application.

I would like in the same time insert some checkings about the row grid field content like… if field01 is empty …alert ect. etc.

I’ve tried to add something within the OnClick code but nothing at all happens… Also echo "I’m here "; nothing .!!!
All the dots on the left are red !!

Is it work in someway or in some language or is it stucked/blocked by default ??
Bye

The only way function is that you can apply a link to the image. Onclick simply doesn’t work. I reported this in V6, but this is designed behaviour as I was told. So you need to do this in your blank application. (I guess it has to do that it’s a grid and no form)

Ok , thanks ;-((
The ugly thing is that if you do the check on blank application you are out of the grid and so the alert message comes out in a blank page and then you have to make the redir…

I did something like that

if ([glo_QuantityRow] == ‘’)
{
echo ‘<script> parent.alert("Quantity must be > 0 !!! "); </script>’;
sc_redir(hhh_grid_products_for_order, “”, “_parent”);
}
elseif (price != 0){
echo ‘<script> parent.alert("Price must be different than 0 "); </script>’;
sc_redir(hhh_grid_products_for_order, “”, “_parent”);
}

I agree. Other option is to use a run button and you check the records to be processed. But …