We recommend reviewing what is submitted before posting, in case your idea has already been submitted by another community member. If it has been submitted, vote for that existing feature request (by clicking the up arrow) to increase its opportunity of being added to Cireson solutions.
For more information around feature requests in the Cireson Community click here.
@createdfilter set standard filter value
https://community.cireson.com/discussion/2440/default-range-for-createdfilter-on-sql-widgets
Comments
Good idea :)
Hi Peter,
I have come up with a little bit of a hack for this in the meantime for you so put this into customspace/custom.js or script load it in from a separate file. Let me know if this works, it should apply the default to SQL grid widgets and SQL chart widgets!
$(document).ready(function(){
setTimeout(function(){
var charts = $('.chart-resize-wrapper');
charts.each(function(){
if($(this).data().$scope.vm.dateSelected != undefined){
$(this).data().$scope.vm.selectDateOption("Yesterday");
$(this).data().$scope.$digest();
}
});
var grid = $('[class="clearfix ng-scope"]');
grid.each(function(){
if($(this).data().$scope.vm.dateSelected != undefined){
$(this).data().$scope.vm.selectDateOption("Yesterday");
$(this).data().$scope.$digest();
}
});
}, 5000);
});
Thanks,
Shane