IFS relationships (ODMM_CONTENTSTORE)

I have used the ifs web interface to
add files to the contentstore. I then
tried to use a pure SQL query to search the
store. The query is below and acts on
the table ODMM_CONTENTSTORE. This was
successful and i got 'hits'. The question
that i have is how do i reconcile the ID
value from ODMM_CONTENTSTORE to the view
ifs_all_documents... the ifs_all_documents
view has all the additional info i want on
ifs documents, however the id i get from ODMM_CONTENTSTORE does not correlate to any
id's in ifs_all_documents...
can anyone make a suggestion?
adam
SELECT id, format, SCORE(1), SCORE(2)
FROM ODMM_CONTENTSTORE
WHERE
CONTAINS (ODMM_CONTENTSTORE.GLOBALINDEXEDBLOB, 'sssuuuuggggggghhhhh', 1) > 0
OR
CONTAINS (ODMM_CONTENTSTORE.GLOBALINDEXEDBLOB, 'Native Dynamic SQL', 2) > 0
ORDER BY NVL(SCORE(1),0), NVL(SCORE(2),0);

You can use iFS Java API to do search based on relationship.
PublicObject class has the following methods that you can use to find the related objects.
If you have a public object, then you can find all it's related objects using the following
methods.
public PublicObject[] getLeftwardRelationshipObjects(ClassObject relClass) throws IfsException
public PublicObject[] getLeftwardRelationshipObjects(java.lang.String relClassName) throws IfsException
public PublicObject[] getRightwardRelationshipObjects(ClassObject relClass) throws IfsException
public PublicObject[] getRightwardRelationshipObjects(java.lang.String relClassName) throws IfsException
You can also find relationships themselves using the following methods.
public Relationship[] getLeftwardRelationships(ClassObject relClass) throws IfsException
public Relationship[] getLeftwardRelationships(java.lang.String relClassName) throws IfsException
public Relationship[] getRightwardRelationships(ClassObject relClass) throws IfsException
public Relationship[] getLeftwardRelationships(java.lang.String relClassName) throws IfsException
You will have to use Search in case you do not have the public object, whose
related objects you are looking for. For eg, you may want to search for all related
objects of a PO whose name contains "foo".
null

