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

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

How are you initializing the profile store with the region property? I tried following to reproduce your problem:
Create a new Segment "MW Test Segment"
Added a generic store property trait profile, region, equals MW
Added a script trait 'ClientContext.get("/profile/region")=="MW"'
Fired up Firebug and called 'ClientContext.set("/profile/region","MW");
You can see the result below, both traits fire.

Similar Messages

  • How do I get past region screen on app store

    Hello, I just bought an iphone 5s and when I tap the "app store" app it opens up to the Accounts Settings Country or Region screen. I choose the United States and it says to "tap next". The problem I encounter is there is no "next" to tap, it is just stuck on the screen and no apperent way to pass. Anyone know how I get past this so I can start to download apps?

    Hi chrismo650,
    Welcome to the Support Communities!
    To address this issue, I would suggest you close all open apps, then restart and reset your iPhone.  Here's how:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    Cheers,
    - Judy

  • I still use Aperture 2.1.4.  I need to export an image file with a CMYK profile.  Whereas a generic CMYK profile is listed in ColorSync Utility, it does not appear on the list of profiles in the edit portion of the export preset dialogue.  Help?

    I still use Aperture 2.1.4.  I need to export an image file with a CMYK profile.  Whereas a generic CMYK profile is listed in ColorSync Utility, it does not appear on the list of profiles in the edit portion of the export preset dialogue.  Help?  Is there some way to add the CMYK profile to the list of choices that are available in the export preset dialogue such that I can choose it?

    leonieDF
    Thanks for your response.  My profiles are located within color sync utility as you can see here:   
    These profiles do not respond to clicking and dragging.  Since they are all in one place, more or less, I'm reluctant to make further attempts to relocate them.  Accessing the CMYK profile is the first difficult experience I've encountered with this arrangement.  I have never needed the CMYK profile until recently, and that need has now past.  However, it remains a mystery to me as to why it does not appear with all the others on the menu of export choices in Aperture 2, or on the menu of profile assignment choices in the Preview application (where again all the other profiles are listed as choices).  I'm beginning to think my current set up will permit me to view an image that was created in CMYK space, but does not easily assign, or convert to that space.  I don't face these restrictions with all the others, so it remains a curious circumstance for me.  I anticipate upgrading my computer and software in the near future which might alleviate this issue altogether.  Again, many thanks for your attention to this matter.  The reach of this community is astounding.

  • How to  get the profile object in simple java class  (Property accessor)

    Hi All,
    Please guide me how to get the profile object in simple java class (Property accessor) which is extending the RepositoryPropertyDescriptor.
    I have one requirement where i need the profile object i.e i have store id which is tied to profile .so i need the profile object in the property accessor of the SKU item descriptor property, which is extending RepositoryPropertyDescriptor.
    a.I dont have request object also to do request.resolvename.
    b.It is not a component to create setter and getter.It is simple java class which is extending the RepositoryPropertyDescriptor.
    Advance Thanks.

    Iam afraid you might run into synchronization issues with it. You are trying to get/set value of property of a sku repository item that is shared across various profiles.
    Say one profile A called setPropertyValue("propertyName", value).Now another profile B accesses
    getPropertyValue() {
    super.getPropertyValue() // Chance of getting value set by Profile A.
    // Perform logic
    There is a chance that profile B getting the value set by Profile A and hence inconsistency.
    How about doing this way??
    Create PropertyDescriptor in Profile (i.e user item descriptor), pass the attribute CustomCatalogTools in userProfile.xml to that property.
    <attribute name="catalogTools" value="atg.commerce.catalog.CustomCatalogTools"/>
    getPropertyValue()
    //You have Profile item descriptor and also storeId property value.
    // Use CustomCatalogTools.findSku();
    // Use storeId, profile repository item, sku repository item to perform the logic
    Here user itemdescriptor getPropertyValue/setPropertyValue is always called by same profile and there is consistency.
    -karthik

  • Get the region name

    Hi all,
    i need to get the region name for a selected page, but i don't know how to do it.
    Does it exist a method called 'GetRegionName' or 'GetRegionId'?
    Thanks
    bye,
    Simona

    i have a page with 2 tabs and i need to get the unique name or the unique id of every tab. According to their values i have to show some information...

  • I need to change my region on the Itunes store, but it says i cant because i have an account balance of $0.05. How do I get rid of this?

    I need to change my region on the Itunes store, but it says i cant because i have an account balance of $0.05. How do I get rid of this?

    Click here and request assistance.
    (68319)

  • CRM 2015 Unable to get profiler error to debug code on associate message

    Hi all,
    Im trying to get the profiler on associate message(Opportunity- Competitor)  and i'm unable to get profiler error to debug code and getting "ISV Code aborted"
    the below link didn't work for me
    https://community.dynamics.com/crm/f/117/t/134575.aspx
    Thanks & Regards Vijji

    Hello,
    In case you develop for CRM 2015 you don't need to get profiler error anymore. Recheck
    this article.
    Dynamics CRM MVP
    My blog

  • Every time I try to upload MOV files from my iphone 5s onto my adobe premiere elements on windows 8 i get 'the importer reported a generic error'

    every time I try to upload MOV files from my iphone 5s onto my adobe premiere elements on windows 8 i get 'the importer reported a generic error'

    jade harding
    What version of Premiere Elements are you using on Windows 8.1 64 bit? For now I will assume Premiere Elements 12 in a NTSC set up.
    Your iPhone 5s video is expected to be 1080p @ 30 progressive frames per second? Do you confirm that? Because of the source of your video, it is highly likely that you are dealing with a variable frame rate.
    Please give the following a try to see if you then have an "importable" product to take into Premiere Elements presumed 12/12.1.
    Download and install the free HandBrake program.
    http://handbrake.fr/
    Import your video file into the program.
    Make sure you browse to and set Destination (suggested Desktop location)
    Go to the Video Tab and set
    Video codec = H.264 (x264)
    Frame Rate = 29.97
    put a dot next to Constant for the Frame Rate
    Click on the Start at the top left of the workspace
    Wait for the "Queue Finished" to appear in the progress bar at the bottom left of the workspace.
    Then see if this H.264.mp4 (1920 x 1080 @ 29.97 progressive frames per second file can be imported into Premiere Elements 12 project with a manually set project preset of NTSC/DSLR/1080p/DLSR 1080p30@ 29.97.
    Details for setting manual project preset can be found in
    ATR Premiere Elements Troubleshooting: PE11: Accuracy of Automatic Project Preset (New Project Dialog) Setting
    The details that I have posted in this reply are customized for Premiere Elements and should work fine for you.
    We will be watching for your results.
    ATR

  • Getting a region's width to stay fixed

    All,
    any suggestion on how I can get a region's width to stay at the width that I specify ?
    null

    Jay,
    I agree, but if you will look at the generated code, every region is a cell and then whatever portlet we put in the region ends up in a table of its own.
    The table which contains the regions and the cells,which comprise the regions can have height and width tags (they have 100% right now)
    Currently, we specify size in %ages. As a result, as the page size or height width changes, the regions change too. However, if you gave an option to the user of specifying size in pixels (height and width) or %age of a region, then you should be able to control the size.
    I must admit that I have not written a page from scratch and that the above conclusions are based on looking at the generated source.
    Sanjay

  • Is there's a way to get the Region Source of a Page?

    Is there's a way (command, function...) to get the Region Source of a Page???? I woud like to assign a variable a query (but the query of the Region Source).

    Hi,
    have a look at the APEX dictionary views. The one you are looking for is APEX_APPLICATION_PAGE_REGIONS.
    In the Builder you can find all of them at "Application Builder" -> Tasks (Sidebar) -> Application Express Views.
    Regards
    Patrick
    Member of the APEX development team
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How to get profile options & values at user & responsibility level by SQL?

    Experts, How to get profile options and values at user and responsibility level using SQL?

    SELECT
    po.profile_option_name as name
    , po.user_profile_option_name
    , decode(to_char(pov.level_id),'10001','SITE','10002','APP','10003','RESP','10005','SERVER','10006','ORG','10004','USER', '???') as "LEVEL"
    , decode(to_char(pov.level_id),'10001','','10002', app.application_short_name,'10003', rsp.responsibility_key,'10005', svr.node_name,'10006', org.name,'10004', usr.user_name,'???') as context
    , pov.profile_option_value as value
    FROM
    fnd_profile_options_vl po
    , fnd_profile_option_values pov
    , fnd_user usr
    , fnd_application app
    , fnd_responsibility rsp
    , fnd_nodes svr
    , hr_operating_units org
    WHERE 1=1
    AND pov.application_id = po.application_id
    AND pov.profile_option_id = po.profile_option_id
    AND usr.user_id (+) = pov.level_value
    AND rsp.application_id (+) = pov.level_value_application_id
    AND rsp.responsibility_id (+) = pov.level_value
    AND app.application_id (+) = pov.level_value
    AND svr.node_id (+) = pov.level_value
    and org.organization_id (+) = pov.level_value
    ORDER BY 1, pov.level_id, 5
    You'll need to apps initialize your SQL session before running this ...
    Regards,
    Jon

  • HT204266 Somehow I tapped the wrong button and ended up in the Spanish App Store. I can only purchase apps in the American App Store. How do I get back to the American App Store? Thanks in advance. Btw, I use an iPad 3.

    Somehow I tapped the wrong button and ended up in the Spanish App Store. I got a message saying I can only purchase apps in the American App Store. How do I get back to the American App Store? Thanks in advance. Btw, I use an iPad 3.

    Settings>iTunes and App Stores>Apple ID
    Tap your ID
    Tap View Apple ID
    Enter your password
    Go to country/region in the popup window to change the store

  • While in the UK, I switched my App Store to UK store. How do I get it back to the US store? Thanks!

    While in the UK, I switched my App Store to UK store. How do I get it back to the US store? Thanks!

    Try going to the bottom of the Featured tab in the App Store app on your iPad and tap on your account id, tap on 'View Apple ID' on the popup and log into your account, and then select the Country/Region section and select the US. If you updated the address on your account then you will also need to update that to be your US address.

  • I cannot get out of the French ITunes Store to get to the USA store. I did find the US  flag on my IPad in I tunes at bottom of music page and switched to US flag !) but when I go back to trying to update my Apps I still get: you are in the French Store!!

    I cannot get out of the French ITunes Store to get to the USA store. I did find the US  flag on my IPad in I tunes at bottom of music page and switched to US flag !) but when I go back to trying to update my Apps I still get: you are in the French Store!! Aquavero

    See  >  Change your iTunes Store country
    Here  >  http://support.apple.com/kb/HT1311
    Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region = Change Country / Region

  • How can I get an HD movie from iTunes store to play on original iPad

    I recently purchased an HD movie--Brave--from the iTunes store.  I'm trying to play on my original iPad (iPad 1), but iTunes refuses to synch it because it says it is an unsupported format.  The movie is in 1080p format.  I typically get both HD and SD formats when I purchase movies, but iTunes no longer downloads the SD version automatically when I purchase the HD version.  I attempted to get an SD version from the store, but it said I already purchased the movie and instructed me to check the downloads.  There is no SD download pending and a check for new downloads was fruitless.
    Can someone confirm that the original iPad is unable to play HD video?  I imagine it is the 1080p that's the problem.  Can anyone confirm that 720p would work?  Is there no longer a means to get both HD and SD when purchasing a movie from the iTunes store?  If there is, how?
    Thanks for your help.
    Jamie

    You can get the SD or 720p version by:
    Open iTunes 11
    Click iTunes in menu bar > select Preferences...
    Click on the Store tab
    Change When downloading High Definition videos, prefer dropdown to 720p > click OK
    Click on the iTunes Store button
    Click Purchased link
    Click Movies tab
    You should now see a download icon for the movies you already have 1080p version of.
    Click on this download icon to download the 720p version.
    This will put a 720p version in the same folder on your hard drive as the 1080p version.  If you have iTunes setup to play 1080p when available, it will play the 1080p version.  When you connect your iPad 1, it will sync the 720p version.
    Don't forget to change your preference back to 1080p so you can continue to get the higher quality version.

Maybe you are looking for