Skip to main content

Posts

Showing posts with the label office hierarchy

Create Organization hierarchy Chart in axapta

These are method to create organization hierarchy chart in Axapta public class FormRun extends ObjectRun { CCFormTreeDatasource treeDatasource; } void InsertinTemp() { TmpOrganizationChart2 TmpOrganizationChart2_1; _OrganizationChart2 _OrganizationChart2_1; ; /*hile select _OrganizationChart2_1 { while select forupdate TmpOrganizationChart2_1 where TmpOrganizationChart2_1.WareHouseCode==_OrganizationChart2_1.WareHouseCode { TmpOrganizationChart2_1.delete(); } }*/ Delete_from TmpOrganizationChart2_1; While select _OrganizationChart2_1 { TmpOrganizationChart2_1.WareHouseCode=_OrganizationChart2_1.WareHouseCode; TmpOrganizationChart2_1.ParentWareHouseCode=_OrganizationChart2_1.ParentWareHouseCode; TmpOrganizationChart2_1.Office_type=_OrganizationChart2_1.Office_type; TmpOrganizationChart2_1.Name=InventLocation::find(_OrganizationChart2_1.WareHouseCode).Name; TmpOrganizationChart2_1.insert(); } } public void