Tree bindings in 10.1.2

Hi,
I started to move my adf struts web app from jdev 9052 to 1012. Is there something broken in 1012 trees beacuse every time i submit information from page which uses tree bindings I get this exception:
oracle.jbo.InvalidObjNameException: JBO-25005: Tyypin Iteraattorisidoksen määritys objektin nimi MyView_173 on virheellinen.
Thats finnish and means something like this: Type iterator binding definition object name MyView_173 is invalid.
-j

I haven't tried this and am not sure about certification etc. - suggest you ask this in the J2EE forum:
OC4J

Similar Messages

  • How can an ADF Tree be configured to work with varying levels of heirarchy?

    We have a need for a Locations tree that represents the Locations heirarchy for any one of our clients. Depending on the client the number of levels in a location heirarchy could range from 1 to 9.
    I have created 9 different tree bindings and I can change the tree binding in the jsp page - the example below is for a client with 4 location levels.
    <af:tree value="#{bindings.ScdLocs4View1.treeModel}" var="node"
    binding="#{backing_locations.tree2}" id="tree2">
    For a client with 5 location levels, I'd like to programatically change the value to
    #{bindings.ScdLocs5View1.treeModel.  How can I do this?
    I was thinking I could use the setValue method on the tree control in my page's backing bean.  But I have been unable to get a reference to the tree binding.
    I don't see an appropriate method for finding a Tree Binding.  There are methods for finding an Iterator Binding, an Executable Binding, or a Region Binding (whatever that is).  But how do I "find" a reference to a Tree Binding?
    I have also given consideration to using a single Tree Binding with 9 levels (or rules in the Tree Binding Editor) and finding a way to  programatically "start" the rendering at a particular level (or rule) - in effect telling the ADF Tree control to ignore some number of rules and begin with the specified rule.  But I haven't been able to figure out how to do this either.
    Help would be greatly appreciated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Bill,
    A tree binding is a particular kind of control binding, so you can find it as a control binding and then cast it to the more specific interface to work with it.

  • ADF Tree row selection and af:commandLink

    Hello,
    I'm quite new to JDeveloper and ADF. I'm using JDev 11.1.1 and get some issues while trying to set up a "qualifications" selection tree. Here is a summary :
    I'm dealing with "Qualification" objects. A qualification has an id,name and 'selected' attribute. A Qualification can contain a list of subqualifications (same type 'Qualification'), and so on, with no limits of levels. I would like to display this structure as a tree with, for each (sub-)qualification a selectbox showing the status (selected or not) and modifiable by the user.
    The qualifications are exposed to the data controls through a ResourceManager class function getQualifications(), and the datacontrol is dropped as a tree in the jsf page. The tree is bind to a backing bean 'qualificationManagerBean', and i've added an ActionListener to handle node selection (set node as current row and call update action)
    page definition :
    <executables>
    <accessorIterator MasterBinding="ResourceManagerIterator"
    Binds="qualifications" RangeSize="25"
    DataControl="ResourceManager"
    BeanClass="com.mobileit.planning.web.Qualification"
    id="qualificationsIterator"/>
    </executables>
    <bindings>
    <tree IterBinding="qualificationsIterator" id="qualifications">
    <nodeDefinition DefName="com.mobileit.planning.web.Qualification">
    <AttrNames>
    <Item Value="name"/>
    <Item Value="selected"/>
    </AttrNames>
    <Accessors>
    <Item Value="subqualifications"/>
    </Accessors>
    </nodeDefinition>
    </tree>
    </bindings>
    </pageDefinition>
    in the jsf page :
    <af:form>
    <af:tree value="#{bindings.qualifications.treeModel}"
    binding="#{qualificationManagerBean.tree}" var="node">
    <f:facet name="nodeStamp">
    <af:commandLink text="#{node}" id="test"
    actionListener="#{qualificationManagerBean.clickTree}">
    <af:setActionListener from="#{qualificationManagerBean.tree.rowKey}"
    to="#{qualificationManagerBean.clickedNodeRowKey}"/>
    </af:commandLink>
    </f:facet>
    </af:tree>
    </af:form>
    The result is that tree is well displayed, but only the first level of the tree triggers the 'clickedNodeRowKey' and 'clickTree' action. When i click on sub-levels, the page gets submitted but actions are not called.
    I've also tried to map the action to a method in my ResourceManager but the result is the same, action gets never called :
    page def file :
    <methodAction id="qualificationSelector" RequiresUpdateModel="false"
    Action="invokeMethod" MethodName="qualificationSelector"
    IsViewObjectMethod="false" DataControl="ResourceManager"
    InstanceName="ResourceManager.dataProvider">
    <NamedData NDName="ref"
    NDValue="#{node.name}"
    NDType="java.lang.String"/>
    </methodAction>
    Do you have any idea of what I'm doind wrong?
    Thank you for your help
    Stephane

    I finally got this to work by defining the tree model in a managed bean. So there must be something wrong with my iterator binding...

  • Row Selection for second and subsequent level nodes in tree table

    Hi All,
    We have a .jsff page with tree bindings to display a three-level hierarchy tree table.Suppose the hierarchy is
    -> Department
    ->-> Employees
    ->->-> Employee details.
    I have a use case where-in when we add the employee node within a department,the department node must expand and the newly added employee node must be selected.
    In both the cases(for new department or employee), we are following the approach mentioned below:
    1. Get the treeTable Iterator.
    2.Adding the new object to the java ArrayList which is bound to the corresponding level in the tree.
    3.Refreshing the treeTable iterator.
    4.Execute treeTable.setSelectedRowKeys()
    5.Add a partial target to the treetable.
    The issue is that the new employee gets added but the upper-level department node collapses and no selection is performed on the new employee node.
    But when we add a new department node, it gets selected on creation.
    Is there any additional steps to be performed for second-level row selection?

    Hi,
    Thanks for the reply.
    I looked at the code given in sample 61.
    In the sample, a new node is not added dynamically (for ex.either new location or its child nodes.)
    As mentioned in the above post, after adding a new node at a level in our use case, when we perform the refresh of the tree-table's iterator,the selection state of the rows is not shown on the table.
    If the tree-table's iterator is not refreshed and the treeTable.setSelectedRowKeys() is executed, the rows get selected but the subsequent node additions do not show up in the table as the table's iterator is not refreshed.
    Any sample code is available where in both the addition of new node and its selection is performed at the same time?
    Thanks.

  • JBO-25058 exception when running adf:tree component

    Hi, I was trying to prototype an adf:tree which uses eo, vo, and view links as a data model. I am trying to use the vo recursively.
    Data model consists of :
    EO: PeggingDataEO
    VO: TopPeggingDataVO
    PeggingDataVO
    View Links: TopToFirstLevelVL (source: TopPeggingDataVO, destination: PeggingDataVO)
    ParentToChildVL ( source: PeggingDataVO, destination: PeggingDataVO)
    When i ran this page, i get the root node , and then when I try to expand it , i get this error:
    oracle.jbo.NoDefException: JBO-25058: Definition PeggingDataVO of type Attribute not found in TopPeggingDataVO_PeggingDataVO_TopToFirstLevelLVL_PeggingDataVO
    This is build using JDeveloper 11g ( jdev fusiondrop306).
    Please help. I don't understand what definition is missing and what TopPeggingDataVO_PeggingDataVO_TopToFirstLevelLVL_PeggingDataVO is?
    Thanks
    -c.
    below is the code for the page definition :
    <executables>
    <iterator Binds="TopPeggingDataVO1" RangeSize="25"
    DataControl="AppModuleDataControl"
    id="TopPeggingDataVO1Iterator"/>
    </executables>
    <bindings>
    <tree IterBinding="TopPeggingDataVO1Iterator" id="TopPeggingDataVO1">
    <nodeDefinition DefName="recursivetree.datamodel.queries.TopPeggingDataVO">
    <AttrNames>
    <Item Value="InventoryItemName"/>
    <Item Value="SourceType"/>
    <Item Value="SupplyDemandDate"/>
    <Item Value="SupplyDemandQuantity"/>
    <Item Value="ParentPeggingId"/>
    <Item Value="PeggingId"/>
    </AttrNames>
    <Accessors>
    <Item Value="PeggingDataVO"/>
    </Accessors>
    </nodeDefinition>
    <nodeDefinition DefName="recursivetree.datamodel.queries.PeggingDataVO">
    <AttrNames>
    <Item Value="InventoryItemName"/>
    <Item Value="SourceType"/>
    <Item Value="SupplyDemandDate"/>
    <Item Value="SupplyDemandQuantity"/>
    <Item Value="ParentPeggingId"/>
    <Item Value="PeggingId"/>
    </AttrNames>
    <Accessors>
    <Item Value="PeggingDataVO"/>
    </Accessors>
    </nodeDefinition>
    </tree>
    </bindings>

    Hi,
    can you run the VO in the tester ? The error message often indicates that the database connection uses a wrong schema
    Frank

  • Af:tree with master-detail doesnt work

    Hi,
    I created master-detail(used updateable VO's) and test it from the application module and everything worked as expected.
    Now I try to show all master and detail data in af:tree component.
    At the runtime I can see only master data, but there's no detail data at all. I tried all of this before and everything worked fine, and now I cant get this work.
    <!-- jsf page page1.jspx-->
    <af:tree value="#{bindings.Master1.treeModel}"
    var="node">
    <f:facet name="nodeStamp">
    <af:outputText value="#{node}"/>
    </f:facet>
    </af:tree>
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="10.1.3.39.84" id="app_page1PageDef"
    Package="main.userinterface.pageDefs">
    <parameters/>
    <executables>
    <iterator id="Master1Iterator" RangeSize="10"
    Binds="Master1" DataControl="AppModuleServiceDataControl"/>
    </executables>
    <bindings>
    <tree id="Master1" IterBinding="Master1Iterator">
    <AttrNames>
    <Item Value="IdMaster1"/>
    <Item Value="Name"/>
    <Item Value="MasterValue1"/>
    <Item Value="MasterValue2"/>
    <Item Value="MasterValue3"/>
    </AttrNames>
    <nodeDefinition DefName="main.datamodel.queries.Master1"
    id="Master1Node">
    <AttrNames>
    <Item Value="MasterValue1"/>
    </AttrNames>
    <Accessors>
    <Item Value="Detail1"/>
    </Accessors>
    </nodeDefinition>
    <nodeDefinition DefName="main.datamodel.queries.Detail1"
    id="Detail1Node">
    <AttrNames>
    <Item Value="DetailValue1"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    </bindings>
    </pageDefinition>
    Thank you in advance.
    Alex

    Note, that PanelCollection is a naming container. So if you have wrapped your table in a PanelCollection you will have to add PanelCollection's ID to master table's ID when refering the master table as a partial trigger for the detail one. For example, if the value of detail table's partialTriggers attribute has been <tt>partialTriggers="::masterTable"</tt> now it should become <tt>partialTriggers="::pnlColl:materTable"</tt> (supposing that PanelCollection's ID is <tt>pnlColl</tt>).

  • Hierachical Tree node(help me please)

    Hi experts,
    JDEV 11.1.2.0.0
    i hav 3 tables say category_1 ,category_2(FK - cat1_code), & category_3( FK - cat1_code&cat2_code)......
    I created a BC from these tables and also created a view link from category_1 to category_2 & another view link from category_2 to category_3....
    then i made a hirearchical tree stucture to display database items....i converted all node to a Command link....
    My usecase is follows.......
    when i click each hierarchical link(data fetched from table) it should navigate to its master form for creating a new master a record.....means , if i clicked a category_1 data , it should navigate to category_1 master form to create a new record.....
    I almost done for my use case.....but i dnt knw how we can get corresponding iterator binds from tree definition ......this my page data binding definition
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="11.1.2.60.17" id="categoryPageDef"
    Package="pages">
    <parameters/>
    <executables>
    <variableIterator id="variables"/>
    *<iterator Binds="Iascat1View1" RangeSize="25" DataControl="AppModuleDataControl" id="Iascat1View1Iterator"/>*
    *<iterator id="Iascat2View1Iterator" Binds="Iascat2View1" DataControl="AppModuleDataControl" RangeSize="25"/>*
    *<iterator id="Iascat3View1Iterator" Binds="Iascat3View1" DataControl="AppModuleDataControl" RangeSize="25"/>* </executables>
    <bindings>
    *<tree IterBinding="Iascat1View1Iterator" id="Iascat1View1">*
    *<nodeDefinition DefName="inv.EntityVO.Iascat1View" Name="Iascat1View10"*
    *TargetIterator="${bindings.Iascat1View1Iterator}">*
    <AttrNames>
    <Item Value="Cat1Code"/>
    <Item Value="Cat1Name"/>
    </AttrNames>
    <Accessors>
    <Item Value="Iascat2View"/>
    </Accessors>
    </nodeDefinition>
    *<nodeDefinition DefName="inv.EntityVO.Iascat2View" Name="Iascat1View11"*
    *TargetIterator="${bindings.Iascat2View1Iterator}">*
    <AttrNames>
    <Item Value="Cat2Code"/>
    <Item Value="Cat2Name"/>
    </AttrNames>
    <Accessors>
    <Item Value="Iascat3View"/>
    </Accessors>
    </nodeDefinition>
    *<nodeDefinition DefName="inv.EntityVO.Iascat3View" Name="Iascat1View12"*
    *TargetIterator="${bindings.Iascat3View1Iterator}">*
    <AttrNames>
    <Item Value="Cat3Code"/>
    <Item Value="Cat3Name"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    </bindings>
    </pageDefinition>
    *how can i achieve this? OR*
    *Suggest any Other Way?*
    PMS
    Edited by: pms on Jan 30, 2012 3:49 PM
    Edited by: pms on Jan 30, 2012 4:07 PM
    Edited by: pms on Jan 30, 2012 4:13 PM
    Edited by: pms on Jan 30, 2012 4:49 PM
    Edited by: pms on Jan 30, 2012 4:58 PM

    Hi john,
    Im sorry , if i did against rules of the forum....
    Actually i stucked on my work , thats why i did like this to get response from forum members.....
    PMS

  • Does af:tree set iterator as table with taleSelectOne in facet selection

    Is it a way the selected node in a af:tree set the corresponding iterators automatically when a user click on the node ?
    If yes, are all iterators automatically setted corresponding to each branch level ?

    Here the page definition for the tree :
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="10.1.3.39.84" id="ClassificationListPageDef"
    Package="view.pageDefs">
    <parameters/>
    <executables>
    <iterator id="ClassificationTestCaseDocumentDataControl_rootIter"
    RangeSize="10" Binds="root"
    DataControl="ClassificationTestCaseDocumentDataControl"/>
    <accessorIterator id="classificationIterator" RangeSize="10"
    Binds="classification"
    DataControl="ClassificationTestCaseDocumentDataControl"
    BeanClass="model.jaxb.Classification"
    MasterBinding="ClassificationTestCaseDocumentDataControl_rootIter"/>
    <accessorIterator id="classificationEntryListIterator" RangeSize="10"
    Binds="classificationEntryList"
    DataControl="ClassificationTestCaseDocumentDataControl"
    BeanClass="model.jaxb.ClassificationEntryListType"
    MasterBinding="classificationIterator"/>
    <accessorIterator id="classificationEntryIterator" RangeSize="10"
    Binds="classificationEntry"
    DataControl="ClassificationTestCaseDocumentDataControl"
    BeanClass="model.jaxb.ClassificationEntryType"
    MasterBinding="classificationEntryListIterator"/>
    </executables>
    <bindings>
    <tree id="ClassificationEntryListTypeclassificationEntry"
    IterBinding="classificationEntryIterator">
    <AttrNames>
    <Item Value="classificationEntryCode"/>
    </AttrNames>
    <nodeDefinition DefName="model.jaxb.ClassificationEntryType"
    id="ClassificationEntryTypeNode">
    <AttrNames>
    <Item Value="classificationEntryCode"/>
    </AttrNames>
    <Accessors>
    <Item Value="classificationEntry"/>
    </Accessors>
    </nodeDefinition>
    </tree>
    </bindings>
    </pageDefinition>
    Here the page definition for the edit page for level 3 :
    ?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="10.1.3.39.84" id="ClassificationEditLevel3PageDef"
    Package="view.pageDefs">
    <parameters/>
    <executables>
    <iterator id="ClassificationTestCaseDocumentDataControl_rootIter"
    RangeSize="10" Binds="root"
    DataControl="ClassificationTestCaseDocumentDataControl"/>
    <accessorIterator id="classificationIterator" RangeSize="10"
    Binds="classification"
    DataControl="ClassificationTestCaseDocumentDataControl"
    BeanClass="model.jaxb.Classification"
    MasterBinding="ClassificationTestCaseDocumentDataControl_rootIter"/>
    <accessorIterator id="classificationEntryListIterator" RangeSize="10"
    Binds="classificationEntryList"
    DataControl="ClassificationTestCaseDocumentDataControl"
    BeanClass="model.jaxb.ClassificationEntryListType"
    MasterBinding="classificationIterator"/>
    <accessorIterator id="classificationEntryIterator" RangeSize="10"
    Binds="classificationEntry"
    DataControl="ClassificationTestCaseDocumentDataControl"
    BeanClass="model.jaxb.ClassificationEntryType"
    MasterBinding="classificationEntryListIterator"/>
    <accessorIterator id="classificationEntryIterator1" RangeSize="10"
    Binds="classificationEntry"
    DataControl="ClassificationTestCaseDocumentDataControl"
    BeanClass="model.jaxb.ClassificationEntryType"
    MasterBinding="classificationEntryIterator"/>
    <accessorIterator id="classificationEntryIterator2" RangeSize="10"
    Binds="classificationEntry"
    DataControl="ClassificationTestCaseDocumentDataControl"
    BeanClass="model.jaxb.ClassificationEntryType"
    MasterBinding="classificationEntryIterator1"/>
    </executables>
    <bindings>
    <attributeValues id="classificationEntryCode"
    IterBinding="classificationEntryIterator2">
    <AttrNames>
    <Item Value="classificationEntryCode"/>
    </AttrNames>
    </attributeValues>
    </bindings>
    </pageDefinition>
    As you can see, even the class is the same the iterator are different and it is necessary to set all necessary level when a user click a node in the tree to edit it in the corresponding page.
    I'm able to navigate to the page that correspond to the level. At this development stage i will not bind the a generic web page to the iterator dynamically. I do it using the depth in a backing bean as follows:
    public String DetermineLevelAndEdit() {
    // Add event code here...
    classificationTree.setRowKey(classificationTree.getFocusRowKey());
    String outcome = new String();
    switch (classificationTree.getDepth()) {
    case 0:
    outcome = "EditClassificationLevel_1";
    break;
    case 1:
    outcome = "EditClassificationLevel_2";
    break;
    case 2:
    outcome = "EditClassificationLevel_3";
    break;
    default:
    outcome = null;
    return outcome;
    I'm searching the best way to set the iterator now. I'm not sure what to do. Any idea or experience is welcome.

  • Can you populate an ADF Tree using Just In Time ?

    The application that I am currently working on requires a navigator.
    This navigator will be a tree structure.
    I have developed a prototype using standard Java Swing components - a JTree. The JTree is populated JIT (Just in Time), i.e. when a user clicks to expand a node the relevant database package is called to populate that branch of the tree. This process continues until the JTree has been expanded so that all of it's leaf nodes are displayed.
    This works perfectly well in Swing, is it possible to acheive the same functionality using;
    a) ADF Swing
    b) ADF JSF
    If so, and anyone has acheived this, I would appreciate any help/pointers/tutorials that you may have come across.
    Thanks in advance for your help
    David

    Hi,
    I think you can, but not using the default ADF tree bindings. You would have to create a custom tree model and then programmtically populate the model with data you access through ADF.
    However, I understand your requirement is lazy loading of the child nodes. I will check with development if this feature is planned and if not file an enhancement request for the tree binding.
    Frank

  • Af:tree With Multiple Child Table

    Hi,
    I have a requirement where i have to show a af:tree with child records from two different view Iterators, I created one tree but facing a issue. It shows the name of the Child view iterators and then the record inside it.
    Like :-
    ---> DummyRecord1 *(Record from Parent Iterator)*
    ------------>viewIterator1 *(Name of the First Child Iterator)*
    -------------------->DummyRecord2 *(Record from First Child Iterator)*
    ------------>viewIterator2 *(Name of the Sec Child Iterator)*
    -------------------->DummyRecord2 *(Record from Sec Child Iterator)*
    But i don't want to show the Name of the Child iterators in the tree.I want the tree something like:-
    ---> DummyRecord1 *(Record from Parent Iterator)*
    -------------------->DummyRecord2*(Record from First Child Iterator)*
    -------------------->DummyRecord3 *(Record from Sec Child Iterator)*
    My .Jspx code:-
    <af:tree value="#{bindings.*someViewIterator*.treeModel}"
    var="node"
    selectionListener="#{bindings.*someViewIterator*.treeModel.makeCurrent}"
    rowSelection="single" id="t1">
    <f:facet name="nodeStamp">
    <af:outputText value="#{node}" id="ot1"/>
    </f:facet>
    </af:tree>
    My Page Def code:-
    ><variableIterator id="variables"/>
    > <iterator Binds="*someView*" RangeSize="25"
    > DataControl="AppModuleDataControl"
    id="*someViewIterator*"/>
    </executables>
    <bindings>
    <tree IterBinding="*someViewIterator*"
    id="*someView1*">
    <nodeDefinition DefName="*someView*"
    Name="*someView12*">
    <AttrNames>
    <Item Value="nodeValue"/>
    </AttrNames>
    <Accessors>
    <Item Value="viewIterator2"/>
    <Item Value="viewIterator3"/>
    </Accessors>
    </nodeDefinition>
    <nodeDefinition DefName="viewIterator2"
    Name="viewIterator123">
    <AttrNames>
    <Item Value="nodeValue"/>
    </AttrNames>
    </nodeDefinition>
    <nodeDefinition DefName="viewIterator3"
    Name="viewIterator345">
    <AttrNames>
    <Item Value="nodeValue"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    </bindings>
    I am using JDev  11.1.1.6.0
    Why is Tree component creating an extra level showing the iterator name, is there any way to remove that level and show the tree with the actual records only...Thanks in advance..

    Hi,
    trees show hierarchical dependencies of a single path. While it is possible to hack the tree binding configuration to show two root nodes, you can't show two child iterators unless you warp the ADF binding model in a custom tree model (in which case its your code that retrieves and manages the user selection)
    Frank

  • Is it even possible to dynamically apply view criteria in an ADF Web App?

    This is one of those situations where something that should take an hour ends up taking days.
    * I have a view.
    * The view has Bind Variables associated with it.
    * The view has View Criteria associated with it.
    * Each of the View Criteria use different Bind Variables.
    * I have a search criteria input page that receives from the user what will ultimately be used to set the bind variables.
    * I have a search results page that uses the view to display a table.
    * I have the code that dynamically sets view criteria and parameters. It is based on the following:
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcadvvo.htm#BCGFHAGA
    * This code works great, until the iterator associated with the table binding to the view is initialized. At that time, the view is reset to its defaults, and all of my code's doings are discarded. How do I know this? Because I have gone so far as to run my code that sets view criteria and binding variables dynamically in a phase event handler for the search results page in the render response phase. There is no other point at which to dynamically modify the view.
    This is turning into a situation where it seems I will need 5 different views and 5 different pages in order to show a single set of query results. I cannot get dynamically applied view criteria to work in an ADF web app. Has anyone else done it? Can anyone relate to this? Are there any other suggestions before I conclude that it's not possible for this framework to handle this simple scenario?
    Thanks

    There must be a setting or something that I am still missing here. If I write code just like this and make sure it is executed, I still only see the results of my view executed without the view criteria applied using the default bind variable values that I supplied in the view object.
    It's like the fact that I set the bind variables, the view criteria, and executed the view query programmatically is lost on the iterator -- it's like it never happened. What setting is used to ensure that the iterator uses the outcome of what I executed programmatically? There has to be a critical set or setting that I am missing.
    Here is the iterator and search region definitions defined in the page def "executables" section:
      <executables>
         <iterator Binds="CustomSearchView1" RangeSize="25"
                  DataControl="AppModuleDataControl"
                  id="CustomSearchView1Iterator"/>
        <searchRegion Binds="CustomSearchView1Iterator"
                      Customizer="oracle.jbo.uicli.binding.JUSearchBindingCustomizer"
                      id="CustomSearchView1Query"/>
        </executables>Here's the "tree" binding in the page def file:
      <bindings>
       <tree IterBinding="CustomSearchView1Iterator" id="CustomSearchView1">
          <nodeDefinition DefName="Model.CustomSearchView" Name="CustomSearchView10">
            <AttrNames>
              <Item Value="CustomId"/>
              <Item Value="CustomProjectNumber"/>
              <Item Value="CustomName"/>
              <Item Value="CustomStatus"/>
              <Item Value="CustomStatusDate"/>
            </AttrNames>
          </nodeDefinition>
        </tree>
      </bindings>In an effort to take page flow out of this mess, I had modified this to include the search criteria and search results on a single page. So, I now have a "Search" button. When the "Search" button is clicked, the action method does the following:
        public String searchActionListener ()
              // Get search criteria from select one choice and text input controls.
              AppModule appModule =
                    ( AppModule ) Configuration.createRootApplicationModule (
                        "Model.AppModule",
                        "AppModuleLocal");
              appModule.customSearch( searchCriteria1,
                                                   searchCriteria2,
                                                   searchCriteria3 );
        }In my application module this translates to:
        public void customNoticeSearch ( String searchCriteria1, String searchCriteria2, String searchCriteria3)
           CustomSearchViewImpl searchViewImp =
               ( CustomSearchViewImpl ) this.getCustomSearchView1 ();
           searchViewImp.customExecuteQuery ( searchCriteria1, searchCriteria2, searchCriteria3);
        }Finally, in my custom view object implementation code:
        public void customExecuteQuery ( String searchCriteria1, String searchCriteria2, String searchCriteria3 )
            // Set-up the parameters that are part of the core query.
            this.setp_searchCriteria1( searchCriteria1);
            this.setp_searchCriteria2( searchCriteria2);
            if ( searchCriteria3 != null )
                ViewCriteriaManager vcm = this.getViewCriteriaManager();
                ViewCriteria vc = vcm.getViewCriteria ( "WithLastCriteria" );
                this.setp_searchCriteria3( new Number ( searchCriteria3 ) );
                this.applyViewCriteria( vc );
            System.out.println ("This is fun.");
            this.executeQuery();
        }This code executes, but the results table is empty, and I know that there are results, because I can execute use execute with params to execute the base query and get the correct results back.
    Thanks for taking a look at this.

  • A selected row in af:table does not get sorted.

    Hi,
    When a table supports single selection and the table contains quantity of rows gt it can fit into its viewport, then, on sorting, selected row gets out of the sorting process. But when you move to the end of the table, select a row there and then sort the table, then all rows sorted correctly. The selected row, after sorting, always set as a first row in the current viewport, doesn't matter whether it is in the order or out of it.
    Noteworthy, when number of rows is lt the viewport allows:
    1. sorting works as it should to;
    2. on sorting/PPR'ing, as it gets some time, one can see how the viewport updates in two steps and in the first step the first row is the selected one.
    JDev's version is 11.1.1.3.0.
    VO, iterator and tree bindings, af:table all the props related to data retrieving, fetching and row displaying have default values.
    What can cause that?
    Thx,
    Y.

    Hi,
    so what you are saying is that the selected table row is not sorted but added on top. I tried to reproduce this with 11.1.1.3 but can't see the issue. I tried with editable and read-only tables
    Frank

  • How to access all rows one by one of a ADF table through managed bean

    Hi Experts,
    Hi i am new in ADF.
    Could someone help me for solving the below case?
    Scenario - I have table called Test_T1 which have 4 columns C1,C2,C3,C4. Have created EO,VO and AM for test_t1.
    At the time of ADF page creation i selected the option 'Automatically Exposed UI components in New managed bean' (mynewmanagedbean.java).
    From Data control drag and drop Test_T1 table in the page as a ADF table.
    Set the properties for C1,C2,C3 is read only and C4 is an input text.
    Have add after the table and attathed button action on the managed bean mynewmanagedbean.java.
    At the time of running the page Test_T1 populated with some no. of rows (like 9).
    How can i access all the above rows through pressing the button without selection of any of them.
    Actually i want to print all the table rows in log file at the time of pressing the button.
    Thanks in advance.

    Hi Timo,
    Thanks a lot for your reply.
    I am using the JDeveloper 11.1.2.1.0.
    As previously said I am totally new in this framework. So if you explain the solution given by you then it will be help full for me.
    Don't know r you agree or not for this ?
    When i put your resolution in the command button bean JDeveloper said TestDataRow type not found.
    What will be the type and TestDataRow and what is missing in below code or how i will declare that in below code?
    Also Could please mentioned the missing thing ?
    package createrow.view.pagecreation.bean;
    import oracle.adf.model.binding.DCBindingContainer;
    import oracle.adf.model.binding.DCIteratorBinding;
    import org.apache.myfaces.trinidad.model.RowKeySet;
    import oracle.adf.model.BindingContext;
    import java.util.Iterator;
    import java.util.List;
    import oracle.adf.model.bean.DCDataRow;
    import oracle.jbo.Key;
    import oracle.jbo.Row;
    import oracle.jbo.RowSet;
    import oracle.jbo.RowSetIterator;
    import oracle.jbo.ViewObject;
    public class OrdCreationWithManagedBean {
    public String cb1_action() {
    // Add event code here...
    DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcIteratorBindings =
    bindings.findIteratorBinding("TestOrderItemAllocationVO1Iterator");
    // Get all the rows of a iterator
    Row[] rows = dcIteratorBindings.getAllRowsInRange();
    TestDataRow dataRow = null;
    for (Row row : rows) {
    dataRow = (TestDataRow)((DCDataRow)row).getDataProvider();
    // work with the row...
    return null;
    My page bindings like below
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="11.1.2.60.81"
    id="OrdCreationWithManagedBeanPageDef" Package="createrow.view.pageDefs">
    <parameters/>
    <executables>
    <variableIterator id="variables"/>
    <iterator Binds="TestOrderItemAllocationVO1" RangeSize="25" DataControl="MainAppModuleDataControl"
    id="TestOrderItemAllocationVO1Iterator"/>
    <iterator Binds="TestOrderItemsEOView1" RangeSize="25" DataControl="MainAppModuleDataControl"
    id="TestOrderItemsEOView1Iterator"/>
    </executables>
    <bindings>
    <tree IterBinding="TestOrderItemAllocationVO1Iterator" id="TestOrderItemAllocationVO1">
    <nodeDefinition DefName="createrow.view.TestOrderItemAllocationVO" Name="TestOrderItemAllocationVO10">
    <AttrNames>
    <Item Value="AllocationId"/>
    <Item Value="AlocationSequence"/>
    <Item Value="ProductName"/>
    <Item Value="AllocationPercentage"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    <tree IterBinding="TestOrderItemsEOView1Iterator" id="TestOrderItemsEOView1">
    <nodeDefinition DefName="createrow.view.TestOrderItemsEOView" Name="TestOrderItemsEOView10">
    <AttrNames>
    <Item Value="OrderId"/>
    <Item Value="AllocationId"/>
    <Item Value="ProductName"/>
    <Item Value="OrderItemsQty"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    </bindings>
    </pageDefinition>
    Thanks In Advance

  • Adding Query String Parameters to Table loadData

    I am new to ADF/JDeveloper, so hopefully this is a simple question...
    I have created an ADF task flow containing a table of fake weather data. This data is loaded using a URL Service Data Control. The URL service takes a zip code as a querystring parameter and returns a CSV of weather data. All of this works fine when I create the data control, test the URL and add the table. However, right now I am hard coding the zip code into my loadData argument (where I submit the zip code).
    What I want to do is read a querystring parameter from the JSPX page my task flow resides on and submit that zip code to loaddata in my bindings. When I write the EL that I think should do this (the same EL works when I put it in an outputText box), the task flow fails to load the correct zip code.
    I have tried creating a backing bean and loading the data from there, but this doesn't seem to work either. So what is the "ADF way" to do this?
    Here are my current bindings from the task flow page definition (see NDValue):
    <bindings>
    <methodAction id="loadData" RequiresUpdateModel="true" Action="invokeMethod"
    MethodName="loadData" IsViewObjectMethod="false"
    DataControl="ZipWeatherDC" InstanceName="ZipWeatherDC"
    ReturnName="ZipWeatherDC.methodResults.loadData_ZipWeatherDC_loadData_result">
    <NamedData NDName="zip"
    NDValue="#{param.zipcode}" NDType="java.lang.String"/>
    </methodAction>
    <tree IterBinding="loadDataIterator" id="Return">
    <nodeDefinition DefName="net.hross.adf.weather.model.ZipWeatherDC.loadData_Data">
    <AttrNames>
    <Item Value="dayOfWeek"/>
    <Item Value="hiTemp"/>
    <Item Value="lowTemp"/>
    <Item Value="precip"/>
    <Item Value="sky"/>
    <Item Value="zipCode"/>
    <Item Value="img"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    </bindings>
    Thanks in advance for any advice!
    Ross

    OK.  I typed the Name manually. But I neglected to hit the tab key twice to arrive at the Value input field.
    Screenshot 1
    After hitting tab key twice, value field is in focus and 2nd lightening bolt appears.
    Gads!  No wonder people mess this up. 
    Thanks, David.  I appreciate your clarification. 
    Nancy O.

  • Weblogic server 8.1 sp5 connection to MQ V 7.1

    Hi,
    We are using Weblogic 8.1 sp5 to connect to Websphere MQ v 5.3 using the "Foreign JMS Server" connectivity of Weblogic. Websphere MQ Qmgr is being accessed in ".bindings" mode.
    we have configured an XA Queue connection factories and queues in the file based jndi tree (.bindings) to connect to MQ. Weblogic is configured to use this bindings file to look up the file base JNDI tree for Weblogic MQ and also all binaries such as "com.ibm.mq.mqjms.jar" etc are available in its classpath.
    An MDB is deployed on weblogic to listen to an MQ queue. The connectivity works fine and messages are delivered to the MDB (XA mode) and processed fine.
    Now the MQ is getting upgraded to V 7.1.
    From the below link i think we can only use weblogic server 9.1 to connect MQ v 7.1
    http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/jm41140_.htm
    If i am wrong can you clarify the below doubts
    1) What changes should be done at weblogic server side ... like
    a) getting the new .bindings file for MQ V 7.1 and it's related jars.
    2) Will the above set-up works as java version is 1.4.2.10
    3) Is there any known issues.
    for ex: http://www-01.ibm.com/support/docview.wss?uid=swg1IZ71306
    Thanks in advance

    If MQ V5 clients cannot interoperate with MQ V7 servers, then perhaps MQ V6 clients support the 1.4 JVM? If so, I suppose you can use an MQ V6 client to communicate with V7.
    Alternatively, perhaps MQ's "extended transactional client" provides more flexibility in interoperability than the client you're using.
    Tom

Maybe you are looking for

  • 11.5.10.2 Post Installation Check Failures in Linux

    Hi All, I had installed 11i (11.5.10.2) in an external drive (made as a Linux OS through VM Ware) and was trying to access through my laptop (having OS XP Professional) The Installation of 11i in Linux (RHEL 4) went fine, except during the post insta

  • Retaining Variable Value for Scenario Restart

    I have a slave-package where i use many variables for JDBC connection/url/login/passwd and Target File Path - all have been defined as type HISTORIZE My packages are as follows (1) There are many odiSqlUnload steps in the slave-package which uses the

  • SCOM reports not working, with execute permission denied error.

    Operations manager 2012 R2, some reports stopped working. Then i open report and click "add object" or "add group" i get error: Note:  The following information was gathered when the operation was attempted.  The information may appear cryptic but pr

  • More than one flat files with same external table

    Is it possible to create external table in owb associated with more than one file ie to generate code like LOCATION ( FILE1,FILE2) in create table ddl.

  • Cannot execute Web Application with JDeveloper

    Hi, I'm trying to execute an application I've been assigned to modify, usin JDeveloper. When I run the project with JDeveloper, it first compiles it, successfully, and then starts the embedded server, and starts the web browser trying to display the