How to refresh a detail form in a Master/Detail app from the detail form using ajax

Hi!

To improve speed response inserting a record in a detail form of a Master/Detail App, I had implemented a store-procedure that I call on the ajax onblur event, but I need to refresh the detail form using ajax.

I probe whith a javascript method that executes:

document.getElementById(‘nmsc_iframe_liga_form_detail_form’).contentDocument.location.reload(true);

but it fails when I call it from the detail form.

I have probed with sc_redir that calls the master form, but this causes a very annoying screen refresh, specially when the detail form have a lot of lines…

Anybody knows how perform this refresh using ajax, in order to achieve faster and friendly response?

Because I use store-procedures, I need charge the last inserted record to the detail form.

The contraint is to do this without any type of scrolling…

Thanks in advance…

Hi

Now I can insert the line but not open the new line on insert mode.
I try document.getElementById(‘sc_b_new_t’).click();
from a javascript method, but the button is not reachable from there…

Anybody knows how can I open a new line on insert mode using an javascript method?

Thanks