Function Does not Work From View Header

Function Does not Work From View Header


I am using a the openurl within a  function to create a link to a "Full Record View". The function works when I use the button from any individual record. It does not work when I select a record any use the function from the custom actions drop down.