>>Second
>>======
>> now, choose COMPETENCIA for 01/2012 again. you can see APURAÇÕES don´t refresh
it did refresh for me. maybe you fixed this yesterday? but it seems to be working ok here...
>> what i want is go to start page or refresh after change company.
ok, what you're wanting to do is change something in the header, an have it refresh something on the screen. This is possible, very possible, but tricky. I suppose your approach of just refreshing the whole page is one way to do it, but even then you need to know what page you are currently on...
In other words, when you are on Pagamentos the Url is /CompetenciaForm and when you are on Apontamentos the url is /ApuracaoForm. So apart from anything else, if you changed the company in the header you;d need to know what URL you actually wanted to refresh.
but wait, it gets worse. There are many features you may use later on (I'm thinking about Content-Body, Popups, things like that) where refreshing the whole page would actually be a problem. Indeed what you really want to do is just refresh the browse, but again the root question there becomes "which browse".
Personally I think you're making it hard for yourself. It'll be hard to setup, and even harder to maintain. Rather place the drop onto each form - like where you have Competência: on the ApuracaoForm form.
Or, alternativly have a "select company" option in the menu, which let's them change the company (on a form) and then that form take you to some "fixed" page (like say the index page.)
which brings us back to Kevin's suggestion;
In the Validate::loc:SelecionaEmpresa routine try adding;
p_web.Script(p_web.WindowOpen('IndexPage','_self'))
Cheers
Bruce