Package com.webobjects.eocontrol

Examples of com.webobjects.eocontrol.EOArrayDataSource


    public WOComponent listMyTestItems() {
      EOEditingContext ec = ERXEC.newEditingContext();
    ec.lock();
    try {
          NSArray array = TestItem.clazz.unclosedTestItemsWithUser(ec, People.clazz.currentUser(ec));
          EOArrayDataSource ds = TestItem.clazz.newArrayDataSource(ec);
          ds.setArray(array);
          return (WOComponent) listPageNamed("ListMyTestItem", ds);
    } finally {
      ec.unlock();
    }
    }
View Full Code Here


            InspectPageInterface ipi = D2W.factory().inspectPageForEntityNamed("Bug", session());
            ipi.setObject((EOEnterpriseObject) bugs.objectAtIndex(0));
            ipi.setNextPage(currentPage());
            result = (WOComponent) ipi;
        } else {
            EOArrayDataSource ds = Bug.clazz.newArrayDataSource(session().defaultEditingContext());
            ds.setArray(bugs);
            ListPageInterface lpi = D2W.factory().listPageForEntityNamed("Bug", session());
            lpi.setDataSource(ds);
            lpi.setNextPage(currentPage());
            result = (WOComponent) lpi;
        }
View Full Code Here

TOP

Related Classes of com.webobjects.eocontrol.EOArrayDataSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.