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

Dynamically setting entire Form security access through Extension in D365FO

/// <summary> /// To check if user can get access to the Parameter form /// </summary> class SAN_ParamFormsAccessCtrl {     prot...