[英]Ebs Procedure call from Adf
嗨,我正在嘗試從adf應用程序調用ebs過程。 程序接受3個輸入參數並返回2 o / p。 但是當我執行cs.executeUpdate()
它顯示錯誤Missing IN or OUT parameter at index::6
。有人可以幫助我找到它嗎?
public String getEmployeeName(String username, String password) {
CallableStatement cs = null;
try {
cs =
getDBTransaction().createCallableStatement("begin ? :=APPS.XX_IE_ENTER_DELEGATION.oie_enter_delegation(?,?,?,?,?); end;",
0);
cs.setString(1, username);
cs.setString(2, password);
cs.setString(3, "31442");
cs.registerOutParameter(4, Types.INTEGER);
cs.registerOutParameter(5, Types.VARCHAR);
cs.execute(); // **Getting Error**
cs.close();
return cs.getString(3);
} catch (SQLException e) {
throw new JboException(e);
}
}
public void getFromEbs(ActionEvent actionEvent) {
BindingContainer bindings = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("getEmployeeName");
Object result = operationBinding.execute();
System.out.println("Result= " + result); // result will be the output of PL function
}
由於您已經在語句的開頭添加了"begin ? := APPS.XX"
,這意味着您正在調用一個函數並等待其結果。
如果您嘗試調用過程而不是如您所說的函數,則應將其更改為"begin APPS.XX"
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.