Obtaining document info using categories/perspectives as search criteria

Hi, I'm really stuck on this and any help would be much appreciated.
I want to select out document information using the categories and perspectives as search criteria, I've written the following select statement but am not sure that this is the correct way to do it and I keep getting a 'unhandled user-defined exception ... at PORTAL.WWCTX_SSO'
(I have set the context before running the sql)
select id, display_name, description, real_filename, mime_type, doc_size
from
portal.wwsbr_all_items, portal.wwv_document$
where
wwsbr_all_items.filename = wwv_document$.name
and category_id=(select id from portal.wwsbr_all_categories where name = 'MY_CATEGORY')
and id in (select item_id from portal.wwsbr_item_perspectives where upper(perspective_name) = 'MY_PERSPECTIVE')
and is_current_version = 1 and (expiredate IS NULL or expiredate > sysdate)
Alison

Hi Alison,
I just tried your query in SQL* Plus, TOAD & Oracle Portal - Dynamic Page & PL?SQL Item. I set the context ( as given int he Documentation ) using :-
PORTAL.wwctx_api.set_context('PORTAL','JKuNcME9','Oracle');I then tried your code & it works fine. I don't see the usual ORA-06510: PL/SQL: unhandled user-defined exception.
Your logic does look fine - I haven't tired something like this with Categories & Perspectives, but your query looks fine to me. I'll try to snoop around Metalink & see what I get...
Regards,
Sandeep

