Weird standard functions

rocatis
Member Posts: 163
Does anybody have a clue what the function UTlocalCall is used for? It exists in about 7 objects (e.g. codeunit 6620) but are not called from anywhere.
I can't work out what on Earth the purpose of the functions is :-k
I can't work out what on Earth the purpose of the functions is :-k
Brian Rocatis
Senior NAV Developer
Elbek & Vejrup
Senior NAV Developer
Elbek & Vejrup
0
Comments
-
I ran it through dev toolkit and it's not used anywhere.
It could be unfinished functionality.0 -
not a developer, so don't really know, but the all knowing google search, finds it
looks like it might be related to closing inventory periods, I would imagine it was part of the program a long time ago, but the code was replaced and this is just a rement that was forgotten.
http://www.google.com/search?hl=en&source=hp&q=UTlocalCall&aq=f&aqi=&aql=&oq=&gs_rfai=Ci_JdMk90TOn8GpSEygTruKXYDwAAAKoEBU_Q0_qN0 -
themave wrote:the all knowing google search, finds it
Looking at the function in codeunit 22 probably gives a clue as to its use:UTlocalCall(localFunctionName : Text[30];VAR param : ARRAY [20] OF Variant;VAR return : Variant) CASE localFunctionName OF 'IsAvgCostException': BEGIN ValueEntry := param[1]; IF param[2].ISRECORD THEN ItemJnlLine := param[2]; IF param[3].ISRECORD THEN InvtSetup := param[3]; IF param[4].ISRECORD THEN BEGIN ValueEntry2 := param[4]; ValueEntry2.INSERT; END; return := FALSE; //ValueEntry.IsAvgCostException; END; ELSE ERROR('Local function %1 is not included for test.',localFunctionName); END;
Basically, it sets the value of global variables (and even inserts records) which is almost certainly used for testing purposes at Microsoft.Brian Rocatis
Senior NAV Developer
Elbek & Vejrup0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions