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

Search hierarchy for a match (TableALLGroup) X++

  Table1 ppt;  select firstonly ppt  order ItemCode, ItemRelation, AccountCode, AccountRelation where      (ppt.ItemCode == TableGroupAll::T...