Thursday, January 19, 2017

Get Caller child class name in Parent class ax 2012

//How to get Caller child class name in Parent class ax 2012

Class - > Test // Parent class
                  Method - > Test - get(Type _type = type::none)
                         //To differentiate caller class use _type value

Class - > TestTrans1 extends Test // Child Class 1
                  method - > TestTrans1 - get(Type _type = type::test1)
                             code : super(_type)

Class - > TestTrans2 extends Test // Child Class 2
                  method - > TestTrans2 - get(Type _type = type::test2)
                             code : super(_type)

No comments:

Post a Comment

Copy Markup charges while posting purchase invoice using X++

 Copy Markup charges while posting purchase invoice using X++ Class: Important: Code logic is just for Reference.  New class => Duplicate...