Hello
Client is upgrading and one of their modification is using the VARIABLEACTIVE(RecordRef) .
When calling this from webservice they get the following error.
<faultcode xmlns:a="urn:microsoft-dynamics-schemas/error">a:Microsoft.Dynamics.Nav.Types.Exceptions.NavObsoleteMethodException</faultcode>
<faultstring xml:lang="en-US">The VARIABLEACTIVE() method is obsolete.</faultstring>
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">The VARIABLEACTIVE() method is obsolete.</string>
I have not used VARIABLEACTIVE ever in my code ever.
The documentation is slim
Use this function to determine if a variable, such as field or a control, is active or inactive.
So the question is what is the substitute for this function that is obsolete in 3 tiered 2009.
I didn't see anywhere in documentation that this function was obsolete.
Ahmed Rashed Amini
Independent Consultant/Developer
blog:
https://dynamicsuser.net/nav/b/ara3n
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
The function is called from CU 1 onglobalModify trigger.
I'm simplifying this and I'm sure the function is called other ways. So how can I check that a recordref is initialized?
I guess I could format(recref) = '' then it's not initialized?
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Generally, VARIABLEACTIVE is tied into the AL runtime and when moving to the CLR it simply has no meaning for basic types, although it could have been special-cased for the complex ones. The cleanest handling was to obsolete it totally.
MSDN has a summary of similarly obsoleted functions or changes in behavior:
http://msdn.microsoft.com/en-us/library/dd301289.aspx
This posting is provided "AS IS" with no warranties, and confers no rights.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n