Hi All,
I have the need to use FieldRef in the code and pass it as a SetRange in another table.Whenever I am passing the FieldRef.Number ,
getting the following error:
Microsoft.Dynamics.Nav.Runtime.NavFieldRef variable not initialized.
Please advice.
Regards,
Indira
Be sure to pass the FieldRef as a reference using the "var" identifier. Also, be sure the FieldRef has been initialized properly. Something like....
RecRef.GETTABLE(Rec);
FieldRef := RecRef.FIELD(FieldNo);
Hello,
We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist. If you need assistance with debugging or coding I would recommend discussing this on one of our communities.
dynamicsuser.net/.../developers
I will open this up to the community in case they have something to add.
Thanks.
Sohail Ahmed
1,200
YUN ZHU
1,006
Super User 2025 Season 1
Mansi Soni
864