Hardening of macros in gridportal