Add event to alter the View Variables in foreign code. This is used for grouped dates list on weimar.