Hi
I have client context component, which takes emailid. On basis of this email its fetch the data from external system which initialize the session store.
Below is my code for init.js.jsp :
<%
String leadAddress = properties.get("email", currentStyle.get("email",String.class));
log.info("leadAddress ---> "+leadAddress);
%>
if (CQ_Analytics.CCSFDataMgr) {
var email = <%= leadAddress %>;
CQ_Analytics.CCSFDataMgr.addInitProperty('EMAILADDRESS', email);
CQ_Analytics.CCSFDataMgr.init();
console.log(email);
}
console.log doesn't show anything. & kernel's js
if (!CQ_Analytics.CCSFDataMgr) {
CQ_Analytics.CCSFDataMgr = new CQ_Analytics.SessionStore();
CQ_Analytics.CCSFDataMgr.STOREKEY = "CCSFPROFILE";
CQ_Analytics.CCSFDataMgr.STORENAME = "ccsfprofile";
}
where this.EMAILADDRESS shows undefined.
Also below code in init.js.jsp shows val null.
if (CQ_Analytics.CCSFDataMgr) { var val=CQ_Analytics.ClientContext.get("/leadsearch/email",true); alert(val); }