Similar Messages

  • About using categories and perspectives for new user

    We are just beginning a conversion and upgrade project to convert our Web site to Oracle Portal. I'm trying to get a good handle on some different things we need to resolve as part of the project. One of the first decisions is using Categories and Perspectives.
    I'd like to ask users about how they have used categories and perspectives and some real-world examples of how these work and improve the site and user experience.
    About us
    We're a big nonprofit river authority and wholesale electric provider in Austin, Texas. Currently, we offer very limited online transaction capabilities. However, we are diverse organization and users come to us looking for every specific information, so these elements may be very helpful. I'm evaluating how we can use these and other elements to make recommendations. Some real-world examples and best practices would help a lot.
    Thank you, Charles Boisseau
    Web editor
    Lower Colorado River Authority
    [email protected]

    Continuing the thread...
    Perspectives and categories may be leveraged in custom search portlets, so that you can enter the content one time, in one place, and have selected content display in multiple places.
    Re: our "news" concept: our central communications group posts news stories tagged with one or more perspectives, such as which school is related to the story. This allows us to keep all of our news stories in one page group, but reuse the content elsewhere. For example, for the School of Nursing intranet, we can use a custom search portlet that automatically displays only that school's stories.
    You'll want to do some up-front planning regarding your classification scheme. One significant limitation of both categories and perspectives is the inability to change the hierarchy. Oracle Portal product team, if you're reading this, this is a serious pain! I might also recommend leaving your classification scheme relatively flat. Tagging content with perspectives becomes more difficult if the content contributor has to visually traverse a deep hierarchy of perspectives.
    Categories work similarly, but we mainly use them to visually sort items on a page using the "Group By" feature of a region.
    Hope this gets some gears turning.
    -John

  • Searching for document that uses a certain font?

    Is there a way to search for a Word document that uses a specific font? There is only one possible document on my hard drive that uses this font.

    There must be a way, that info is stored in the Document near the end, like...
    Still working on it.

  • Open PDF's in new window in document library when using "Find a file" search

    I need to be able to open PDF's in a new window from a document library when using the "Find a file" search built into the document library "All documents" view. I currently have the following javascript on the page:
    _spBodyOnLoadFunctionNames.push("setTargetBlank()");
    function setTargetBlank()
    { $("a[href$='.pdf']").removeAttr('onclick').attr("target", "_blank");
    This works great when going to the document library and navigating through the folders then clicking on a link.
    The problem is when someone goes to the document library then uses the "Find a file" search and then they click on a link. The "Find a file" search does not do a postback (reload) of the page, therefore my javascript to find the PDF links
    and make them open in a new window does not run for the links on the page.
    I have read the following article but this does not seem to offer a solution that will work in this situation for SharePoint 2013 (Office 365): http://social.technet.microsoft.com/Forums/sharepoint/en-US/7ad3224c-3165-47ae-95bc-4f3928e2f9a8/opening-document-library-pdf-in-a-new-window-sharepoint-2013?forum=sharepointgeneral
    I suppose the idea solution would be to somehow tap into the event that is fired when using "Find a file" search to run my javascript and update the links for the search results.
    Can anyone offer any solutions to this issue?

    Hi,
    According to your description, my understanding is that you want to open PDF files in a new window from a document library when using the "Find a file" search.
    As you said, the "Find a file" search does not do a postback (reload) of the page, therefore JavaScript to find the PDF links and make them open in a new window does not run for the links on the page.
    I recommend to use JS link to achieve the goal. Create a JavaScript override file and upload the JavaScript file to the Master Page Gallery, and then set the JS Link property of the document library web part to point to the JavaScript file.
    Here are some links about the JS link in SharePoint 2013 for you to take a look:
    http://www.idubbs.com/blog/2012/js-link-for-sharepoint-2013-web-partsa-quick-functional-primer/
    http://www.learningsharepoint.com/2013/04/13/sharepoint-2013-js-link-tutorial/
    http://zimmergren.net/technical/sp-2013-using-the-spfield-jslink-property-to-change-the-way-your-field-is-rendered-in-sharepoint-2013
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • HT201335 I have a UK apple mac and im trying to use mirroring so when searching google, ebay, writting document it shows up on my tv but i dont have the option when i click on the rectangular box in lower right hand corner. ANy one have advice?

    I have a UK apple mac and im trying to use mirroring so when searching google, ebay, writting document it shows up on my tv but i dont have the option of 'Mirroring' when i click on the rectangular box in lower right hand corner. Anyone have advice on how I can do this?

    Welcome to the Apple Community.
    AirPlay Mirroring requires a second-generation Apple TV or later, OS X 10.8 or better and is supported on the following Mac models: iMac (Mid 2011 or newer), Mac mini (Mid 2011 or newer), MacBook Air (Mid 2011 or newer), and MacBook Pro (Early 2011 or newer). It also requires the computer to be using wi-fi.
    Do you meet these requirements.

  • Using Oracle Text to search through WORD, EXCEL and PDF documents

    Hello again,
    What I would like to know is if I have a WORD or PDF document stored in a table. Is it possible to use Oracle Text to search through the actual WORD or PDF document?
    Thanks
    Doug

    Yes you can do context sensitive searches on both PDF and Word docs. With the PDF you need to make sure they are text and not images. Some scanners will create PDFs that are nothing more than images of document.
    Below is code sample that I made some time back to demonstrate the searching capabilities of Oracle Text. Note that the example makes use of the inso_filter that is no longer shipped with Oracle begging with Patch set 10.1.0.4. See metalink note 298017.1 for the changes. See the following link for more information on developing with Oracle Text.
    http://download-west.oracle.com/docs/cd/B14117_01/text.101/b10729/toc.htm
    begin example.
    -- The following needs to be executed
    -- as sys.
    DROP DIRECTORY docs_dir;
    CREATE OR REPLACE DIRECTORY docs_dir
    AS 'C:\sql\oracle_text\documents';
    GRANT READ ON DIRECTORY docs_dir TO text;
    -- End sys ran SQL
    DROP TABLE db_docs CASCADE CONSTRAINTS PURGE;
    CREATE TABLE db_docs (
    id NUMBER,
    format VARCHAR2(10),
    location VARCHAR2(50),
    document BLOB,
    CONSTRAINT i_db_docs_p PRIMARY KEY(id)
    -- Several notes need to be made about this anonymous block.
    -- First the 'DOCS_DIR' parameter is a directory object name.
    -- This directory object name must be in upper case.
    DECLARE
    f_lob BFILE;
    b_lob BLOB;
    document_name VARCHAR2(50);
    BEGIN
    document_name := 'externaltables.doc';
    INSERT INTO db_docs
    VALUES (1, 'binary', 'C:\sql\oracle_text\documents\externaltables.doc', empty_blob())
    RETURN document INTO b_lob;
    f_lob := BFILENAME('DOCS_DIR', document_name);
    DBMS_LOB.FILEOPEN(f_lob, DBMS_LOB.FILE_READONLY);
    DBMS_LOB.LOADFROMFILE(b_lob, f_lob, DBMS_LOB.GETLENGTH(f_lob));
    DBMS_LOB.FILECLOSE(f_lob);
    COMMIT;
    END;
    -- build the index
    -- Note that this index differs than the file system stored file
    -- in that paramter datastore is ctxsys.defautl_datastore and not
    -- ctxsys.file_datastore. FILE_DATASTORE is for documents that
    -- exist on the file system. DEFAULT_DATASTORE is for documents
    -- that are stored in the column.
    create index db_docs_ctx on db_docs(document)
    indextype is ctxsys.context
    parameters (
    'datastore ctxsys.default_datastore
    filter ctxsys.inso_filter
    format column format');
    --search for something that is known to not be in the document.
    SELECT SCORE(1), id, location
    FROM db_docs
    WHERE CONTAINS(document, 'Jenkinson', 1) > 0;
    --search for something that is known to be in the document.  
    SELECT SCORE(1), id, location
    FROM db_docs
    WHERE CONTAINS(document, 'Albright', 1) > 0;

  • How to Search document by using Long text description contents in SAPEasy DMS

    Hi,
    How to Search document by using Long text description contents in SAPEasy DMS
    Regards,
    Shrikant Shinde

    Hi Alfredo,
    Thanks for reply..Will you please explain in brief what are the  OCR program and workflow.
    Will you please send me any docs on [email protected]
    Thanks
    shiv.

  • Search using categories from 2nd cat schema not working

    Hi,
    We're currently using 2 categorization schemas in our transactions.  However, the Category search criterion doesn't seem to work when we try to search for transactions using categories from the second categorization schema.  The same search criterion works well with the first categorization schema.  Can you pls. give us an idea on what configurations we could be missing out on?  Will greatly appreciate your help.  Thanks in advance.
    Regards,
    Theresa

    Hi,
    We're currently using 2 categorization schemas in our transactions.  However, the Category search criterion doesn't seem to work when we try to search for transactions using categories from the second categorization schema.  The same search criterion works well with the first categorization schema.  Can you pls. give us an idea on what configurations we could be missing out on?  Will greatly appreciate your help.  Thanks in advance.
    Regards,
    Theresa

  • Can we use TREX server to search cFolders documents?

    Can we use TREX server to search cFolders documents by their contents?

    Yes, this is possible with cFolders 4.5 release.

  • Query a document library using Search Rest API

    How can we search for a specific document library using SharePoint Search through Rest API? We have a couple of document libraries which have thousands of documents with its relevant metadata information stored. We need to create an app to search through
    these document libraries and display the document and its metadata. Can someone point me in the right direction?
    V

    Taking what Shakir said you would substitute queryText with a managed property query (KQL) to query against metadata from the Document library. So if your document library has a Owner column then you would either create or use an existing managed property
    defined in the Search Schema. So your query may look like this:
    https://<site URL>/_api/search/query?querytext='(owner:smith)+AND+(path:<library url>)'
    Link:
    https://msdn.microsoft.com/en-us/library/office/ee558911.aspx?f=255&MSPPError=-2147217396
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Problem in WebUI Search using categories

    When doing an Advanced Find in the WebUI using a content type search specifing a Category and searching on the attributes, the results are the category instances and not the publicobjects that they associate with. The WinUI does this correctly. Ideas on how to correct?
    Michael D. Smith
    ERDC - CRREL
    603-646-4765
    [email protected]

    I am sorry, this is not an answer to your question but a little help from you is well appeciated.
    I have just started exploring oracle 9i Lite to develop apps. on Palm and WinCE using OKAPI but the documentation does not seem enough. Is there some book or sample programs available that demonstrate OKAPI to develop form based apps ? CodeWarrior and Satellite Forms are not good when someone wants to try writing demp app.
    Thanks,
    Ashish

  • Document Info Record and Archivelink

    Dear all,
    Can any expert help to distinguish Document Info Record (e.g. CV04N) and Archivelink (e.g. OAER)?
    When should we use these two document management systems?
    We're now using ArchiveLink but we it is hard for us to search for specific document since there're no business custom attributes or characteristics to describe the document. Can we add custom attributes to ArchiveLink document?
    Document Info Record support characteristics seem can solve the problem. But how do we upload the document by using BAPI rather than attach it manually by CV01N.

    Hi Karlo,
             As you mentioned, object links could be linked to Purchase order items. In customisation you maintain these entries under the node SPRO > Cross Application Components> Document Management--> Control Data --> Define Document Types --> Define Object Links.
    There are many links in the standard system (possible entries).
    The system automatically determines the screen number (dialog box) where the key data for the object is maintained for document maintenance.
    You can check the screens when the screen entry is missing or contains errors by doing the following:
    Start the Object Navigator and display the objects for the development class  CV.
    Expand the function group 130. The structure nodescreens lista all screens that can be used for object links.
    You can make an object link to SAP objects that are not shown in the possible entries list. To do this, proceed as follows:
    In the standard system, there are already two special screens for the module pools SAPLCV130 and SAPLCV140 for the linked SAP object.
    You must create two new screens with the same number for the module pools SAPLCV130 and SAPLCV140 .
    The processing logic must follow that of screen 1204 in program SAPLVC130.
    Create function module OBJECT_CHECK_XXXX (XXXX = object name)
    If the object can be classified, this function module already exists .
    Otherwise copy the function module for linking equipment DOCUMENT_CHECK_EQUI and change it as required for the new object.
    Hope the above instruction helps in solving your problem,
    Sojan
    Note : Award points if you find the information useful

  • Error while Updating document details using Edit option

    We are currently on Oracle Application Server 10g (9.0.4) on Solaris, 64 bit. We have added new perspectives on the knowledge portal which we use within our firm.
    We are able to upload documents with new perspectives but when we try to edit currently uploaded documents and add new perspectives. We are getting no data found and Error 30694: Error in API - update item failed.
    Please share your experiences on this.

    Pl post details of OS, database and EBS versions, along with HR RUP level. It may be a bug, as outlined in MOS Doc 429169.1 (When Calling the Assignment API To Update Position, It Errors in Required Segment)
    HTH
    Srini

  • Download older version of a file from SharePoint Document Library using CSOM and 404 error

    Hi,
    I am trying to download previous versions including Major and Minor versions of documents from SharePoint Online using CSOM. I get 404 error when I try to download the file. I found several posts on various discussion forums where people are getting same
    error but none of those have any solution/answer. Below is one of the threads and sample code I have tried that results in 404 error. If I use the link in browser directly, I am able to download the file. Also I am able to download the current version of file
    using CSOM without any problem, it is only the older versions that give me 404 in CSOM.
    http://qandasys.info/how-to-download-the-historical-file-version-content-using-csom/
    public int GetStreamFromFile(string docid, string lib, string fileurl, ClientContext clientContext, int iuserid, string Version, bool isCurrrent)
    if(!isCurrent)
    List LibraryName = clientContext.Web.Lists.GetByTitle(lib);
    clientContext.Load(LibraryName);
    clientContext.ExecuteQuery();
    CamlQuery camlQuery = new CamlQuery();
    camlQuery.ViewXml = "" + fileurl +
    Microsoft.SharePoint.Client.ListItemCollection collListItem = LibraryName.GetItems(camlQuery);
    clientContext.Load(collListItem, items => items.Include(item => item.Id, item => item["FileLeafRef"], item => item["LinkFilename"],
    item => item["FileRef"], item => item["File_x0020_Size"], item => item["DocIcon"], item => item.File.Versions));
    //clientContext.Load(collListItem);
    clientContext.ExecuteQuery();
    foreach (Microsoft.SharePoint.Client.ListItem oListItem in collListItem)
    //string fileurl1 = (string)oListItem["FileRef"];
    //string filename = (string)oListItem["LinkFilename"];
    foreach (FileVersion version in oListItem.File.Versions)
    if (Version == version.VersionLabel)
    //Added excutequery to get object one more time as per blog
    //http://social.technet.microsoft.com/Forums/de-DE/sharepointdevelopmentprevious/thread/88a05256-8694-4e40-863d-6c77512e079b
    clientContext.ExecuteQuery();
    FileInformation fileInformation = ClientOM.File.OpenBinaryDirect(clientContext,version.Url);
    bytesarr = ReadFully(fileInformation.Stream);
    Darwaish

    Hi,
    According to your description,
    I know you want to get older version of a file from SharePoint Document Library using Client Object Model.
    The following code snippet for your reference:
    public void GetVersions()
    ClientContext clientContext = new ClientContext(“http://SPSite”);
    Web site = clientContext.Web;
    clientContext.Load(site);
    clientContext.ExecuteQuery();
    File file = site.GetFileByServerRelativeUrl(“/Shared Documents/mydocument.doc”);
    clientContext.Load(file);
    clientContext.ExecuteQuery();
    ListItem currentItem = file.ListItemAllFields;
    clientContext.Load(currentItem);
    clientContext.ExecuteQuery();
    FileVersionCollection versions = file.Versions;
    clientContext.Load(versions);
    clientContext.ExecuteQuery();
    if (versions != null)
    foreach(FileVersion _version in versions)
    Console.WriteLine(“Version : {0}”,_version.VersionLabel);
    More information:
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.file.versions.aspx
    Best Regards,
    Dennis Guo

  • How to get the "Document Info" in illustrator

    In illustrator using "Document Info" we can get the file information. Like that how to get the document information using script. Anyone please help me.
    Regards,
    Prabudass

    I think sample code in the SDK contains a 'skeleton' plugin, I'd start with that. It should also provide a list of suites that get automatically loaded, I think it's in Suites.h. Just make sure AIDocumentSuite is in the list, and if it's not, just follow the examples in that file to add it. That should end up with a global variable called 'sDocument', which has all the suite functions as methods.
    Then it's something like:
    AIDocumentSetup setup;
    AIErr error = sDocument->GetDocumentSetup(&setup);
    // check error to make sure it's kNoErr
    Then you just have to inspect the setup struct for (hopefully) the answers you're looking for.

Maybe you are looking for

  • Error message when updating Itunes...can not open Itunes program

    I am recieving error message when updating Itunes for my computer.  The error message reads "MSVCR80.dll is missing and the other error message reads Error 7  (Windows error 126)"  I can not open my Itunes.  I have reloaded the Itunes onto my compute

  • Decimal Places SAP 07

    Hi All, Does anyone know why we cant change Decimal places settings in SAP 07? I am running PL 08. When I try to change the decimal places settings from 6 to 2, I receive an error that says 'Decimal Places cannot be decreased'. We are able to change

  • Trouble installing Adobe Photoshop Elements 10

    Hi, I just wrote that I finally installed 2 of 3 discs. It would have been helpful to know the content of these discs. I presumed disc 1 is essential, disc 2 in my set is the trila for Adobe Premiere Elements 10 but I do not know what disc 3 contains

  • Import a CSV file

    Hi, I'm trying to import a file in a table but it does not occur anything. Here is my SQL statement : sqlldr fi01_owner/aaaaaa2005 control=loader.ctl load data infile 'L:\XS_TREATY.csv' into table XS_TREATY fields terminated by "," optionally enclose

  • BDC(va02) page down condition

    hi all! i done bdc for va02. In this when i press page down (=p+)only 9 line item will display  and again press page down next  9 line item will be shown .(in my pgm 11 line items showing) Is it possible to give a spacific conditio for page down ? ho