Similar Messages

  • How to search the IFS relationships?

    How to perform advanced search amidst the various relationships (system and user defined) that IFS manages?

    You can use iFS Java API to do search based on relationship.
    PublicObject class has the following methods that you can use to find the related objects.
    If you have a public object, then you can find all it's related objects using the following
    methods.
    public PublicObject[] getLeftwardRelationshipObjects(ClassObject relClass) throws IfsException
    public PublicObject[] getLeftwardRelationshipObjects(java.lang.String relClassName) throws IfsException
    public PublicObject[] getRightwardRelationshipObjects(ClassObject relClass) throws IfsException
    public PublicObject[] getRightwardRelationshipObjects(java.lang.String relClassName) throws IfsException
    You can also find relationships themselves using the following methods.
    public Relationship[] getLeftwardRelationships(ClassObject relClass) throws IfsException
    public Relationship[] getLeftwardRelationships(java.lang.String relClassName) throws IfsException
    public Relationship[] getRightwardRelationships(ClassObject relClass) throws IfsException
    public Relationship[] getLeftwardRelationships(java.lang.String relClassName) throws IfsException
    You will have to use Search in case you do not have the public object, whose
    related objects you are looking for. For eg, you may want to search for all related
    objects of a PO whose name contains "foo".
    null

  • How to access IFS document contents in PL/SQL procedure ?

    I am interested in using IFS as a way to load documents
    (PDF, HTML, RFT, text...) in an Oracle database table, and
    then access the table via a regular application Server.
    I understand that the right way to do this is via a Java API
    mapped on top of IFS.
    But we already have a fairly sophisticated web application using
    Java and PL/SQL procedures so that I would ideally need
    to write a PL/SQL procedure such as :
    function get_document (ifs_file_name in varchar, ifs_file_path in varchar) return clob
    For this I need to outline how to query the IFS schema using SQL.
    Any idea which table to query ?
    Have a nice day

    Many thanks to Chris Schneider : it works. Withing a few hours
    I was able to make a servlet with a file name as a parameter which sends back
    the file contents (in our case its a PDF file).
    Here is a sample servlet which uses this access scheme :
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class TestIFS extends HttpServlet
    * Handle the GET and HEAD methods by building a simple web page.
    * HEAD is just like GET, except that the server returns only the
    * headers (including content length) not the body we write.
    public void doGet (HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException
    //PrintWriter out;
    String title = "Test d'acchs IFS";
    // set content type and other response header fields first
    response.setContentType("application/pdf");
    // then write the data of the response
              ServletOutputStream outbin = response.getOutputStream();
              String theQuery=
         "SELECT "+
         " odm_publicobject.name object_name"+
         ", odmm_contentstore.id content_id"+
         ", odm_format.mimetype"+
         ", odmm_contentstore.globalindexedblob "+
         "FROM odm_publicobject"+
         ", odm_document"+
         ", odm_contentobject"+
         ", odmm_contentstore"+
         ", odm_format "+
         "WHERE odm_publicobject.id = odm_document.id "+
         "AND odm_document.contentobject = odm_contentobject.id "+
         "AND odm_contentobject.content = odmm_contentstore.id "+
         "AND odm_contentobject.format = odm_format.id "+
         "AND odm_publicobject.name = ";
              theQuery += "'" + request.getParameter("fic") + "'";
              try {
                   System.out.println("TestIFS debut");
                   DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
                   Connection conn = DriverManager.getConnection ("jdbc:oracle:oci8:@LXP9","ifssys","ifssys");
                   Statement stmt = conn.createStatement ();
                   ResultSet rset = stmt.executeQuery (theQuery);
                   while (rset.next ()) {
                        byte b[] = new byte[10000000];               
                        b = rset.getBlob(4).getBytes (1,10000000);
                        outbin.write (b);
                   rset.close();
                   System.out.println("TestIFS fin");
              catch (Exception e) {
    (beware mime type is forced to PDF, and file size max 10Mb)

  • Creation of relationship instances using Java

    Hi,
    I have the same problem as described in this thread: Creating a Relationship between 2 PublicObjects needs admin privilages
    Because nobody answered the original question, I post mine now:
    I am trying to create a custom relationship between two iFS documents. I follow exactly the procedure described in the developpers guide of Oracle 9iFS (9.0.1). It is nowhere mentioned that administrative rights are needed to instanciate relationships. However this is exacly the compaint iFS is sending back to me: I must switch to administrative mode before creating the relationship between two objects.
    I guess I am not the second people trying to instantiate relationships in iFS. Is it a policy, property or ACL problem ?
    Is there a workaround for this ? Unfortunately, I have no admin session available at the time of the relationships creation.
    Thanks,
    Tristan

    I finally managed to create relationships without switching to administrative mode.
    The clue is in the "<oracle.ifs.beans.PublicObject>.addRelationship" method.
    The code on page 6-52 of the Developer Reference of iFS 9.0.1.1.0 describes how to relate two objects po1 and po2 with a relationship.
    po1 is set as the left object and po2 is set as the right object.
    rdef is an object describing the to be created relationship.
    The last statement is:
    Relationship r =(Relationship) session.createSystemObject(rdef);
    This is what I used in my code and was not working. Now, I am using the method "addRelationship(rdef)" to create relationships (described in the JavaDoc), and that one is working as expected:
    po1.addRelationship(rdef);

  • IFS HTML Preview

    hallo list,
    i run Oracle 8.1.7.2, iFS 1.19 an solaris.
    iFS fits our purpose quite good, but the customization is really a hard pain.
    The only thing i wanna do is to make a HTML preview of the document, when it
    is stored via smb or http and display it later via the container.jsp.
    In the ifssys schema there is a table called ODM_DOCUMENTFILTER which sounds for
    to fit with the ctx_doc.filter procedure.
    So my idea was to create a trigger on the table ODMM_CONTENTSTORE (where are the
    real documents stored) like
    create or replace trigger TRG_ODMM_CONTENTSTORE
    after insert on ODMM_CONTENTSTORE
    for each row
    begin
    ctx_doc.filter('GLOBALINDEXEDBLOB_I', :new.ID, 'ODM_DOCUMENTFILTER', :new.ID, false);
    end;
    Unfortunatly this was not working.
    But in the iFS API I found two methods under the Document Class
    Document.filterContent() and Document.getFilteredContent().
    So my Question is:
    1. What can i do that above trigger is working?
    2. If not, how can i implement the Document.filterConent() method in the existing parser
    without writing a completly new one. The method only has to save the filtered data in the
    table ODM_DOCUMENTFILTER.
    3. Is there a workaround, which has solved already my tasks.
    Thanx for your help.
    oliver

    You will get a quicker, better, more expert answer if you post you questions on Oracle text in the Oracle text forum. Intermedia text is now known as Oracle Text.

  • Problem with context search in iFS

    Hello , here is my problem with iFS.
    We have installation of Oracle 8.1.7 Enterprise edition with interMedia and iFS 1.1 on same server (Windows NT Server 4.0/512 RAM). During install everything went fine.
    I had uploaded about 200 MB files in the iFS (pdf's and html's).
    The problem is when I try to use context based search. If I search for file's name everything is fine, but when I search for a word that is in a file it almost immediately gives mi "0 file(s) found", and I'm sure that there are files that have that word in their body's.
    What can be the problem?
    Any sugestions will be in help.
    Thanks in advance.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by mark_d_Drake ():
    That's the way it works. Content Indexing is not on insert, it occurs when the ctxsrv process runs. See the IntermediaText doc for more information.
    <HR></BLOCKQUOTE>
    Documents's content is stored in the GLOBALINDEXEDBLOB column of the IFSSYS.ODMM_CONTENTSTORE table.
    There is an text index GLOBALINDEXEDBLOB_I built on this column.
    To make the context search possible just update this index using the following command in SQL*Plus:
    SQL> exec ctx_ddl.sync_index('GLOBALINDEXEDBLOB_I');
    If you want this index be updated automatically when new documents are uploaded/changed/deleted in iFS then start the ctxsrv utility on the computer where your Oracle database resides. To do this issue the following command in OS command line:
    ctxsrv -user ctxsys/ctxpwd@db_alias
    just replace here ctxpwd and db_alias with real values you specified during the installation.
    null

  • IFS IMPORT and EXPORT

    Hi,
    1. Can I import user ifssys to another user with same provileges.
    2. Can I install IFS with some other name rather than default "IFSSYS".
    3. Can I have two set of users for IFS, lets say one is PROD and other is DEV on same machine.
    Would appreciate you help.

    One more step would be to try to create the interMedia Text index directly.
    The 1.0 create index statement (executed by IFSSYS) is :
    create index INDEXEDBLOB_I on ODMM_CONTENTSTORE(INDEXEDBLOB) indextype is
    ctxsys.context parameters('stoplist CTXSYS.DEFAULT_STOPLIST storage
    IFS_DEF_STORAGE section group IFS_SECTION_GROUP wordlist IFS_DEF_WORDLIST
    memory 32000000 filter IFS_DEF_FILTER format column FORMAT charset column
    CHARACTERSET lexer IFS_THEME_LEXER ')
    The 1.1 syntax for new install is:
    create index globalindexedblob_i on odmm_contentstore (globalindexedblob)
    indextype is ctxsys.context parameters(
    'storage IFS_DEF_STORAGE lexer IFS_GLOBAL_LEXER language column LANGUAGE
    filter IFS_DEF_FILTER format column FORMAT charset column CHARACTERSET
    wordlist ifs_def_wordlist
    memory 32000000
    stoplist CTXSYS.DEFAULT_STOPLIST
    section group IFS_SECTION_GROUP')
    The 1.1 syntax for an upgrade from 1.0 is:
    create index indexedblob_i on odmm_contentstore (indexedblob)
    indextype is ctxsys.context parameters(
    'storage IFS_DEF_STORAGE lexer IFS_GLOBAL_LEXER language column LANGUAGE
    filter IFS_DEF_FILTER format column FORMAT charset column CHARACTERSET
    wordlist ifs_def_wordlist
    memory 32000000
    stoplist CTXSYS.DEFAULT_STOPLIST
    section group IFS_SECTION_GROUP')
    Next steps:
    1) Try the 1.0 create index statement, and if there are errors, look to see if you get any additional error description.
    2) Verify that you have sufficient space in your tablespaces.
    3) Read through the URL http://technet.oracle.com/sample_code/products/intermedia/htdocs/text_samples/Lite/Samples/Exp_Imp/index.html and see if that describes your problem.
    4) Contact customer support. If neither of the above help, then this problem may be too difficult to debug via a discussion group.
    null

  • Question about iFS Functions

    1.Does 9iFS support workflow ? Generally, TO create a document have several step(Edit,Audit,Approve,publish and etc). How can I do this in iFS ?
    2.Does 9iFS support XML file Linking ? Usually , I want to link a file to another. When I viewing this file, I can view the relative files by the linkers .
    3.Assume I have a file by the version is 21 . Then the file version 22 is comming . Does 9iFS provide a mechanism to find out the difference between the two version files ? If this machanism must be customized by myself how can I do this .

    1. iFS can be integrated with Oracle Workflow, there is an article on OTN under the iFS area showing this. Alternatively you can write a cut down version just to cover what you want.
    2. Take a look at Relationships, this allows linking for associated documents.
    3. Don't think there is anything, because everything is stored as a LOB.
    Regards,
    Bernard Wright

  • Context search in iFS/Linu

    Hello,
    my question is about the INSO_FILTER that is used when binary files are indexed(pdf, doc,..). In the IFS context search is about that, and there is IFS for Linux, that means that there is some kind of filter for Linux. Can that filter be used to index documents with Oracle text under Linux?
    Thanks

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by mark_d_Drake ():
    That's the way it works. Content Indexing is not on insert, it occurs when the ctxsrv process runs. See the IntermediaText doc for more information.
    <HR></BLOCKQUOTE>
    Documents's content is stored in the GLOBALINDEXEDBLOB column of the IFSSYS.ODMM_CONTENTSTORE table.
    There is an text index GLOBALINDEXEDBLOB_I built on this column.
    To make the context search possible just update this index using the following command in SQL*Plus:
    SQL> exec ctx_ddl.sync_index('GLOBALINDEXEDBLOB_I');
    If you want this index be updated automatically when new documents are uploaded/changed/deleted in iFS then start the ctxsrv utility on the computer where your Oracle database resides. To do this issue the following command in OS command line:
    ctxsrv -user ctxsys/ctxpwd@db_alias
    just replace here ctxpwd and db_alias with real values you specified during the installation.
    null

  • Merging 2 IFS Database

    Hi.
    Is it possible to merge 2 different IFS database. I hope because we have developed a application base on IFS and it was install in tow separate companies. There is now a merge and they what all the information on the same database. We cannot export raw data in XML because we also need all the IFS object type like RELATIONSHIP, PROPERTIES, EXTENDEDATTRIBUTES, plus all the binary document and versioned document attached to other document by relationship…
    Please help.

    Nothing like this is available out-of-the-box. You could build a migration tool that will read all the objects in one iFS instance and then create new objects that are identical in another iFS instance. Note that the migrated object IDs will be different.

  • Characteristic Relationship BI-IP

    Hi,
    I am trying to create the following characteristic relationship on real time planning cube.
    Within the realtime cube I have 0fiscper and 0fiscvarnt being populated.
    I also want to calculate 0calquarter and 0halfyear1.
    For this I have created a DSO which has 0fiscper and 0fiscvarnt as the key and 0calquarter and 0halfyear1 as the data fields. I am populating 0fiscper and 0fiscvarnt during the upload and calculating 0calquarter and 0halfyear1 via a routine.
    I am now trying to create the characteristic relationship, but when I enter the DSO technical name, I get the following error message:
    DataStore object '....' does not have a data field from the InfoProvider; this object is invalid here.
    Any ideas why this happening, all the fields in the DSO exist in the realtime cube.
    Thanks
    DJL

    Hi
    For time characteristics, there are standard characteristic relationships.. dont see why need to create them.
    if it is for fiscvarnt-fiscper combination: guess no need for other things.
    Also if u r specifying DSO name in planning modeler, I guess u can look up the DSO thru F4 help.
    rgds
    Deepak

  • Training and Event Management: Relationships

    Hi TEM Experts,
    What are the appropriate steps, or best practice, if the event we want to add is a one off, and wasn't really scheduled? Do we need to go through the entire PSV1, PV12, etc. process just to add a one off event so that it shows up on the employee training report? What if we only want to create the relationship between person and business event type, but what report to run to show it?
    Thanks in advance,
    Susan
    Edited by: Susan Wong on Oct 27, 2008 9:15 AM

    Hi,
    Relationships in TEM
    1. A025 is participated by Person (P) for the course (E) - P to E relation A025 (Participated by)
    2. Org unit - A025 (Taken part) for the course (E) - O to E relation A025 (Taken part)
    Tha above said are only sample relationship in TEM, pl check table T777E for further relationships.
    Pl let us know if you are not understood.
    Appriciate awarding points.
    Thanks,
    Nandagopal C
    Edited by: Nandagopal Chiranjeevi on Oct 29, 2008 12:56 PM

  • How can I display  contacts in a relationship

    I have companies in my CRM. I have a customers/contacts in the CRM I have tied as a relationship with each companies. How can I display all the records/contacts associated with a company? I have a already created a secure zone, so the company user would have logged in. Is this possible? If not, any workaround?
    The only workaround I thought of is to use webapp to import the company data and create another web app containing the employees data. Then link both tables/webapp using datasource. But the way the client's data is structured could create a lot of problems going forward.
    Any suggestion, help will be appreciated

    The relationship feature and how companies work currently in BC is really limited. It is an association and not true relationships at the moment. You cant output a company and show all its relationships at the moment.

  • Error while adding a used relationship between the New DC and the Web DC

    Hi Gurus
    We are getting the Error in NWDS while Adding  a used relationship between the New DC and the Web DC.
    Steps what we are Done
    1. Create the custom project from inactiveDC's
    2.creating the project for the component crm/b2b in SHRAPP_1
    3.After that we changed the application.xml and given the contect path.
    4.Then we tried to add Dependency to the custom create DC we are getting the error saying that illegal deppendency : the compartment sap.com_CUSTCRMPRJ_1 of DC sap.com/home/b2b_xyz(sap.com.CUSTCRMPRJ_1) must explicitly use compartment sap.com_SAP-SHRWEB_1 of DC sap.com/crm/isa/ like that it was throwing the error.
    so, we skip this step and tried to create the build then it is saying that build is failed..
    Please help us in this regard.
    Awaiting for ur quick response...
    Regards
    Satish

    Hi
    Please Ignore my above message.
    Thanks for ur Response.
    After ur valuble inputs we have added the required dependencies and sucessfully created the projects, then building of the  projects was also sucessfully done and  EAR file was created.
    We need to deploy this EAR file in CRM Application Server by using the interface NWDI.
    For Deploying the EAR into NWDI, we need to check-in the activites what i have created for EAR. once i check-in the activites ,the NWDI will deploy the EAR into CRM Application Server.
    In the Activity Log we are able to check the Activities as Suceeded but the Deployment column is not showing any status.
    When i  right click on my activity Id the deployment summery is also disabled.
    So finally my Question is that where can i get the deployment log file, and where can i check the deployment status for my application..
    Any pointers in this regard would be of great help..
    Awaiting for ur valuble Responses..
    Regards
    Satish

  • Automatic creation of BP relationship while BP is created

    We are implementing CRM SALES and using Portal as the user interface.
    The requirement is that a Sales Rep should be able to see only the
    accounts and contacts (which is nothing but Business partners in the
    GUI side) that they have created when they list account using  "My
    Accounts" in Portal. We are configuring Portal in a such a way that
    "My Accoounts" is the only view available for Sales Rep portal.
    I have tested and found that if a relationship category of "is the
    reponsible employee" is created from  the sales rep to the Account OR
    Contact then that account or contact will be displayed in the "My
    Accounts" or "My Contact"view in Portal.
    But requesting a Sales Rep to create the relationship for every
    Account and Contact that they create in CRM will NOT be accpetable at
    all.
    Hence I am looking for an option with which a relationship of "is the
    Responsible Employee" can be created automatically when an account or
    contact is created by the Sales Rep.
    Please let me know your ideas.

    Hi Rajadurai,
    In the BADI - BUPA_FURTHER_CHECKS implement the method - CHECK_CENTRAL.
    The following code could serve your purpose:
    IF IV_ACTIVITY eq '01'. "Check if it is for creation
      CALL FUNCTION 'BUPR_RELATIONSHIP_CREATE'
       EXPORTING
        IV_PARTNER_1 = IV_PARTNER
        IV_PARTNER_2 = LV_createdby "BP no of the creator
        IV_RELATIONSHIP = 'BUR011' "Code for emp. resp
        IV_DATE_FROM = SY-DATLO
        IV_DATE_TO = '99991231'.
    endif.

Maybe you are looking for

  • Edit File Size?

    Is it possible to edit or modify the (file) size of a photo using iPhoto? Thanks. Background Notes: I've uploaded a couple of photos to my .Mac site, but when I view them on my website, the photo takes up the whole page rather than just a small part

  • Tracking of information in a Purchase Order

    Hi, Can anyone explain how to put and track the below mentioned information in a Purchase Order? ETS (Expected Time of Shipment by Vendor) ETA (Expected Time of Arrival of goods at Customer location) Advance Payment made to Vendor Thanks in advance

  • Acrobat Pro 9 Extended?

    Ok, I've been asking a lot of questions on this forum for a while, and now have another one. My boss has asked me to create a form-our company does document imaging, meaning we scan paper and help companies go paperless. One area in which we'd like t

  • Can't import songs into library due to a 2nd library that I didn't create

    I think someone may have created their own folder on my iPod nano and then returned it to the store (even though I purchaed it new). Anytime I try to download music it goes to this other folder which I can't access because it is password protected. M

  • N9 PR 1.2 Update Issue

    Just want to let you know: There is an problem when updating to PR 1.2 on the N9 if you modified your phone. After downloading the update, the update manager hangs at 0%. Some people noticed that this may result from additional repositiories (which o