I have made a custom button 'download list' in detailview of my module , I also made an action 'downloadList' in my module's directory. OnClick of download list i called the action like
array('customCode' => '<input class="button" onclick="window.open(\'index.php?module=av_module&action=downloadList&record={$fields.id.value}&&sugar_body_only=true\');" value="Download List">')
all my code is doing well .
But the issue is i have to use views.detail.php to achieve same functionality . for that i made a custom views.detail.php file and wrote all my code in it .
Now i don't know how to call that function on button click. Can anyone help please...