How do we retrieve the category instances matching a search expression?

Consider the following (simplified) example:
We archive consolidated reports. Reports come from different branches each containing the data for multiple departments. We create a category containing attributes for the branch, department, and report date. We apply multiple instances of the category to each report, one for each department contained in the report.
We can specify the department for our search and get back the reports with matching category instances; however, since the report dates are not necessarily predictable we can't qualify the search by date. What we'd like to do is retrieve the matching category instances and display them; the user would then select the desired instance to specify the report for retrieval.
We tried requesting the categories and custom attributes with the search, but it appears ContentDB first finds the qualifying reports then returns all the category instances on those reports--not just the ones that matched the search expression.
I see the SEARCH_FOR_DOCUMENTS, SEARCH_FOR_FOLDERS, etc. search options, but not one for SEARCH_FOR_CATEGORIES (or equivalent). Is there a way to retrieve just the category instances that matched the search expression?

Unfortunately no.
As you have found out, requesting Attributes.CATEGORIES on the document will return all category instances. You would currently need to do client-side processing to locate the specific matching category instance by recursing through the category item[] and checking first that the CATEGORY_CLASS matches, and second, the value of the particular category attribute matches.
If you are building a custom application front-end, maybe you could consider applying a single instance of some master category to the report that has a String array attribute containing all of the associated unique department ids to which the report applies.
Then having applied the 10.1.2.3.1 patchset (and in particular Enh 5171342 NEED SEARCH EXPRESSION SUPPORT FOR ARRAY TYPE CATEGORY ATTRIBUTES), you could quickly locate the reports of interest for a specific department.
The master category instance could also potentially contain an array of DeptID:CategoryInstanceId pairs that allow you to quickly retrieve a specific category instance given a department id.
Matt.

