pfFilterDir 18 PrimaryFilterService getPipelineNames scope element fun

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
pfFilterDir 18
PrimaryFilterService.getPipelineNames(scope, element, function(){
console.log('innerCB')
//SubFilterService.getQuarterData(scope, element);
//SubFilterService.getFilterValue(scope, element);
});
console.log('filter',scope.filter)
--------------------
pfSelect 1
<div>
<label id="pipeline-label">Pipeline Name</label>
<select ng-model="filter.value" class="form-control" id="pipeline-select" >
<option ng-repeat="option in filter.valueArr" value="{{option.value}}">{{option.name}}</option>
</select>
</div>
pfSelectFir 28 --------------------
if(!isFirstStart)
PrimaryFilterService.redrawSelect(scope, element);
else
isFirstStart = false;
--------------------
pfService 243
options = getOptions(that.filter.dataNames.pipelines, "pipe_id", "pipeline_name");
element.find("#pipeline-label").html("Pipeline Name"); // Set the appropriate label
scope.filter.value = getOptions(that.filter.dataNames.pipelines, "pipe_id", "pipeline_name")[0].value || '';
scope.filter.valueArr = getOptions(that.filter.dataNames.pipelines, "pipe_id", "pipeline_name");
59
return options;
sfService 392
that.filter.type = ''
440
}).then(function(){
//Change subfilter type to redraw tables
that.filter.type = 'shipper'
});