What exactly does cm:select ... select from?

Hello,
I have just started playing around with personalization server and I am having
a really simple problem.
I am using the <cm:select query="..." /> tag and I can never get it to return
any results. The variable that it returns is always an array of length 0.
By the examples in the documentation (i.e. the news example:
<cm:select query="type = 'news'"
sortBy="heading ASC, title ASC"
id="headlines" max="25" cacheId="WLCS_news_index_headlines"
cacheTimeout="300000" useCache="true" cacheScope="application" />
it implies that the select searches the WLCS_DOCUMENT_METADATA table right right?
i.e. the query type = 'news' is essentially (WLCS_DOCUMENT_METADATA.NAME = 'type'
AND WLCS_DOCUMENT_METADATA.VALUE = 'news')? or am i waaaaaaaaay off on understanding
how this tag works?
Thanks,
Will

Will -
Sorry about the delay in answering.
http://edocs.bea.com/wlp/docs40/p13ndev/content.htm#1055787 lists the
standard ("explicit") attribute names that the queries can contain. However,
it is not documented anywhere how those map to the DOCUMENT table in the
reference implementation, although I think you won't have any problem
figuring it out when you see the list of attribute names.
Greg
"Will Young" <[email protected]> wrote in message
news:[email protected]...
>
Hi Gregory,
Thanks a lot for your response. I figured out what my problem was(weblogic instance
was pointing to the wrong schema). duh!
Your point in your email to select everything from the DB by usingidentifier
like '*' is what tipped me off. One question though...where is itdocumented
that using the word 'identifier' selects on the ID column? I didn't seeit in
any of the <cm: tag documentation. I was wondering if there are any otherthings
like this that I should know to make my life easier.
Thanks,
Will
"Gregory Smith" <[email protected]> wrote:
Will -
You're pretty close. In 3.5, if you don't specify a contentHome in the
<cm:select>, it uses the default JNDI name, which is
com.beasys.commerce.axiom.document.DocumentManager (if you do specify
a
contentHome, it will use the JNDI name instead). Out-of-the-box, this
will
be the DocumentManager stateless session EJB deployed from document.jar,
which is configured
(http://e-docs/wlcs/docs35/p13ndev/content.htm#1028939)
to use the reference document management implemenation (via the docPool),
which should, as you determined, look in the WLCS_DOCUMENT and
WLCS_DOCUMENT_METADATA tables as you described.
So, why aren't you getting anything back. Here's some possibilities:
- Some sort of runtime error in the tag. Try setting failOnError="true"
in
the <cm:select>; this will cause it to throw a JSPTagException if an
error
occurs, instead of returning an empty array. You will probably need to
unwrap the JSPTagException (getRootCause()) to see the actual error(either
in a try/catch or with a JSP error page), since WLS tends to generate
useful
error messages like "Runtime error in tag".
- No matching content in the database. In 3.5, if you're using the
Cloudscape DB that ships with the product, there should be documents
loaded
that match type='news'. However, in 3.5, if you switched to Oracle or
one of
the other databases, there wouldn't be -- run bin/win32/loaddocs.bat
or
bin/unix/loaddocs.sh. In 4.0, there is no sample data shipped that would
match type='news' (we removed the example portlet that was using those
documents in 3.5). You can also work backwards by looking in dmsBase/
for
properties in *.md.properties or <META> tags in HTML file, and creating
queries from that. Or, you could change the query to something that will
return everything (e.g. identifier like '*') just to make sure you have
anything loaded in the database.
By the way, it's a little different (but basically the same) in 4.0 --
if
you don't specify a contentHome in the <cm:select>, it uses the default
JNDI
name, which is java:comp/env/ejb/ContentManager, which is an EJBreference
in your web.xml/weblogic.xml (see
http://edocs.bea.com/wlp/docs40/p13ndev/content.htm#1062679 for details
about what you have to do in your webapp for the cm stuff to work). This
EJB
reference should point to an instance of a ContentManager/DocumentManager
stateless session EJB. Out of the box (in the p13n webapp, for example),
this is the the DocumentManager deployed from document.jar in theenterprise
application. This DocumentManager is configured
(http://edocs.bea.com/wlp/docs40/p13ndev/content.htm#1041123) to use
the
reference document management implementation (via theDocumentConnectionPool
entry in the META-INF/application-config.xml and/or through the WLS
console), which looks in the DOCUMENT and DOCUMENT_METADATA tables.
Also, if you want to pull data from somewhere else (i.e. a third-party
content management system, a custom implementation), this is possible
through WLPS Content Management Integration. You will need to contact
your
BEA sales representive for more information.
Hope that helps,
Greg
"Will" <[email protected]> wrote in message
news:[email protected]...
Hello,
I have just started playing around with personalization server andI am
having
a really simple problem.
I am using the <cm:select query="..." /> tag and I can never get itto
return
any results. The variable that it returns is always an array of length0.
By the examples in the documentation (i.e. the news example:
<cm:select query="type = 'news'"
sortBy="heading ASC, title ASC"
id="headlines" max="25" cacheId="WLCS_news_index_headlines"
cacheTimeout="300000" useCache="true"
cacheScope="application"
/>
it implies that the select searches the WLCS_DOCUMENT_METADATA tableright
right?
i.e. the query type = 'news' is essentially
(WLCS_DOCUMENT_METADATA.NAME
= 'type'
AND WLCS_DOCUMENT_METADATA.VALUE = 'news')? or am i waaaaaaaaay offon
understanding
how this tag works?
Thanks,
Will

Similar Messages

  • HT4859 when you go to do this it say that your iPod or whichever device will no longer be backed up to the computer it is currently backed up to, what exactly does that mean? Will i not be able to sync my iPod from that computer?

    when you go to do this it say that your iPod or whichever device will no longer be backed up to the computer it is currently backed up to, what exactly does that mean? Will i not be able to sync my iPod from that computer? Please help me and answer either or both question detailed thanks

    Normally when you sync your device it is automatically backed up to your computer as the first step in the sync process.  When you choose to start backing up your device to iCloud, iTunes stops automatically backing it up on your computer when you sync.  That's what the message is telling your; that you are now backing up to iCloud and not to your computer each time you sync.  You can still manually back up to your computer any time you want by going to the Summary tab and clicking on Back Up Now under Manually Back Up and Restore.
    You can still sync your device as you did before, it just will no longer back up automatically when you do.

  • I just connected my Mac Mini running OS 10.6.8 to a IG 32' monitor. What resolution should I select from the menu?

    I just connected my wife's Mac Mini running OS 10.6.8 to an IG 32' monitor. What resolution should I select from the menu in order to provide maximum screen appearance? My wife has AMD and a visual acuity of 20/400 with central scotonata.

    In System Preferences:Displays you have an option to show
    Displays Prefs in the title bar above the screen - where she can
    iteratively adjust to her liking. Higher screen resolutions, ironically,
    result in smaller characters so adjust to suit. Below, Displays is
    4th from L.
    All best, Tom

  • My iPhone 4s was stolen this weekend and I did the Remote Lock.  What exactly does that do?  Also, if i do the Remote Wipe will that erase all of my data and impede anyone from ever using the phone?

    My iPhone 4s was stolen this weekend and I did the Remote Lock.  What exactly does that do?  Also, if i do the Remote Wipe will that erase all of my data and impede anyone from ever using the phone?

    The remote lock locks the iphone with a passcode that you set. By remote wiping the device it will simply restore it and clear it of all its data, but by doing this it will prevent you tracking it and communicating with it (e.g. remote locking it) in the future

  • What exactly does Restore do?

    Forgive me if this has been covered before, but I did search and didn't find my specific answers.
    I synced my bookmarks with my Safari browser on my PC. All is good, except that the sync also copied the default bookmark folders "bookmark bar" and "bookmarks", which are both empty and redundant on my Touch. They are listed 2nd and 3rd on the Touch bookmarks list, taking up valuable space! But, since they're default folders, I can not delete them, just like the "History" folder on the Touch.
    Anyway, I've read that the only way to remove them is to restore my iPod, and never sync bookmarks from Safari again. (IMHO it seems completely crazy that syncing from one Safari to another would be so problematic!)
    So, what exactly does Restore do? I know it resets the ipod to factory settings, but what happens to all my bookmarks and webclippings? Is there anyway to back those up and edit my bookmarks manually to remove the two default folders?? Because if not, it seems that this wouldn't be a fix at all, instead just a big ol pain in the arse. This is a very annoying bug and I hope it is fixed in the next update. :/
    Any help is very appreciated!

    Assuming you're using Windows (going by your system specs)...if you have bookmarks you need to preserve only for the touch, export all your current Internet Explorer (IE) bookmarks/favorites to a file and back that up. Then delete ALL bookmarks in IE & sync your bookmarks only using iTunes (IE has to be open for the bookmark sync to work properly). Your bookmarks will sync with IE and only the ones that were on your touch should be in your current IE bookmarks. Now export those bookmarks to a different file. When you want to restore the touch and it's bookmarks, sync the touch and select the option to over-write/replace the bookmarks on the touch. To get your Windows IE bookmarks back, restore from the first backup file you made. Note that the sort order after importing the bookmarks back into IE will be alphabetical rather than by when the bookmark was added. I don't think there's any getting around that.
    As far as deleting the default folders you're looking to get rid of, I don't believe that it's currently possible.

  • Apple_Boot Recovery HD partition - what exactly does it do?

    On a new MacBook Air (Mid 2011) there is a partiton on the internal solid state drive that shows up (you can see it by using Terminal, then type "diskutil list" at the prompt) as Apple_Boot Recovery HD  650.0 MB   disk0s3.
    My question is what exactly does this partition provide?  Is the Internet still required to accomplish a "Reinstall Mac OS X"?
    Does the partition just provide a quick way to reach the Mac OS X Utilities pane (see below) when restarting your computer while holding down the Command and R keys?
    If the partition is not on a MacBook Air (Mid 2011) do you reach exactly the same functionality when you are required to download the Mac OS X Utilities pane from the Internet?
    Once at the Mac OS X Utilities pane, would you be required to use the Internet to accomplish a "Reinstall Mac OS X" even with the presence of the the Apple_Boot Recovery HD partition?

    2. You can boot from any Recovery HD regardless of its location provided it's connected. For example you can use the Lion Recovery Disk Assistant -  OS X Lion: About Lion Recovery Disk Assistant - to put a Recovery HD volume onto a small USB flash drive with at least 2 GBs of space. You can install Lion onto a 16 GB USB flash drive in which case the installer will include a Recovery HD partition.
    3. If you boot from the Recovery HD then the reinstallation is by Internet. If you have your own bootable USB Lion flash drive, then the reinstallation will take place from the flash drive. Here's how the flash drive is made:
    Make Your Own Lion Installer
    1. After downloading Lion you must first save the Install Mac OS X Lion application. After Lion downloads DO NOT click on the Install button. Go to your Applications folder and make a copy of the Lion installer. Move the copy into your Downloads folder. Now you can click on the Install button. You must do this because the installer deletes itself automatically when it finishes installing Lion.
    2. Get a USB flash drive that is at least 8 GBs. Prep this flash drive as follows:
    Open Disk Utility in your Utilities folder.
    After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    3. Locate the saved Lion installer in your Downloads folder. CTRL- or RIGHT-click on the installer and select Show Package Contents from the contextual menu. Double-click on the Contents folder to open it. Double-click on the SharedSupport folder. In this folder you will see a disc image named InstallESD.dmg.
    4. Plug in your freshly prepared USB flash drive. You are going to clone the InstallESD.dmg disc image to the flash drive as follows:
    Open Disk Utility.
    Select the USB flash drive from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the USB flash drive volume from the left side list and drag it to the Destination entry field.
    Drag the InstallESD.dmg disc image file into the Source entry field.
    Double-check you got it right, then click on the Restore button.
    When the clone is completed you have a fully bootable Lion installer that  you can use without having to re-download Lion.

  • What exactly does "rejuvenate my system" do??

    have never run it, but didn't it to change any settings, etc... What exactly does it do and to what files/programs?? Thanks for the info

    untmom2003,
    Description of Rejuvenation copied from the Rescue & Recovery Help window:  
    Rejuvenating your system
    When you select to rejuvenate your system, the Rescue and Recovery(TM) program optimizes system performance by completing the following actions:
    Performs a new incremental backup of your system. This backs up all new or changed files so that all current files are saved in a backup.
    Defragments your hard drive and backup files. This maximizes the performance of your hard drive and backups so that all your data is stored in the same place on your hard disk. This enables your data to be located and displayed more quickly.
    Restores your operating system and application files from a backup of your choice. This enables you to choose which backup to use to restore your computer. You might want to choose a particular backup that you know to be free of viruses, adware or spyware. Or, if you are having serious problems with your operating system or applications, you might choose to restore files that you backed up before you started having problems.
    Restores you current settings and some personal data from the registry. This enables your computer to retain the features that you had previously set up.
    The rejuvenation process maintains your current settings and data while helping to eliminate viruses, adware and spyware. Applications installed or uninstalled after the selected backup was created might need to be installed again to function correctly. This operation might take some time.  

  • What exactly does the Work Offline option do in a shared review hosted on an internal server?

    Hi,
    What exactly does the Work Offline option do in a shared review hosted on an internal server?
    I *think* it simply disconnects you from the review server. I'm not sure why one would want to do this.
    I'm trying to recommend an offline workflow for reviewers who may not be able to access a shared review hosted on our internal server (for example, while traveling). These reviewers would like to be able to comment on an offline version of the review PDF and then publish their comments when they can again connect to the Internet/internal server.
    It doesn't seem like "Work Offline"  is the right fit for this scenario. Instead, should reviewers save a local copy to their hard drive, comment on it, and then, when reconnected to the Internet, open the local copy, click Reconnect to Server, and then click Publish Comments?

    Thanks, Dave. So for my hypothetical traveling reviewer, it would be reasonable to suggest the following steps for an offline workflow?
    1. Connect to the shared review.
    2. Choose Work Offline from the Server Status menu.
    3. Close and save the review PDF locally.
    4. Comment while traveling.
    5. When back in the office, open the local copy of the review PDF.
    6. Click Reconnect to Server.
    7. Click Publish Comments.

  • What exactly does a new poster have to do to get permission to post images?

    Recently there was a forum update that disabled new posters to add images
    (AND links?) Supposedly this was to reduce spam. So far so good.
    Not surprisingly, immediately after the update we have numerous posts in the Forums Issues forum complaining about this feature and no doubt plenty of users just submitting to this policy in silence.
    This whole feature is a SEVERE (that's right. bold AND in caps) hindrance. I don't have the stats, but I'm sure a considerable percentage of
    (non spam) original posts are from new users with no previous forum activity. Pictures are especially important in the Chart Control forum as visualization is what charting is all about.
    (This is the forum I frequent. So yes, I'm biased.)
    Ofcourse, I'm sure the forum developers have weighed the pros and cons and studied the stats and then decided what to do after serious consideration...
    The question is: What exactly does a new poster have to do to get permission to post images? Wait for how long? Reply to a confirmation email? "Participate" more?
    (Say it ain't so.) How much more?
    If there really is a workaround by adding an image tag with the edit html button, I don't want to hear it. It's as silly a way to add images as in the before times, the long long ago.
    (Also, if this is possible, this whole restriction feature is actually worse than useless. Spammers will exploit this sooner than later. (A very good point made by our dear friend Quincy in a post that has since been deleted it
    seems.))

    I believe answering that question defeats the purpose of having the "feature".
    I suspected as much.
    I was hoping to add some explanation to the chart forum FAQ, I guess "Body text cannot contain images or links until we are able to verify your account."
    (if this really is the only message new posters get) will have to do.
    I still feel this is more of a hindrance to the quality of the forums than not. As confirmed it seems by Naomi, spammers already have a workaround.
    Sipla, it sounds like we should add this FAQ to this article:
    http://social.technet.microsoft.com/wiki/contents/articles/7359.forums-help-faq-en-us.aspx
    What do you suggest?
    What does the message say to the user who cannot post links and images yet? We should map to that language.
    Thanks!
    Ed Price (a.k.a User Ed), SQL Server Customer Program Manager (Blog,
    Twitter,
    Wiki)
    It says "Body text cannot contain images or links until we are able to verify your account."
    If this means you will get a verify email, then you should get a verify email.  The message infers that either action will be taken by the forum mods that will be apparent to the user or that the user needs to take some sort of action. 
    If this is not the case, the wording needs to be changed; it should not mislead you.  This is an incredibly vague status message.
    I do not have any record of a verify email in my inbox history.  All I have is an email this morning from MSDN Site Support (I also posted a request yesterday in MSDN Site Feedback) asking me which account I needed verified.  I only have one account. 
    Almost immediately after I replied, I was able to post links and photos.  Honestly I do not know which came first though, the "verification" or my reply to the email or someone noticing the thread about compaining about it a month after signing up.

  • What exactly does am.invokeMethod() do?

    Can any one please explain what exactly does this am.invokeMethod() do
    and I would like to ask about the setForwardURL also.
    regards
    Ram

    Hello,
    setForwardURL() method is used to call another page from current page.
    here is the signature of the method..
    void setForceForwardURL(String url,
    String functionName,
    byte menuContextAction,
    String menuName,
    com.sun.java.util.collections.HashMap parameters,
    boolean retainAM,
    String addBreadCrumb,
    byte messagingLevel);
    Sequence of parameters are very important and you should not change it.
    Menu Context - This paramter determines the display of "Menus" on top of the page.
    Eg. In Iprocuremet you would have seen "shopping", "Requistions", "Receipts" etc
    This menu comes from AOL menus and functions. Hence while navigating from one page to another you have to tell the OAF whether you want to keep the existing menu or reset to new menus or remove the menus etc.
    Bread crumb is a small back navigation link that gets added to the top of the page below the Menus. It allows the user to navigate back to previously visted pages.
    messaging LeveL - Used to determine if the forward should be cancelled if messages or exceptions of level Error, Warning, Confirmation, or Information are found. Note all messages present will be shown regardless of the level.
    Eg: if you have said OAException.WARNING in this parameter, then the page navigation will be for any warnings generated with in the page
    Regards,
    Manish Chawla

  • Dumb Question - what exactly does "Static" mean

    What exactly does static variables and methods? What are they for?
    I know "final" means once you set it that's it..but what does static mean?

    There is also a static block use for initialising static variables.
    If you look in c:\j2sdk1.4.???\src.zip you will find the source to the libraries.
    from com/sun/image/codec/jpeg/JPEGTable
    public class JPEGQTable {
         /** The number of coefficients in a DCT block */
         private static final byte QTABLESIZE = 64;
          * This is the sample luminance quantization table given in the
          * JPEG spec section K.1, expressed in zigzag order. The spec says
          * that the values given produce "good" quality, and when divided
          * by 2, "very good" quality.
         public static final JPEGQTable StdLuminance = new JPEGQTable();
         static {
              int [] lumVals = {
                   16,   11,  12,  14,  12,  10,  16,  14,
                   13,   14,  18,  17,  16,  19,  24,  40,
                   26,   24,  22,  22,  24,  49,  35,  37,
                   29,   40,  58,  51,  61,  60,  57,  51,
                   56,   55,  64,  72,  92,  78,  64,  68,
                   87,   69,  55,  56,  80, 109,  81,  87,
                   95,   98, 103, 104, 103,  62,  77, 113,
                   121, 112, 100, 120,  92, 101, 103,  99
              StdLuminance.quantval = lumVals;
         }

  • 10.4.8..what exactly does it do?

    what exactly does the 10.4.8 upgrade do?
    I've read that it messes up the display config. and makes the macbook run at 2.0 ghz almost constantly....
    is running at 2.0 ghz a good thing?....
    i'm very reluctant to do this upgrade, since so many people are having issues with this..can anyone provide me with some answers?
    thank you..

    I just ran the update, thanks to Chris' comment about
    using a personalized calibration. I, too, do not use
    the standard color profile.
    I too have a customized color profile..i think..i did the tv version..does this mean that i won't get the blue tint?..
    also..RADE8, did you just do update from software update, or did you follow the guidelines provided in the url in chris's post?

  • Consolidate Masters - what exactly does this do?

    Hi all
    I am a relativity new aperture user. every time i import images from my camera, they have the little arrow in the bottom corner to show they are referenced files.
    I can fix this by clicking file>consolidate masters and choose to move or copy them.
    Forgive the basic-ness of this question, but what exactly does this do? And why can't i import them so they are not referenced files?
    thanks again for your help

    I suggest you read the manual for this sort of questions, but anyway, here's a quick answer:
    -consolidate masters moves or copies your images to somewhere withing your library, making them managed instead of referenced.
    -the import dialog, when you connect a card has the option to copy the files to anywhere on your disk, to pictures or to the library (making them managed, and thus not showing the little arrow).
    For the advantages and disadvantages of either, check this forum or again, the manual.
    j

  • HT201210 My iPhone became wet at the beach.  I put it in rice for 4 days.  When I connect to itunes, it says the phone must be restored.  It starts and then gives either the error 2001, or 2006.  What exactly does this mean, and is it worth getting repair

    My iPhone became wet at the beach.  I put it in rice for 4 days.  When I connect to itunes, it says the phone must be restored.  It starts and then gives either the error 2001, or 2006.  What exactly does this mean, and is it worth getting repaired?
    Thank you...

    http://support.apple.com/kb/TS1275
    Water damage isn't covered by warranty, but you could always purchase a refurbished device from Apple. 

  • What exactly does the following do?

    i understand what this does.
    return(password);
    but what exactly does this do?
    return (password == null ? "" : password);

    got it thanks.
    is the reason for this to prevent the javabean getter
    from sending a null to a jsp file?
    for example, if the setter is not called before the
    getter, the value is null and the jsp won't like
    this.
    could you also initialize the properties of the bean
    to ""?That sounds like a reasonable explanation. Depending on the implementation, initializing to "" might work fine or it might have unintended consequences if there's anywhere that a null and an empty string are interpreted differently.

Maybe you are looking for

  • Inefficient Creative Cloud

    I understand that one of the main goals of making Creative Cloud was to make the product easier to purchase and probably to reduce piracy, however here is a run-through of what is required of me as an end user to use Adobe's Creative Cloud. Visit ado

  • Free goods procured needs to be maintained as valuated goods in inventory

    Dear All, Here the scenario is, the company procures the material free of cost from the vendor, but they need to maintain the material in inventory in the same value as they mentioned in the material master. But if i check in T code MB52, after makin

  • ORA-12545 .... host or object does not exi

    Hi there. Im tiered from that Trying install 8.1.7 on Red Hat 7.0. Not working. (I read all from what I cud from this group, but still dont know what to do ) I installed glibc 2.1.3. After that I was able to create a database. I can open it, connect

  • Old, unsaved numbers?

    Okay so I recently syncd my iPhone 5 to my mac (onto address book, which i wiped). However, now when I go to text people I have old numbers that I no longer have saved. The thing is, the only come up in text. Example, I go to text 'Bob', so I type 'n

  • My 3Gs wont sync Music from iTunes even after "restoring" phone

    Whilst going through the Syncing steps it gets so far into the Music backup then just quits and closes down. Aaaaaaaaarrrrgghh