How do I invoke a click event on a tab or Go to First Record of a grid?

I have a tab application with several tabs. Upon a button click on one of the grids, I set some variables. I would then like to be able to call the click event on the same tab because I need the iframe to reload (I have set the tab application to reload the iframe). On ScriptInit I then set the where clause based on one of the global variables.

A simple sc_redir won’t reload the iframe, so I can’t use that option. The reason why I’m having to reload, is because unless the user is on page 1 of the data when the button is clicked, the correct records won’t be returned. It’s only if I reload the iframe, which takes the user back to page 1, that the filter will work.

Another option may be to programmatically call the Go to First Record button; if that is an option, then I’ll gladly try it!

Hi mantaprojects. Did you find a way to handle an “OnClick” event on a tab?