How to call customized code which is in the base function to achieve extensions

Harikiran
Member Posts: 39
Hello guys
I have a problem while upgrading the table.
There is a base function in "sales line" table called "ShowDimensions". In this we've some customized code.
Now I need to call this base function in our newly create codeunit(upgrade codeunit) to handle the code using extensions since customized code in base object is not supported. I've handled call to insert trigger, modified trigger, even actions trigger also in event function but I see there are no event function to handle base functions customization in subscriber.
How to handle this. May I know the best solution to solve. Is it possible to do so?
I have a problem while upgrading the table.
There is a base function in "sales line" table called "ShowDimensions". In this we've some customized code.
Now I need to call this base function in our newly create codeunit(upgrade codeunit) to handle the code using extensions since customized code in base object is not supported. I've handled call to insert trigger, modified trigger, even actions trigger also in event function but I see there are no event function to handle base functions customization in subscriber.
How to handle this. May I know the best solution to solve. Is it possible to do so?
Harikiran BM | ERP Specialist
0
Best Answer
-
You have to either request MS to add publisher in standard function or redesign your solution5
Answers
-
Hi @Harikiran ,
If you want to call some specific code which is customized & placed in some table trigger. For example I have a record variable of sales line table 37 "Salesline".
I want to call my customized code which is placed on the OnValidate() trigger of "Shortcut Dimension 1 code" field.
So what I would do is I will call this as Salesline."Shortcut Dimension 1 code".OnValidate(TRUE);
OnValidate(TRUE) will call the table trigger onvalidate for the "Shortcut Dimension 1 code" field. This is how you can run your custom code in some table trigger.
Hope this helps you.Best Regards
Rehan Satti
Microsoft Dynamics NAV Technical Consultant
Please verify the answer if it satisfy your question. This will help other members of community.2 -
Nope. Actually I want to handle it in extensions. You are telling about handling fields which has customized code in table trigger but I need to handle base function(in T37) which has a customized code in extensions.
If anybody know please share your knowledge.Harikiran BM | ERP Specialist0 -
You have to either request MS to add publisher in standard function or redesign your solution5
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