oracle adf - Iterating a table rows while it's filtered -
i 'm trying iterate through rows in table has been filtered in fusion application in adf. table created datacontrol. iterate through view object associated table if request made while table still filtered view object iterates through filtered rows. code have far
public void selectingall() { dcbindingcontainer dcb = (dcbindingcontainer) evaluateel("#{bindings}"); dciteratorbinding dciter =dcb.finditeratorbinding("dimentidadview1iterator"); viewobject vo = dciter.getviewobject(); row row = vo.first(); vo.reset(); while (row != null) { row.setattribute("selectent","true"); row = vo.next(); } }
the problem if method executed while table still filtered viewobject iterates filtered rows.
i think iterators made job, don't need access viewobject, think moment, if table not based in viewobject? can without refering backend implementation:
public void selectingall() { dcbindingcontainer dcb = (dcbindingcontainer) evaluateel("#{bindings}"); dciteratorbinding dciter =dcb.finditeratorbinding("dimentidadview1iterator"); rowsetiterator rsi = dciter.getrowsetiterator(); while (rsi.hasnext()) { row r = rsi.next(); . . . } }
oracle-adf
No comments:
Post a Comment