This discussion is archived
2 Replies Latest reply: Dec 18, 2012 1:09 PM by 455997 RSS

Java Data Bean Not Seeing Products That Have No Organization Set

455997 Newbie
Currently Being Moderated
When I use the Java Data Bean to access my products, the query will only return products that have the organization set. I have need to access ALL of the products that are present (regardless of whether or not they have an organization set). How can I do this? Am I using the wrong business object and business component? Below is my code:

SiebelDataBean dataBean = new SiebelDataBean();
System.setProperty("file.encoding", "utf8");
dataBean.login("siebel.TCPIP.None.None://" + siebelServerHost + ":" + siebelServerPort + "/" + siebelEnterpriseName + "/eCommunicationsObjMgr_enu", siebelUser, siebelUserPassword);
SiebelBusObject productSBO = dataBean.getBusObject("Admin ISS Product Definition");
SiebelBusComp productSBC = productSBO.getBusComp("Internal Product - ISS Admin");
productSBC.clearToQuery();
productSBC.executeQuery(true);

productSBC.firstRecord();
System.out.println("HERE " + productSBC.getFieldValue("Name"));
while (productSBC.nextRecord()) {
System.out.println("HERE " + productSBC.getFieldValue("Name"));
}

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points