Qualify view function in generated code