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?
Harikiran BM | ERP Specialist
0
Answers
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.
Rehan Satti
Microsoft Dynamics NAV Technical Consultant
Please verify the answer if it satisfy your question. This will help other members of community.
If anybody know please share your knowledge.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav