1 Reply Latest reply: Apr 20, 2012 8:05 AM by Frank Nimphius-Oracle RSS

    how to access query based view object in backing bean

    Chandan Srivastava
      Hi

      I am using JDev11.1.2.1.0

      I want to use the query result of query based view object in backing bean.

      How can i do the same

      Please Solve this

      Thanks
        • 1. Re: how to access query based view object in backing bean
          Frank Nimphius-Oracle
          Hi,

          Assuming ADF is in the picture

          1. Create a PageDef file for the page (right mouse click "Go to Page Definition")
          2. In the Executable section, create an iterator for the View Object
          3. In the managed bean:

          BindingContext bctx = BindingContext.getCurrent();
          BindingContainer bindings = bctx.getCurrentBindingsEntry();
          DCIteratorBinding iter = (DCIteratorBinding ) bindings.get("name of Iterator");
          iter.execute();
          // ... navigate the iterator rows ...//

          Frank