How to pass a dynamic variable to calendar url

i nee to add the calendar id to the url on the calendar report URL .
All calendar url links to mysite.com/payment. What i need mysite.com/payment?id=$calendartblid

I mean the url field in the add or edit form

Have you tried Row_Inserting and/or Row_Updating server event?