Similar Messages

  • How to programmatically retrieve the real field name from a view object ?

    Dear all,
    when I map a business component (a database table) to a view, the fields are automatically converted by JDeveloper, for example, a field named 'user_id' in the oracle table definition, becomes 'userid' in the view.
    The question: how can I retrieve the right table column name from within a backing bean ? Please explain also what should I bind and how; should I use an iterator ?
    Another more: since we can change the label of a field on a view, how can then I get the mapping between the column name on the view and the column name on the table in the database ?
    Thanks in advance,
    Sergio.

    Hi Timo,
    many thanks for your answer.
    The rest of my question: you know we can drop a view from the DataControls onto a ADF page, with each field of the table having a label.
    That label is initially set like the internal table field name, so for instance, if user_id is the real table field name, userid will be the (by JDeveloper) internal renamed table field name, and the label would be userid too.
    If I then change the label text to, for example, "myUserid", the question is: how can I know which real table field does "myUserid" point to ?
    In other words, when my form is submitted, I want to know which field name has been changed and prepare an update sql in a bean.
    For this purpose I bind each view field to a validator function in the bean, and collect al the pairs "label_name + submitted value" in an hash table.
    Now inorder to build up that update query, I need the mapping between the label_name ("myUserid") and the real table field name ("user_id"). The question: how to map the label to the real table field name ?
    By the way, I'm using JDeveloper 11g rel. 2.
    Regards,
    Sergio.

  • I updated my iPod and it erased everything i had on it.  How do i retrieve the songs that i bought from the iTunes store?  when i try to download/buy them again they tell me i have already purchased them do i want to buy them again?

    I updated my iPod and it erased everything i had on it.  How do i retrieve the songs that i bought from the iTunes store?  when i try to download/buy them again they tell me i have already purchased them do i want to buy them again?  I have authorized my computer but none of them are in my music now.

    You buy one and only one download.
    It is your responsibility to move/copy/backup your music.
    Certainly you did not update your ipod without making sure that you had transferred anything purchased on the ipod to your computer and included it in your regular backup copy of your computer.

  • How can we retrieve the Payload information from B2B

    Hello,
    We are trying to send the payload information back to the client for a failed BPEL Transaction from B2B's b2b_instancemessage view. We are enqueing messages to IP_OUT_QUEUE using BPEL. We see the payload coming correctly in the B2B Business Message Reports. But we don't see the payload coming in the b2b_instancemessage view for failed B2B transactions. How can we see the payload in b2b_instancemessage view for failed B2B transactions as well? or How can we retrieve the Payload information from B2B?
    Any help is greatly appreciated! Thanks. - Sam.
    Edited by: user12049162 on Dec 4, 2009 2:04 PM

    I am not sure about the PDK API to get the group name. But using LDAP API its easy to get the User Group.
    If you find the answer to get the group name using PDK API, Please update in forum. It will really help others.
    --Balaji S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • I forgot my password to get inot email on Thunderbird. How do I retrieve the password or set a new one?

    When I ttry to get my email through Thunderbird, it is now asking me for my password, but I have forgotten it, it has been so long since I have been asked for it. How do I retrieve the password, or set a new one?
    YOU CANNOT EMAIL ME MY ANSWER SINCE I CANNOT OPEN MY EMAIL. CALL at 240-305-7128 or email at [email protected]
    == This happened ==
    Every time Firefox opened
    == yesterday

    You need to go to the website of your email provider, only there can you change your password, or let them send you a new one to a different address. Thunderbird can't help you with that.

  • I recently removed an outlook account and now all of my calendar events are missing. The majority of them were added from my iphone 4s. How do I retrieve the events? Backing up with iCloud did not help, as I assumed it would.

    I recently removed an outlook account and now all of my calendar events are missing. The majority of them were added from my iphone 4s. How do I retrieve the events? Backing up with iCloud did not help, as I assumed it would.

    Outlook is a mail client for PC's (and Macs). It is not a type of account. Do you mean an "Exchange Account"?
    If so, then re-add it. The calendar events live on the Exchange Server. The only way to get them back is to re-add the account to the phone. The contents of Exchange and IMAP accounts are not part of the 'backup' as they already exist elsewhere.

  • How can I map the category in Outlook to ICal for Google Calendar Syncing

    I have the syncing working between Outlook 2011 and iCal and Google Calendar; however all my events come in with a category of "No Category" into iCal.  Unless I open iCal and manually change "No Category" to my google calendar it will not sync with Google Calendar.  Does anyone know how I can have the category come from Outlook to iCal and default it to my Google Calendar?

    If it is a Bluetooth mouse, you might find something here:
    Keyboard + Mouse

  • My iPhone was stolen.  How do I retrieve the pictures etc that were on imt.  I know they must be in the iCloud but I don't know how to get into it from my iPad.  Also, I would like to try to locate the phone ...how do I do that from my iPad?

    My iPhone was stolen.  How do I retrieve the pictures etc that were on imt.  I know they must be in the iCloud but I don't know how to get into it from my iPad.  Also, I would like to try to locate the phone ...how do I do that from my iPad?

    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
     Cheers, Tom

  • I accidently hit "forget about this site" in my history, and it deleted all related sites to it. i desperately need to get them back. how do i retrieve the forgotten or deleted sites from history in firefox4 ?

    i use the firefox4, and when i went to my history, i right clicked to delete a certain site, and accidentally hit the last option; (forget about this site) which deleted all the similar sites to the one i clicked! i.e. if it were facebook site, all facebook sites were gone..
    '''how do i retrieve the sites i lost in history?'''

    Tony, thnx for the prompt response,,
    however, i didn't delete. i hit the below option which reads; "forget about this site" which is the last item in the list that appears when you right click any site in history.
    i was told there are open source programs that can retrieve it.
    '''how sure r u that they cannot be recovered?!'''

  • How to selectively disable Header & Footer/How do we retrieve the PageName in the custom navtype cla

    I would like to disable the Header and Footer for the login page. In my Custom Navigation Type class, I went ahead and made the following changes to the isFeatureEnabled() function.
    if(feature.Equals(NavFeatureEnum.TOPBAR))
    returnfalse;
    if (feature.Equals(NavFeatureEnum.HEADER))
    return false;
    But this essentially disables the header and footer for the entire Sub Portal. How can I retrieve the PAGE NAME in the Navigation Type class so that I can selectively disable the feature. This is what I would like to do
    if (pageName.equals("LOGIN")) {
    if (feature.Equals(NavFeatureEnum.HEADER))
    return false;
    Appreciate anyone's help in resolving this issue.
    Thanks
    Vikram

    Vikram,
    Unfortunately, you there is no way to check for page name inside the IsFeatureEnabled method. What you could do, if you want to always disable the header and footer in all navigation schemes, is to change com.plumtree.portalpages.common.uiparts.PlumtreeDP to have it check for current page name. In the Display method, search for
    displayHeader = GetPlugNavFeature(navType,NavFeatureEnum.HEADER);displayFooter = GetPlugNavFeature(navType,NavFeatureEnum.FOOTER);
    and change it to:
    if ( !LoginAS.STR_MVC_CLASS_NAME.equals(GetOwner().GetName()) ) { displayHeader = GetPlugNavFeature(navType, NavFeatureEnum.HEADER); displayFooter = GetPlugNavFeature(navType, NavFeatureEnum.FOOTER);} else { displayHeader = false; displayFooter = false;}
    Just remember that we might make changes in PlumtreeDP in future updates. You would have to add this code in again if we do.

  • When importing a CD, the CD Lookup Results dialogue box came up and I choose the wrong CD title.  Now iTunes is importing a different song list than the one on my CD.  How can I retrieve the CD Lookup Results to choose the correct title?

    When importing a CD, the "CD Lookup Results" dialogue box came up and I choose the wrong CD title.  Now iTunes is wanting to import a different song list than the one on my CD.  I've shut down my computer and opened iTunes from the hard drive Program Files and tried to import the CD again with the same problem.  How can I retrieve the "CD Looup Results" diaglogue box to choose the correct CD title to fit the song list on my original CD?

    You might also be able to do it without importing the songs again I think. Just highlight the tracks, right click them and choose "Get Track Names". This feature only works on CDs that were imported via iTunes.

  • I have mistakenly deleted a mail folder which I had created. Can't remember if it was located to 'iCloud' or 'On My Mac'. How can I retrieve the emails contained in this deleted folder? Your help will be immensely appreciated!

    I have mistakenly deleted a mail folder in which I had created. I can't remember if it was located to 'iCloud' or 'On My Mac'. How can I retrieve the emails contained in this deleted folder? Your help will be immensely appreciated!

    Yeah not a problem. It does seem though that if you did not have a Time Machine backup then you may not be able to recover the deleted folder :/ But for future reference to prevent any of this, a Time Machine backup is a great investment.
    What it does is create an entire backup of your computer anything from personal information down to the screen saver.
    What you first need is a new external hard drive (I would recommend a 1TB or higher just to prevent running out of space soon).
    after that, just plug in the drive to your computer.
    once it is plugged in, in the top right hand corner, close to the wi-fi symbol, you should see a symbol that looks like a clock with a backwards arrow around it.
    click on that and select "open time machine preferences"
    just turn the button to the "on" position, and select the backup drive and Time Machine does the rest
    very great tool

  • I set up my new iPad, then deleted the Pages documents on my old iPad, but this had the effect of deleting them on my new iPad too because they are synced. How do I retrieve the deleted documents?

    I set up my new iPad, then deleted the Pages documents on my old iPad, but this had the effect of deleting them on my new iPad too because they are synced. How do I retrieve the deleted documents?

    Sorry no. That's how it works.
    Check if you still have an old backup and do a restore otherwise it's gone.

  • TS3274 How can I retrieve the iTunes and App icons to my home screen?

    How can I retrieve the missing iTunes and App icons to my iPad home screen?

    If you can't find them on any of your homescreens or app folders, and you can't find them via the spotlight search screen (swipe your first home screen to the right), then are they hidden by Settings > General > Restrictions > Installing Apps and iTunes being set 'off' ?
    If not then have you tried a reset to see if you can find them after the iPad has restarted ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • How do I retrieve the answers to my security questions as I have forgotten one of them?, How do I retrieve the answers to my security questions as I have forgotten one of them?

    I want to purchase an app but I am being asked to answer two security questions, unfortunately I cannot remember the answer to one of them, how do I retrieve the answer or change the question?

    If you can't remember the answers to the security questions, then go to Express Lane  and select 'iTunes' from the list of 'products' in the middle of the screen.
    Then select 'iTunes Store', and on the next screen select 'Account Management'
    Next choose 'iTunes Store Account Security' and fill in that you'd like your security questions/answers reset.
    You should get an email reply within about 24 hours (and check your Spam folder as well as your Inbox).

Maybe you are looking for