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

HarikiranHarikiran 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?
Harikiran BM | ERP Specialist

Best Answer

Answers

  • rehansattirehansatti Member Posts: 36
    edited 2017-01-27
    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.
  • HarikiranHarikiran Member Posts: 39
    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 Specialist
Sign In or Register to comment.