
var pType=Runner.pages.constants.PAGE_REPORT;Runner.pages.PageSettings.addPageEvent("ranking_cliente_total",pType,"afterPageReady",function(pageObj,proxy,pageid){pageObj.buttonNames[pageObj.buttonNames.length]='New_Button142';if(!pageObj.buttonEventBefore['New_Button142']){pageObj.buttonEventBefore['New_Button142']=function(params,ctrl,pageObj,proxy,pageid,rowData){params["txt"]="Hello";ctrl.setMessage("Sending request to server...");}}
if(!pageObj.buttonEventAfter['New_Button142']){pageObj.buttonEventAfter['New_Button142']=function(result,ctrl,pageObj,proxy,pageid,rowData){var where=result["where"];var order=result["order"];var tabla=result["tabla"];window.open('generar.php?tabla='+tabla+'&where='+where+'&order='+order,'_blank');}}
$('a[id=New_Button142]').each(function(){if(!$(this).closest('tr.gridRowAdd').length){var newId="New_Button142"+"_"+Runner.genId();this.id=newId;var button_New_Button142=new Runner.form.Button({id:newId,btnName:"New_Button142"});button_New_Button142.init({args:[pageObj,proxy,pageid]});}});});