String tableName = "getCustomerResultSet"
String className = "JavaBeanConnectivityTest"; String tableName = "getCustomerResultSet" try { PropertyBag pbConnAttributes = new PropertyBag(); PropertyBag pbLogonProperties = new PropertyBag(); TableLinks requiredLink = new TableLinks(); pbLogonProperties.putStringValue("Java Bean Classes", className); pbConnAttributes.putStringValue("QE_DatabaseType", "Java Beans Connectivity"); pbConnAttributes.putStringValue("Database DLL", "crdb_javabeans.dll"); pbConnAttributes.put("QE_LogonProperties", pbLogonProperties); pbConnAttributes.putStringValue("QE_ServerDescription", className); pbConnAttributes.putBooleanValue("QE_SQLDB", true); IProcedure newTable = new Procedure(); newTable.setName(tableName); newTable.getConnectionInfo().setKind(ConnectionInfoKind.CRQE); newTable.getConnectionInfo().setAttributes(pbConnAttributes); m_ClientDoc.getDatabaseController().addTable(newTable, requiredLink); } catch (ReportSDKServerException error) { out.println(error.getServerError()); }
SAP BusinessObjects http://www.sap.com/sapbusinessobjects/ Support services http://service.sap.com/bosap-support/ Product Documentation on the Web http://help.sap.com/ |