Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all articles
Browse latest Browse all 12476

CQ5.5 ClientContext.get('profile/region') === 'MW' versus Generic Store Property component

$
0
0

Hi there,

 

I have been having segment resolution problems for a custom data store that sets a new property, "region", on the data store "profile".  Precisely, it adds a new "region" property to the existing data store "profile".

 

The segment resolution problems occurred when using the Generic Store Property component for the segment trait definition.

I dragged it onto the stage and populate it, choosing the following:

 

- Store:  profile

- Property Name: region (that's set in our custom store implemention, which is deployed to /etc/clientcontext/default/content.  having genericstoreproperties with "region" in its properties attribute (which all works.  That's why Generic Store Property can indeed find "region" to select from as possible property value).

- Operator: equals

- Property Value: MW

 

However, when I change the segment trait definition to a script instead:

ClientContext.get('profile/region') === 'MW'

 

Then, I will not have segment resolution problems anymore.

 

I looked at the definition of the OOTB component "Generic Store Property".  It's defined in /libs/cq/personalization/components/traits/generic

 

ClientContext is an object of CQ_Analytics, and it's defined in /libs/cq/personalization/components/clientcontext/clientlib/clientcontext.js

 

At no point that I was able to make out, the OOTB component "Generic Store Property" accesses ClientContext.

 

My question is:

- How is "Generic Store Property" component with the values set as above different from a script snippet ClientContext.get('profile/region') === 'MW'?

At what point does it access the ClientContext object?

 

Finally, does it change the order of js which is loaded, when I use the Generic Store Property, instead of the script snippet ClientContext.get('profile/region') === 'MW'?

 

If that is true, is this a possible bug in Adobe CQ5.5?

 

Thanks for any hint on this.

 

-Maria


Viewing all articles
Browse latest Browse all 12476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>