oracle adf - ADF Access page binding in View Object's Bind Variables -


I have an obligation on the ADF page, which is called eventide. I have a visual object that I am trying to select from the database based on the value of this event ID. I have a visual object with the view criteria, and it uses the "bind variables" defined in the object to select based on the value. I need to make the value of "bound variable" equal to one of the binding of the page, I think I need to do this on the basis of an expression that resolves the page's binding "event id", how do I do this Can i

I have tried to make the value of the bound variable equal to the # {bindings.eventID} expression, but when I click on "Test" it is a Groove exception Throws:

Enter image details here < P>

In similar cases, I'm not using the declarative approach. You can execute a method that queries To The bind variable will execute with the value of . Oracle Database: The following code for the default hr schema that comes with int empID query Is = 123; // Sample Employee ID // declares the application module and view the object AppModuleImpl appMod = (AppModuleImpl) (JSFUtils.getApplicationModule ("AppModuleDataControl")); ViewObject employeesVO = appMod.findViewObject ("Staff View"); // Start building your query VO.setWhereClause (empty); employeesVO.setWhereClauseParams (zero); EmployeesVO.setWhereClause ("EMPLOYEE_ID =: 1"); EmployeesVO.setWhereClauseParam (0, AMPID); employeesVO.executeQuery ();

If you are still interested in the declarative path, then check this link it can help you:



Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -