How set some search field form in a grid form

Hi all,

I’ve a grid form with a search form as header form.
Within the search form I got the classic “Clean” button.
I got some pre filled field on this search form that correctly disappear when you click the Clean button.

Now I would like to reset to original pre-filled lookup value a couple of field but I do not have any event connected to Clean action
{PRINTER_PORT}=‘USB’;
{PRINTER_NAME}=‘SATO’;

Is it possible ??

clean.jpg

Hi,

I need to do the same, so far, I can not. I try in the event onValidate call the sc_javascript macro, but no work, no open the detail grid, also try in onScriptInit event in detail grid part, but return a error like javascript function is not in the code. My problem is that after validate the search form, insert a record and show al records that make martch with the field, but after this proccess, I mean, after show the records, need that search form be clean with a javascript function or reloading the search form.

Thanks and regards.