Set Refined Search Parameter For Grid

I need to have my refined search for my grid come up with a parameter already set. The parameter name is “Active Only” and the function call I’m using is as follows:
nm_proc_int_search(‘link’,‘nn’,‘Active Only’,‘active’,‘0##@@Yes’, ‘active’, ‘’);

Following advice from other posts on this forum, I tried putting this in the footer as follows:
?>
<script>nm_proc_int_search(‘link’,‘nn’,‘Active Only’,‘active’,‘0##@@Yes’, ‘active’, ‘’);</script>
<?php

But it does nothing after the grid comes up. I tried putting it in a button and it works perfect, but what I want is to have it work automatically after the grid loads.

Any ideas how I might make this happen?

echo ‘<script>nm_proc_int_search(“link”,“nn”,“Statuut”,“statuut”,“1##@@Dep.C/CR”, “statuut”, “”);</script>’;

this works. You need to ECHO and change some brackets too. So start and end with ’ and in between use "

no need to use ?> and <?php

thanks, nonkelmike. I did try your suggestion even before this post, but with the single / double quotations as shown in my first post. So, upon you recommendation, I tried it again, using the echo statement and the whole statement encapsulated with single quotes, using double quotes on the inside. Again, I have this in the on Footer event. Still, nothing happens. It works fine within a button. Any other thoughts?

rsarver@troy30c.org

is the footer on?
if you don’t turn it on in Layout\Header & Footer\Display Footer, the onFooter event wont’ be fired

That was it! Turned on the footer and now it works great. Thanks!!!