Hi Peter,
Thanks for your reply.
I finally figure out what cause the problem. Here is my Scenario. In my scheduler, I have Appointment Template as following:
Then I have event on appointment created find the hyperlink, enable/disable the hyperlink based on resources value, following is the code for AppointmentCreated event: