Left TreeMenu Right Form How To Refresh Both !

Hello guys I’ll get to the point:

I have a dynamic tree menu on my left and a form on my right how can I refresh the tree on the left without losing the focus on the form after update/insert on the form has been executed. I mention that I successfully redirected and refreshed the tree like this:

sc_commit_trans (“oc_conn_mysql”);
sc_redir(menu_principal, “”, “_parent”);