CQ5.5 Analytics framework.getMapping(key) vs. cmp.getInherited(key, null) | Community
Skip to main content
TheRealUpWorks
October 16, 2015
Solved

CQ5.5 Analytics framework.getMapping(key) vs. cmp.getInherited(key, null)

  • October 16, 2015
  • 3 replies
  • 992 views

Within the sitcatalyst.js under /foundation/vault/web/apps/cq/analytics/components/sitecatalyst/

if(framework != null) { for (String name : framework.getAllComponents().keySet()) { FrameworkComponent cmp = framework.getAllComponents().get(name); for (String key : cmp.inheritedKeySet()) { if(key.indexOf(":") < 0) { String value = framework.getMapping(key); if (value == null) continue; if (value.startsWith("eventdata.events.")) { value = key; key = framework.getMapping(key); } %> mapping.push({scVar:"<%= key %>",cqVar:"<%= value %>",resourceType:"<%= name %>"});<% } } } }

When retrieving the value for key, why does it use 

framework.getMapping(key) 

instead of 

cmp.getInherited(key, null)
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

AFAIK It is fixed request for hotfix NPR-2789

3 replies

smacdonald2008
October 16, 2015

That could be a bug. I will double check with the Eng team to make sure. Good question. 

October 16, 2015

Have you heard anything back from the Eng team?

Sham_HC
Sham_HCAccepted solution
October 16, 2015

AFAIK It is fixed request for hotfix NPR-2789