Maximo Anywhere Lookup function filter

66 Views Asked by At

hi am new to maximo anywhere and i have a task which is to make the lookup only show the labors that are the same site to the connected user so if the user's defsite = ALN for exmple the labors with a worksite = ALN are only shown heres the function and thank you

    ```filterLaborCraftRateForLookup: function(eventContext){
        var laborCraftRateSet =  CommonHandler._getAdditionalResource(eventContext,"additionallaborcraftrate");
        CommonHandler._clearFilterForResource(eventContext, laborCraftRateSet);
        var orgid = CommonHandler._getWorkorderOrgId(eventContext);
        var filter = [];
        filter.push({'orgid':orgid , 'worksite':defsite});
        laborCraftRateSet.lookupFilter = filter;
    },```
0

There are 0 best solutions below