Pages

Monday, May 25, 2009

formdatasource.research(TRUE)

A small but not uninteresting little parameter has sneaked its way into AX 2009. The research method on form data sources now allows you to make AX reposition the cursor to the active record you were placed on when calling research.

To do this, call xxx_ds.research(true).

This little parameter saves you the effort of saving data for the record you are on, and use the saved data with the find() method to find the record again, and hopefully (I haven’t tested this though) it has much better performance than the find method. Performance couldn't really be worse than with the find method, so I assume performance is much better when MS introduces this as a new parameter.

Link to MSDN SDK documentation for the method: http://msdn.microsoft.com/en-us/library/aa597768.aspx

2 comments:

Anonymous said...

Awesome! Saves lot of coding to preserve the recid and then using find to reposition the cursor to the record being edited.

Dissertation Writing Help said...

well your Po$t is good and i really like it :). . .awesome WORK . . .KEEP SHARING. .;)
research methodology