Custom Event not triggered on Modal Dialog Page

one of classic Report columns setted to be link and its javascript link which is javascript:$.event.trigger({type:'customEvent',id:'#ID#'});
Dynamic Action created with the following attributes:

When: custom
Custom Event: customEvent
Selection Type:  JavaScript Expression
 JavaScript Expression : document

the action is Execute javascript code:

console.log('event triggered')
var student_id = this.browserEvent.student_id
console.log(student_id)

this scenario working perfectly in Normal Page, but not in Modal Dialog Page. Why? Any suggestions?