|
|
#1 |
|
Участник
|
В методе класса InventDimCtrl_Frm_Lookup.callerFormDatasource() обнаружил странный код:
X++: FormDataSource callerFormDatasource()
{
if (! fr.args())
return null;
// Don't check on 'fr.args().record()' alone
// Try test for dataset instead
if (! fr.args().dataset())
return null;
// Could be a buffer which isn't inserted yet
if (! fr.args().record().tableId)
return null;
return fr.args().record().dataSource();
}PS. И почему вообще второй if раскрашен, как коментарий?.. |
|
|
|
|
|