Below is output for SmmOpportnitylistGrid ( Credit to: gl00mie ) now my only issue is, the Query for Superior it copy to display 5 times. In other hands, salesman data was display fine hope anyone could guide me on the query below:
Aot\Data Sets\smmOpportunityList\Data Sources\smmOpportunityTable\Methods\init
------Init-----
---------------------Reference-------------------
smmOpportunityOwnerId currentOwnerId;
smmOpportunityTable smmOpportunityTable;
SM_CRM_Salesman salesmanHierarchyList;
;
currentOwnerId = SysCompanyUserInfo::find(curUserId()).EmplId;
select * from smmOpportunityTable
join salesmanHierarchyList
where ( smmOpportunityTable.OwnerId == currentOwnerId
|| ( smmOpportunityTable.OwnerId == salesmanHierarchyList.Salesman
&& salesmanHierarchyList.Superior == currentOwnerId
)
);
-------------------------------------------------------