- 02-01-2010 02:58 AM #1
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
}
- 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
-
updation of one column based on two table values reg.
By laxman in forum SQL PL/SQLReplies: 8Last Post: 12-15-2009, 09:17 AM -
Update a table with values from same table AND another table
By makidrin in forum SQL PL/SQLReplies: 2Last Post: 12-08-2009, 06:54 AM -
Update a table with values assigned from another table
By yashk111 in forum SQL PL/SQLReplies: 1Last Post: 11-10-2009, 01:31 PM -
inserting comma seperated values as different values for the column
By basavraj in forum SQL PL/SQLReplies: 2Last Post: 09-15-2009, 11:27 AM -
Child table backup in archiving data of source table:::
By Angappan in forum SQL PL/SQLReplies: 3Last Post: 08-11-2009, 12:59 PM


LinkBack URL
About LinkBacks
Reply With Quote
