Hi all,
While migrating a solution from AX2012 to Dynamics 365, we now get a best practice warning that the getDataRow Data Source method has been depreciated. This is also mentioned on the next page: https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/migration-upgrade/deprecated-apis
What is the alternative? Standard coding from Microsoft is still using it in the class TradeLineNumberManager. We have a similar coding to correct.
protected boolean isLastLine(FormDataSource _formDataSource)
{
return _formDataSource.getDataRow(_formDataSource.getPosition()+1) == null;
}
As alternative, we can try to find the highest line number with coding in the table and compare it with the current line number. But is there an alternative data source method?