Lookup hierarchy category || AX 2012

This code shows you how to open a given category hierarchy in a lookup:   public Common lookupReference(FormReferenceControl _formReferenceControl) { Common ret; EcoResCategory  ecoResCategoryLocal;   EcoResCategoryHierarchy  categoryHierarchy  = EcoResCategoryHierarchy::find(2653334895);   ret = EcoResCategory::lookupCategoryHierarchy(_formReferenceControl, categoryHierarchy);   if (ret.TableId == tableNum(EcoResCategory)) { ecoResCategoryLocal = ret.data();   // update the current Category hierarchy if selected category belongs to … Read moreLookup hierarchy category || AX 2012