In CRM 7.3 SP3 I have added some code to hide a few columns depending on the context and it works fine if I refresh the screen by clicking on the Cases tab or even pressing F5, however, if I set the new "Case refresh interval" value in System Behaviour to 60 seconds then when this refreshes the screen my columns are not hidden! Is this a flaw in my code or a flaw in this new auto-refresh mechanism?
<script>
$( document ).ready(function()
{
var T = crm.getArg("T");
if(T=="User")
{
crm.grids().hideColumn("case_assigneduserid");
crm.grids().hideColumn("case_elapsedtime");
crm.grids().hideColumn("case_bonus");
}
else if(T=="Company"||T=="Person")
{
crm.grids().hideColumn("case_elapsedtime");
crm.grids().hideColumn("case_bonus");
}
})
</script>
Thanks,
Mark.