Refresh entire form in AX 2012?

Mr. Dynamic picture Mr. Dynamic · Oct 3, 2012 · Viewed 20.5k times · Source

I'm currently working with a form that has a grid at the bottom. Whenever I hit f5, the grid refreshes, but the rest of the form does not. What can I do to make the entire form refresh it's data?

Thanks.

Answer

Jan B. Kjeldsen picture Jan B. Kjeldsen · Oct 4, 2012

You may override the research method on a datasource:

public void research(boolean _retainPosition = false)
{
    super(_retainPosition);
    other_ds.research(_retainPosition);
}

The other_ds is a datasource not joined by the current datasource.