+ Reply to Thread + Post New Thread
Results 1 to 1 of 1
  1. #1
    Join Date
    27 Jan 2010
    Posts
    3
    Say Thanks
    0
    Thanked 0 Times in 0 Posts
    Documents
    0
    Uploads
    0

    Default How to get all the column values from a table using table source

    Hi,

    I have created one table source on a employee table and some customized attributes using global settings>search attributes.
    Now these customized attributes mapped with the table columns through attribute mapping from the sorce tab.
    Using doOracleSearch method i passed last parameter i.e. Integer array of customized attributes.
    After execution of doOracleSearch method i am getting the results but customized attributes are not coming.
    getCustomAttributes method returns null instead of some values.
    Please refer following code for more info:

    Integer[] fetchAttr=new Integer[2];
    fetchAttr[0]=new Integer(137);
    fetchAttr[1]=new Integer(138);

    result =
    stub.doOracleSearch("BTM",
    new Integer(1),
    new Integer(10),
    Boolean.TRUE,
    Boolean.TRUE,
    group,
    "en",
    "en",
    Boolean.TRUE,
    null,
    null,
    fetchAttr);

    ResultElement[] resElements = result.getResultElements();
    for(int i = 0; i < resElements.length; i++)
    {
    System.out.println("Title : " + resElements[0].getTitle());
    System.out.println("Snippet : " + resElements[0].getSnippet());
    System.out.println("URL : " + resElements[0].getUrl());
    System.out.println("non default : " + resElements[0].getCustomAttributes()); // it returns null here



    }

  2.    Club-Oracle Complementary E-Books and Magazines
    Get your free Complementary Copy of Oracle Magazine

    You can also browse the Free Magazines and E-Books section to see the complete list of free magazines, e-books and Whitepapers.

Similar Threads

  1. Replies: 8
    Last Post: 12-15-2009, 09:17 AM
  2. Replies: 2
    Last Post: 12-08-2009, 06:54 AM
  3. Replies: 1
    Last Post: 11-10-2009, 01:31 PM
  4. Replies: 2
    Last Post: 09-15-2009, 11:27 AM
  5. Replies: 3
    Last Post: 08-11-2009, 12:59 PM

Tags for this Thread