You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

View organization's incidents along with own incidents

Accepted answer
24
Views
2
Comments
edited Aug 13, 2018 7:28AM in Customer Portal 2 comments

Content

I'm using a "pre_report_get" hook and trying to apply a filter that accepts multiple values. The problem is that I'm not able to figure out the correct format in which the filter values need to be passed. The code I'm using as follows:

function applyInstituteFilter(&$hookData)
    {
        $reportID = $hookData['data']['reportId'];
        
        if($hookData['data']['reportId'] == 100520)
        {
            $insFilter = $this->CI->model('Report')->getFilterByName($reportID, 'ins_ids')->result;
            if(!$hookData['data']['filters']['ins_ids']){
                    $ins_filter = $this->CI->model('Report')->createSearchFilter($reportID, $insFilter['name'], $insFilter['fltr_id'], 1, 'custom', $insFilter['oper_id'])->result;				
    

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!