Hi.,
Am using jdeveloper 11.1.1.6.0,
I have created a EO based VO in my application. Am need of generating the sequence number from my DB. i have use the method in my AM and trying to call using Groovy expression.
/**
* Call the function to generate the sequence number for Po_Line
*/
public int poitlineNumber(int pnumber) {
CallableStatement cs = null;
cs =
getDBTransaction().createCallableStatement("begin ? := po_items_line(?);end;",
0);
try {
cs.registerOutParameter(1, Types.NUMERIC);
cs.setInt(2, pnumber);
cs.executeUpdate();
return cs.getInt(1);
} catch (SQLException e) {
e.printStackTrace();
}
return 0;
}
Groovy Expression in my VO
adf.object.applicationModule.poitlineNumber(PoitNumber)
While i run my page and clicking the add button it throws an exception as
No signature of method: model.AModule.MeServicesAMImpl.poitlineNumber() is applicable for argument types: (java.lang.Long) values: [131424]
I cant identify where i dont the mistake could any one pls help me?
Regards,
Prasad K T,
AS400 ops.