This content has been marked as final. Show 7 replies
I tried doing that but I dont have the ADFUtils class
checked for what this method should have contained:
getDCBindingContainer was also there but I didnt have this helper too
checked what it should have conatained but this time I got an error too
do you know from where can I download this ADFUtils from?
User, please tell us your jdev version!
What error do you get?
You don't need the ADFUtils class. If you have an iterator defined in your pagedef you can access it
// Get the data from an ADF tree or table DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry(); //Get iterator DCIteratorBinding iterBind= (DCIteratorBinding)dcBindings.get("testIterator"); //Name of the iterator in your pagedef /// get current row and one attribute String attribute = (String)iterBind.getCurrentRow().getAttribute("field1"); //to get a navigatable oterator use NavigatableRowIterator navIter = iterBind.getNavigatableRowIterator(); // get next row Row row = navIter.next();
Timo- how do I define the iterator on pagedef?
(my version is 11.2.3)
is this good?
(cause it still doesnt work)
<methodIterator Binds="getOrderSummary.result" DataControl="datacontrol" RangeSize="25"
this is my error:
]] Root cause of ServletException.
javax.el.ELException: oracle.jbo.NoDefException: JBO-25058: Definition STATUS of type Attribute is not found in ViewDefview_datacontrol_getOrderSummary1_40.
at com.sun.el.parser.AstValue.setValue(Unknown Source)
at com.sun.el.ValueExpressionImpl.setValue(Unknown Source)
my page just turns out blank...
and for- Puthanampatti
after downloading the file how do I add it to the project?
I wasnt kidding about the begginers's part(=
The easiest method to define en iterator is to drag the vo you want fro m the datacontrol onto the page and drop it as table. This will generate the needed itarator. As you don't want the table, you switch the editor into source mode (so that you see the tags like af:table). In this source you can remove the af:table tag completely. This will keep the binding in the pagedef, but remove the table. Don't remove the table in hte design view, as this will delete the binding from the pagedef too.