Hi,
as for the error message in a macro resolution (inside transformation). Following code should resolve the macro correctly:
onlclick'<%= CMS.CMSHelper.CMSContext.CurrentResolver.ResolveMacros("{#macro#}").ToString() %>'
The javascript onclick method should fire without any issue. But this will not be working if javascript is disabled on the user side.
Alternative solution is to
create a custom webpart an use a link button control instead. Then in the code behind (onClick method) you could run custom report logging code. This way you could create a
custom report.
Best regards,
Ivana Tomanickova