Programmatically creating Hierarchy Viewer

Hi All,
Please advise on creating heriarchy viewer programmatically instead of the creating a databound based viewer.
Best Regards,
Ankit Gupta

Hi Shay,
Many thanks for the link.
The underlying database table has the following columns -
ID, Name, Type, Parent Name, Parent Type.....with primary key on ID.
I tried creating a VO from this table and a View link mapping Name & Parent Name.
Using this structure, I created a hierarchy viewer on the page.
However, during runtime, all the nodes were show individually instead as a hierarchy.
Based on this scenario, I have some queries to ask -
1) Is it mandatory to have "Name" column as primary key , with Parent Name as a self referencing foreign key mapping back to Name.
2) If "Name" cannot be makred as a Primary key, can the hierarchy viewer model can still be achieved using view link or should i opt the programmatic way to create each node.
Best Regards,
Ankit Gupta

Similar Messages

  • Programmatically created calendar view does not appear on view selector menu

    Hi!
    I'm using the following code to create a calendar view for a list:
    using (var site = new SPSite("http://localhost"))
    var viewFields = new System.Collections.Specialized.StringCollection { dateStartFieldName, dateEndFieldName, titleFieldName };
    var query = string.Format("<Where><DateRangesOverlap><FieldRef Name='{0}' /><FieldRef Name='{1}' /><Value Type='DateTime'><Month /></Value></DateRangesOverlap></Where>", dateStartFieldName, dateEndFieldName);
    var viewData = string.Format("<FieldRef Name='{0}' Type='CalendarMonthTitle' /><FieldRef Name='{0}' Type='CalendarWeekTitle' /><FieldRef Name='' Type='CalendarWeekLocation' /><FieldRef Name='{0}' Type='CalendarDayTitle' /><FieldRef Name='' Type='CalendarDayLocation' />", titleFieldName);
    var list = site.RootWeb.Lists["ESM Leaves"];
    var newView = list.Views.Add("Calendar11", viewFields, query, 0, true, false, SPViewCollection.SPViewType.Calendar, false);
    newView.ViewData = viewData;
    newView.MobileView = true;
    newView.Update();
    list.Update();
    My problem is that even though the view is created, it does not appear in the View links just above my list. It only appears in the drop down menu of views in the ribbon. On the contrary, if I create the view using the browser user interface (not programmatically),
    the view appears in both places.
    Do you have any idea why this might be happening?
    Dimitris Papadimitriou, Software Development Professional

    Hi papadi,
    I can reproduce the issue that creating calendar view using programming method, the view isn’t shown in view selector menu, and this only happens to calendar view, html view or other views are shown in the menu.
    After editing the web part, disable the selector menu, then re-enable the selector menu again, I can see the calendar view shown in the view selector menu, create a new calendar view using programming, the calendar view shows as expected.
    This seems indicate there is some issue in the view selector menu display, I would suggest you to first disable the view selector menu through edit the web part properties, then create the calendar view.
    Thanks,
    Qiao
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Qiao Wei
    TechNet Community Support

  • JDev 11.1.2.3.0 Release 2 - crashes with Hierarchy Viewer

    Every time I try to edit properties for the Hierarchy Viewer, JDeveloper crashes: - Any Ideas????
    oracle.adfdtinternal.model.ide.jdev.JDevDataControlManager:Jan 21, 2013 8:57:06 PM oracle.adfdtinternal.model.ide.jdev.JDevDataControlManager notifyAfterPopulatingDataControls
    INFO: Number of data controls:1
    oracle.jdevimpl.webapp.faces.config.modelimpl.FacesConfigHandler:Jan 21, 2013 8:57:07 PM oracle.jdevimpl.webapp.faces.config.modelimpl.FacesConfigHandler setIsMetadataComplete
    INFO: jar:file:/C:/Documents and Settings/p304641/My Documents/classes/Oracle ADF/ReUsableJARs/SharedComponentsViewController.jar!/META-INF/faces-config.xml metadata-complete undefined (false)
    oracle.jdevimpl.webapp.faces.config.modelimpl.FacesConfigHandler:Jan 21, 2013 8:57:07 PM oracle.jdevimpl.webapp.faces.config.modelimpl.FacesConfigHandler setIsMetadataComplete
    INFO: jar:file:/C:/Oracle/Middleware/jdeveloper/jlib/bundleresolver.jar!/META-INF/faces-config.xml metadata-complete undefined (false)
    oracle.jdevimpl.webapp.faces.config.modelimpl.FacesConfigHandler:Jan 21, 2013 8:57:09 PM oracle.jdevimpl.webapp.faces.config.modelimpl.FacesConfigHandler setIsMetadataComplete
    INFO: jar:file:/C:/Documents and Settings/p304641/My Documents/classes/Oracle ADF/ReUsableJARs/SharedComponentsViewController.jar!/META-INF/faces-config.xml metadata-complete undefined (false)
    Performing action (79) About [ from HtmlEditor ] [ for ( main.jsf, IpsViewController.jpr, InitialPhaseScheduling.jws ) ]
    Invoking command: [ from HtmlEditor ] [ for ( main.jsf, IpsViewController.jpr, InitialPhaseScheduling.jws ) ]
    oracle.bali.xml.share.WeakListenerManager:Jan 21, 2013 8:57:10 PM oracle.bali.xml.share.WeakListenerManager addListener
    WARNING: Tried to add listener that was already attached: listener=oracle.jdevimpl.webapp.grammar.DelegatingGrammarProvider$IdenticalGrammarEventPercolator@77d7basource=oracle.jdevimpl.webapp.facelets.libraries.FaceletsLibraryMetadataGrammarProvider@ab4a39
    oracle.bali.xml.share.WeakListenerManager:Jan 21, 2013 8:57:10 PM oracle.bali.xml.share.WeakListenerManager addListener
    WARNING: Tried to add listener that was already attached: listener=oracle.jdevimpl.webapp.grammar.DelegatingGrammarProvider$IdenticalGrammarEventPercolator@508cb2source=oracle.bali.xml.grammar.proxy.GrammarProviderProxy@8a8eb3
    Performing action (79) About [ from  ] [ for ( <none>, IpsViewController.jpr, InitialPhaseScheduling.jws ) ]
    Invoking command: [ from  ] [ for ( <none>, IpsViewController.jpr, InitialPhaseScheduling.jws ) ]
    Performing action (173) Release Notes [ from  ] [ for ( <none>, IpsViewController.jpr, InitialPhaseScheduling.jws ) ]
    Performing action (340) Check for Updates... [ from  ] [ for ( <none>, IpsViewController.jpr, InitialPhaseScheduling.jws ) ]
    Performing action (490) Customizer [ from InspectorWindowImpl ] [ for ( main.jsf, IpsViewController.jpr, InitialPhaseScheduling.jws ) ]
    oracle.adfdtinternal.dvt.datapresdt.dnd.TVModelProvider$1:Jan 21, 2013 9:11:29 PM oracle.javatools.logging.LogUtils log
    WARNING: Exception in task oracle.adfdtinternal.dvt.datapresdt.dnd.TVModelProvider$1@1c29a32 on model oracle.jdevimpl.j2ee.facelets.FaceletsXmlModel@10fba16; txn name=Create Hierarchy Viewer
    java.lang.ArrayIndexOutOfBoundsException: node has no children
         at javax.swing.tree.DefaultMutableTreeNode.getChildAt(DefaultMutableTreeNode.java:228)
         at javax.swing.tree.DefaultTreeModel.getChild(DefaultTreeModel.java:156)
         at oracle.adfdtinternal.model.dvt.ide.objects.bindPanels.TVBindPanel$ZoomPanel.processNodeFacet(TVBindPanel.java:1395)
         at oracle.adfdtinternal.model.dvt.ide.objects.bindPanels.TVBindPanel$ZoomPanel.initTreePanel(TVBindPanel.java:1617)
         at oracle.adfdtinternal.model.dvt.ide.objects.bindPanels.TVBindPanel$ZoomPanel.<init>(TVBindPanel.java:1298)
         at oracle.adfdtinternal.model.dvt.ide.objects.bindPanels.TVBindPanel.updateJTabbedPane(TVBindPanel.java:1197)
         at oracle.adfdtinternal.model.dvt.ide.objects.bindPanels.TVBindPanel.setSelectedCollection(TVBindPanel.java:756)
         at oracle.adfdtinternal.model.dvt.ide.objects.bindPanels.TVBindPanel.initTreeFromDef(TVBindPanel.java:603)
         at oracle.adfdtinternal.model.dvt.ide.objects.bindPanels.TVBindPanel.createCollectionTree(TVBindPanel.java:589)
         at oracle.adfdtinternal.model.dvt.ide.objects.bindPanels.TVBindPanel.initialize(TVBindPanel.java:328)
         at oracle.adfdtinternal.model.dvt.ide.objects.editors.TVEditor.createEditPanel(TVEditor.java:201)
         at oracle.adfdtinternal.model.ide.objects.editors.JUDTObjectEditor.findOrCreateEditPanel(JUDTObjectEditor.java:171)
         at oracle.adfdtinternal.model.ide.objects.editors.JUDTObjectEditor.prepareEditor(JUDTObjectEditor.java:247)
         at oracle.adfdtinternal.model.ide.objects.editors.JUDTObjectEditor.showEditorInDialog(JUDTObjectEditor.java:217)
         at oracle.adfdtinternal.dvt.datapresdt.dnd.TVModelProvider$1.performTask(TVModelProvider.java:179)
         at oracle.bali.xml.model.task.StandardTransactionTask.runWithTokenThrowingXCE(StandardTransactionTask.java:235)
         at oracle.bali.xml.model.task.StandardTransactionTask.runWithToken(StandardTransactionTask.java:114)
         at oracle.bali.xml.model.task.StandardTransactionTask.run(StandardTransactionTask.java:101)
         at oracle.adfdtinternal.dvt.datapresdt.dnd.TVModelProvider.displayEditingUI(TVModelProvider.java:171)
         at oracle.adfdtinternal.dvt.datapresdt.metadata.creators.HVNodeCustomizer.customizeNode(HVNodeCustomizer.java:69)
         at oracle.bali.xml.util.XmlCustomizeAction$1.performTask(XmlCustomizeAction.java:97)
         at oracle.bali.xml.model.task.StandardTransactionTask.runWithTokenThrowingXCE(StandardTransactionTask.java:235)
         at oracle.bali.xml.model.task.StandardTransactionTask.runWithToken(StandardTransactionTask.java:114)
         at oracle.bali.xml.model.task.StandardTransactionTask.run(StandardTransactionTask.java:101)
         at oracle.bali.xml.util.XmlCustomizeAction.actionPerformed(XmlCustomizeAction.java:92)
         at oracle.bali.xml.gui.jdev.inspector.XmlInspectable.showCustomDialog(XmlInspectable.java:272)
         at oracle.ideimpl.inspector.InspectorWindowImpl.showCustomizer(InspectorWindowImpl.java:1684)
         at oracle.ideimpl.inspector.InspectorManagerImpl.handleEvent(InspectorManagerImpl.java:187)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:662)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:1140)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:617)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
         at java.awt.Component.processMouseEvent(Component.java:6289)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6054)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4652)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:617)
         at java.awt.EventQueue$2.run(EventQueue.java:615)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
         at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
         at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    oracle.bali.xml.util.XmlCustomizeAction$1:Jan 21, 2013 9:11:29 PM oracle.javatools.logging.LogUtils log
    WARNING: Exception in task oracle.bali.xml.util.XmlCustomizeAction$1@17a189b on model oracle.jdevimpl.webapp.jsp.JspExplorerView@e5a772; txn name=Properties for dvt:hierarchyViewer... (exception previously logged)
    Exception while performing action Customizer
    java.lang.ArrayIndexOutOfBoundsException: node has no children
    jx.s.tree.DefaultMutableTreeNode.getChildAt(DefaultMutableTreeNode.java:228)
    jx.s.tree.DefaultTreeModel.getChild(DefaultTreeModel.java:156)
    o.adfdtinternal.model.dvt.ide.objects.bindPanels.TVBindPanel$ZoomPanel.processNodeFacet(TVBindPanel.java:1395)
    o.adfdtinternal.model.dvt.ide.objects.bindPanels.TVBindPanel$ZoomPanel.initTreePanel(TVBindPanel.java:1617)
    o.adfdtinternal.model.dvt.ide.objects.bindPanels.TVBindPanel$ZoomPanel.<init>(TVBindPanel.java:1298)
    o.adfdtinternal.model.dvt.ide.objects.bindPanels.TVBindPanel.updateJTabbedPane(TVBindPanel.java:1197)
    o.adfdtinternal.model.dvt.ide.objects.bindPanels.TVBindPanel.setSelectedCollection(TVBindPanel.java:756)
    o.adfdtinternal.model.dvt.ide.objects.bindPanels.TVBindPanel.initTreeFromDef(TVBindPanel.java:603)
    o.adfdtinternal.model.dvt.ide.objects.bindPanels.TVBindPanel.createCollectionTree(TVBindPanel.java:589)
    o.adfdtinternal.model.dvt.ide.objects.bindPanels.TVBindPanel.initialize(TVBindPanel.java:328)
    o.adfdtinternal.model.dvt.ide.objects.editors.TVEditor.createEditPanel(TVEditor.java:201)
    o.adfdtinternal.model.ide.objects.editors.JUDTObjectEditor.findOrCreateEditPanel(JUDTObjectEditor.java:171)
    o.adfdtinternal.model.ide.objects.editors.JUDTObjectEditor.prepareEditor(JUDTObjectEditor.java:247)
    o.adfdtinternal.model.ide.objects.editors.JUDTObjectEditor.showEditorInDialog(JUDTObjectEditor.java:217)
    o.adfdtinternal.dvt.datapresdt.dnd.TVModelProvider$1.performTask(TVModelProvider.java:179)
    o.bali.xml.model.task.StandardTransactionTask.runWithTokenThrowingXCE(StandardTransactionTask.java:235)
    o.bali.xml.model.task.StandardTransactionTask.runWithToken(StandardTransactionTask.java:114)
    o.bali.xml.model.task.StandardTransactionTask.run(StandardTransactionTask.java:101)
    o.adfdtinternal.dvt.datapresdt.dnd.TVModelProvider.displayEditingUI(TVModelProvider.java:171)
    o.adfdtinternal.dvt.datapresdt.metadata.creators.HVNodeCustomizer.customizeNode(HVNodeCustomizer.java:69)
    o.bali.xml.util.XmlCustomizeAction$1.performTask(XmlCustomizeAction.java:97)
    o.bali.xml.model.task.StandardTransactionTask.runWithTokenThrowingXCE(StandardTransactionTask.java:235)
    o.bali.xml.model.task.StandardTransactionTask.runWithToken(StandardTransactionTask.java:114)
    o.bali.xml.model.task.StandardTransactionTask.run(StandardTransactionTask.java:101)
    o.bali.xml.util.XmlCustomizeAction.actionPerformed(XmlCustomizeAction.java:92)
    o.bali.xml.gui.jdev.inspector.XmlInspectable.showCustomDialog(XmlInspectable.java:272)
    o.ii.inspector.InspectorWindowImpl.showCustomizer(InspectorWindowImpl.java:1684)
    o.ii.inspector.InspectorManagerImpl.handleEvent(InspectorManagerImpl.java:187)
    o.i.controller.IdeAction.performAction(IdeAction.java:662)
    o.i.controller.IdeAction.actionPerformedImpl(IdeAction.java:1140)
    o.i.controller.IdeAction.actionPerformed(IdeAction.java:617)
    jx.s.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    jx.s.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    jx.s.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    jx.s.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    jx.s.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    j.a.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
    j.a.Component.processMouseEvent(Component.java:6289)
    jx.s.JComponent.processMouseEvent(JComponent.java:3267)
    j.a.Component.processEvent(Component.java:6054)
    j.a.Container.processEvent(Container.java:2041)
    j.a.Component.dispatchEventImpl(Component.java:4652)
    j.a.Container.dispatchEventImpl(Container.java:2099)
    j.a.Component.dispatchEvent(Component.java:4482)
    j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    j.a.LightweightDispatcher.processMouseEvent(Container.java:4238)
    j.a.LightweightDispatcher.dispatchEvent(Container.java:4168)
    j.a.Container.dispatchEventImpl(Container.java:2085)
    j.a.Window.dispatchEventImpl(Window.java:2478)
    j.a.Component.dispatchEvent(Component.java:4482)
    j.a.EventQueue.dispatchEventImpl(EventQueue.java:644)
    j.a.EventQueue.access$000(EventQueue.java:85)
    j.a.EventQueue$1.run(EventQueue.java:603)
    j.a.EventQueue$1.run(EventQueue.java:601)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    j.a.EventQueue$2.run(EventQueue.java:617)
    j.a.EventQueue$2.run(EventQueue.java:615)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.a.EventQueue.dispatchEvent(EventQueue.java:614)
    o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    j.a.EventDispatchThread.run(EventDispatchThread.java:122)
    oracle.ide.controller.IdeAction:Jan 21, 2013 9:11:29 PM oracle.ide.controller.IdeAction performAction
    SEVERE: Error during handleEvent on action 'Customizer' (id=490).
    None of the attached controllers handled the action..

    Thanks for your reply.
    Unfortunately, the application is for work. So, I am not using the HR schema.
    I was asked to evaluate the tool as part of a pilot effort to determine its usefulness.
    So, I downloaded Oracle Essentials for the evaluation.
    We do not have a support license.
    I believe some modification of a View Object caused the issue.
    The application was working great since I started using the tool a few weeks ago.
    My hope is that the stack trace will provide enough information to understand the root cause and corrective action.

  • Three levels hierarachy - hierarchy viewer data visualization component

    I am not getting the third level when i am using the hierarchy viewer....any pointers will be a great help
    Edited by: Deepak Subramanian on Jan 22, 2010 5:34 AM

    oops sorry if i sounded vague....
    using jdev version 11g
    well I am trying to use the hierarchy viewer data visualization component to create a hierarchy which shows the managers and employees below them.
    am using a single query based VO which has two columns manager and employee.
    then created a self view link with that vo
    the data control looks something like
    manager(first level)
    ----manager or employee(first level)
    ---------employee(third level)
    I am dragging entire data control on the page so that the create hierarchy viewer option appears.
    from there I am stuck...
    when I am running the page, I am getting just two levels...the last level is not showing up :(.....
    Edited by: Deepak Subramanian on Jan 22, 2010 5:35 AM

  • Creating a Hierarchy Viewer query

    Hello,
    I'm having huge difficulties creating a Hierarchy Viewer Query. I've looked through the source code contained withing the demo, but it seems to require great knowledge regarding the component. I'm using a three-node model, each node grouped within it's parent.
    So I created a custom View to be used as a result list for the query and this part is working just fine. I can pick the unique ID for the node I want from the search results when the user selects one, but I don't know how I can make that specific node my "anchor", my "current node", after that.
    Since I'm looking for a specific "contact_id" selected from the search results, I think the correct way of doing it is finding it's node on the TreeModel, and then setting it as my current anchor.
    Please, any tips, directions or suggestions on how can I go about doing this?
    Thanks!!

    Hi!
    Thanks for the attention, but I've been through all the basic stuff. The HV documentation only teaches the most primitive part of it. I searched all blogs related to HV, all articles I could find, I've meddled with the demo source code and all I can think of, but I couldn't find anyone who would give much insight on the mechanics of the component or how to build a really powerful search engine for it.
    As a sugestion for the developer team, it would be great if the query for this component allowed us to specify actions to be performed on all levels of the tree, instead of only the root node, since most of the time people use HV as a multi-root tree.

  • Do I need to create a view for this?

    Hi Ihave got 2 tables emp and project
    In emp tabe:
    emp_no
    family name
    given name
    In porgect table:
    emp_no
    status(assigned,unassigned)
    start_date
    end_date
    emp_no Family_name given_name
    1 Smith John
    In project table same employee can have many assigement eg
    emp_no status start_date end_date
    1 assigned 01-may-08 01-july-08
    1 assigned 01-sep-08 01-july-09
    1 unassigned 01-july-09 01-oct-09
    In the form:
    there are 2 querable fields "project ends between field1(date) and field2(date)" which is used to
    retrive records which have end date between field1 and field2.
    The following fields are needed to get from database:
    emp.family_name emp.given_name project.start_date project.end_date No.of time assigned
    Requirements:
    1. project.start_date and project.end_date must be the latest project_end_date for the same emp
    so in the above sample date
    2. No. of time assigned is a count of total of number records which have status='assign'
    So for the given sample data the record expected after query would be(field1=01-jun-08 field2=02-july-09)
    emp.family_name emp.given_name project.start_date project.end_date No.of time assigned
    Smith John 01-sep-08 01-july-09 2
    What is the best approach to get:
    1 The lastest project(latest end_date) for the emp
    2. get No.of time assigned.
    Do I need to create a view for this? If yes, any sample sql code this this?
    Thanks for your help

    Hi W1zard,
    Thanks for your reply. Could you clarify the following points for me:
    1.) you could create a master block basing on your emp table and a detail block basing on your project table with the relation over emp_no. set the default_where clause of your detail block programmatically using
    set_block_property('project', default_where, 'status = ''assigned'' and <your_date_criteria>');
    Q1: where I pit this code? in pre-query trigger in detail block?
    2.) Of course you could create a view to join both of your tables if you don't want to use master detail blocks; Also do the join over emp_no
    create or replace force view v_emp as
    select emp.family_name, emp.given_name, project.start_date, project.end_date
    from emp, project
    where emp.emp_no = project.emp_no
    Q2 As I mentioned before, there are multipal entries for the same emp in project table and we only need the maching record from project table which has latest end_date. So I think I need something like
    max(project.end_date) somewhere in create view to make sure only one record for one employee.
    Also is there possible to include the no. of assigned field(select count(*) from project where status='assigned' and emp=emp_no) into the view as well?
    Q3 All the fields mentioned above are diaplay-only. So Can I create a control block which has all the fields from emp and project. Then populate them with my sql. The question is
    where I put this customerised sql so when user click excute query. My sql will run and display one the form?
    REally appreciated your help!
    Michael

  • Hierarchy Viewer difference in behaviour between ADF 11.1.1.5 & 11.1.1.6

    Hi All,
    We are having some problems with the Hierarchy Viewer and we were hoping that someone might be able to shed some light on this issue.
    In ADF 11.1.1.5 we have used the attribute displayLevelsChildren which shows how many levels of children would be displayed (if those levels are available of course). We have assigned a value to a select one choice that would set those levels and allow for our user to customise this value and see the levels on right hand side.
    You can see the behaviour that I am referring to in the following demo:
    http://jdevadf.oracle.com/adf-richclient-demo/faces/feature/hv/hvGroupNode.jspx
    I know that this is an 11.1.2, but this has been the same demo for quite a while, when you change the Show Level on the left, the hierarchy viewer gets updated.
    I have created a simple app that illustrates the problem, and when I run it under 11.1.1.5 it performs as expected, while when we run it on 11.1.1.6 it doesn't refresh the levels
    Versions
    Build JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013
    Build JDEVADF_11.1.1.6.0_GENERIC_111205.1733.6192.1
    The code is below
    This is the "dataBean" which is a pageFlowScope.
    package au.callista.sms.sr.view;
    import java.util.ArrayList;
    import java.util.List;
    import org.apache.myfaces.trinidad.model.ChildPropertyTreeModel;
    import org.apache.myfaces.trinidad.model.TreeModel;
    public class DataBean {
         private TreeModel dataModel;
         public DataBean() {
              super();
              DataNode grandfather = new DataNode("Big daddy");
              DataNode father1 = new DataNode("Daddy 1");
              DataNode son1 = new DataNode("Son 1");
              DataNode daughter1 = new DataNode("Daughter 1");
              father1.addChild(son1);
              father1.addChild(daughter1);
              DataNode father2 = new DataNode("Daddy 2");
              DataNode son2 = new DataNode("Son 2");
              DataNode daughter2 = new DataNode("Daughter 2");
              father2.addChild(son2);
              father2.addChild(daughter2);
              DataNode father3 = new DataNode("Daddy 3");
              DataNode son3 = new DataNode("Son 3");
              DataNode daughter3 = new DataNode("Daughter 3");
              father3.addChild(son3);
              father3.addChild(daughter3);
              grandfather.addChild(father1);
              grandfather.addChild(father2);
              grandfather.addChild(father3);
              dataModel = new ChildPropertyTreeModel(grandfather, "children");
         public void setDataModel(TreeModel dataModel) {
              this.dataModel = dataModel;
         public TreeModel getDataModel() {
              return dataModel;
         public class DataNode {
              private String title;
              private List<DataNode> children;
              public DataNode(String title) {
                   this.title = title;
                   children = new ArrayList<DataNode>();
              public void addChild(DataNode child) {
                   this.children.add(child);
              public List<DataNode> getChildren() {
                   return children;
              public String toString() {
                   return title;
    }And below is the jspx page
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1">
          <af:form id="f1">
            <af:panelSplitter id="ps1">
              <f:facet name="first">
                <af:panelGroupLayout id="pgl3">
                  <af:selectOneChoice label="Show Levels"
                                      value="#{pageFlowScope.levels}" id="soc1"
                                      autoSubmit="true"
                                      valuePassThru="true">
                    <af:selectItem label="Show No level" value="#{0}" id="si1"/>
                    <af:selectItem label="Show 1 level" value="#{1}" id="si4"/>
                    <af:selectItem label="Show 2 level" value="#{2}" id="si3"/>
                    <af:selectItem label="Show 3 level" value="#{3}" id="si2"/>
                  </af:selectOneChoice>
                  <af:outputText value="#{pageFlowScope.levels}" id="ot1"
                                 partialTriggers="soc1"/>
                </af:panelGroupLayout>
              </f:facet>
              <f:facet name="second">
                <dvt:hierarchyViewer id="hierarchyViewer1" layout="hier_vert_top"
                                     inlineStyle="width:100%;height:600px;"
                                     value="#{pageFlowScope.dataBean.dataModel}"
                                     var="node" partialTriggers="::soc1"
                                     displayLevelsChildren="#{pageFlowScope.levels}">
                  <dvt:link linkType="orthogonalRounded" id="l1"/>
                  <dvt:node width="100" height="100" id="n1">
                    <f:facet name="zoom100">
                      <af:panelGroupLayout layout="vertical"
                                           inlineStyle="width:100%;height:100%;padding:5px"
                                           id="pgl2">
                        <af:panelGroupLayout layout="horizontal" id="pgl1">
                          <af:panelGroupLayout layout="vertical" id="pgl4">
                            <af:outputText value="#{node}"
                                           inlineStyle="font-weight:bold;font-size:20px;color:#383A47"
                                           id="ot2"/>
                          </af:panelGroupLayout>
                        </af:panelGroupLayout>
                      </af:panelGroupLayout>
                    </f:facet>
                  </dvt:node>
                </dvt:hierarchyViewer>
              </f:facet>
            </af:panelSplitter>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>Looking forward to your response.
    Regards,
    Younis Al-Rawi
    Edited by: Younis Al-Rawi on 4/03/2013 08:58

    Hi,
    the only change is that 11.1.1.6 supports HTML 5 rendering. So you may want to check if the rendering is in Flash or HTML5. If the rendering is in Flash and the mis-behavior shows then the only suggestion I can give is (in case you have a support contract) to file a service request with customer support
    Frank

  • Getting an autosuggest Search working with the Hierarchy Viewer

    Hi,
    I recently raised an issue with Oracle Support 3-7934581791 : Hierarchy Search not working in HTMl5 version, this was promoted to being a bug in ADF HV
    Bug 17601664 - NON-FLASH VERSION OF HIERARCHY VIEWER DOES NOT DISPLAY A SEARCH FORM
    So, my question is what other option preferably programmatically to provide the user with an auto suggest list of employees, selecting this list then re-queries the Hierarchy Viewers query and thus providing the user with an updated HV with the selected employee showing. Any help appreciated; Just not I am running the page with flash disabled and therefore the default search form available cant be used due to bug above.

    just note I have reviewed
    http://jdevadf.oracle.com/adf-richclient-demo/faces/feature/hv/hvSearch.jspx
    This is perfectly fine if running Flash and have this working, but I am tryinto get this to work on an iPad and non Flash enabled browsers.

  • Programmatically create objects and formulas in Crystal Reports XI Developer edition?

    <p>Is it possible to programatically/dynamically create a text, line, formula field object, etc. in Crystal XI Developer edition?  I have been programming with the Crystal .Net reports component that came with VS 2005 for the past 6 months and know for a fact you can&#39;t programmatically create those objects although you can programmatically control their properties.  My intention is to create a dynamic report that can be reused extensively.  My current work-around for this was to create a generic report with about 40 formula field objects which draws data from 40 corresponding formula fields that I can programmatically set it&#39;s formula thus imitating a report field.  I want to update to the developer edition because I heard with this edition we can programmatically create and manipulate these objects but I found no reference or examples anywhere that proves we can do this?  Does anyone know for a fact or point me to the right place to look for documentation?  TIA</p>

    Hi,
    How can I programmatically refresh list of values status on CR server XI R2?
    Currently, after I modified the data source in the data connection, some of the LOVs in the report prompt window became empty when I tried to generate the report. I have to use Business View Manager to log onto the Crystal reports server XI R2, find and double click the list of values object to bring up the Edit LOV window, and then click on "Refresh Status" button to make the LOV available in the report prompt window.
    What SDK should I use to create a simple application (preferable a desktop application) to find all LOV objects on CR server XI R2 and to refresh their status? That is an application similar to the "Refresh Status" function in Business View Manager.
    I found Report Engine SDK has the Lov.Refresh function to refresh LOV. On the other hand, Report Engine SDK seems to be for BusinessObjects Enterprise, not for Crystal Reports Server. Can this or other function achieve what I want, i.e. to refresh list of values status on CR server XI R2? If yes, can I use it to develop a self-contained desktop application instead of a web application? I only need to run this application after I modify the data source in the data connection, so I prefer not need to deploy it as a web service.
    Thanks for your help.
    C.T.

  • Layout editor vs hierarchy views

    I am a newbie, but I have used LiveCycle Designer 8 to create some moderately complex forms. However, I suspect I am missing some very basic understanding.
    I have a several page form. For development purposes, the items on each page are enclosed in a positioned subform. There are several page-wide positioned subforms, one above the other. When I change the enclosing form to flowed, several of the subforms rearrange, so that, for example, an item at the bottom of the layout editor is shuffled to the top of the preview.
    I have done various copying and pasting operations in laying out the form, and assume that is the problem. I think I can arrange things correctly by dragging them around in the hierarchy view, but I would think there would be a way to force the program to arrange the hierarchy to correspond to the layout view.
    Can any of you old hands give me a pointer? Or do I just have to build the forms top-to-bottom, one element at a time, or hassle with moving things around in the hierarchy?

    Darrell and Chris (and everyone else)...
    This posting touches on the same problem I have. I, too, am a newby. I am attempting to take a standard Boy Scout Adult Resource Survey form and set it up so the user can fill it out and elect to print it and/or email it. Ideally, I'd like to pull the emailed data into a spreadsheet.
    Problem is that I have the form more-or-less functional, but I'd like to tiddy up the hierarchy view, and the order within the spreadsheet.
    The hierarchy view is a mess. Is there an easy way to cull out the stuff that I don't need and reorder the stuff I have in the hierarcy view so it corresponds more to the layout view?
    I've noticed that when I click on a radio button (or other object) I'm supposed to be taken to the correct place within the hierarchy view, but the "highlighing" in gray is to slight that it is very difficult to see.
    The form I'm using is located at:
    http://www.scouts787.org/boyscout/docs/WORKINGCOPYAdultResourceSurvey.pdf
    Any assistance would be appreciated.
    Rick

  • Hierarchy Viewer - navigate up

    I have a an app that uses the hierarchy view and a single table.
    It works fine and I can navigate up the hierarchy.
    Can anyone direct me to documentation or a sample of how I can implement the ability to navigate up the hierarchy?
    I am using v 11.1.2.3.0
    thanks

    I was able to create a method in a managed bean to perform the navigate up functionality.
    But, I am still unclear as to exactly what logic should exist.
    I tried the code at the bottom of this response, which I copied from the adffacesdemo app.
    But, trying to convert the results of the call to model.getRowData() to an AbstractNode fails.
    In addition, I am unclear as to the use of the instance variable _treeModel.
    So, although I am now able to trigger a method to perform the navigate up function, I am unclear as to exactly what logic is needed.
    public void doNavigateUp(ActionEvent actionEvent) {
    UIHierarchyViewer hv = (UIHierarchyViewer)actionEvent.getSource();
    TreeModel model = (TreeModel)hv.getValue();
    AbstractNode em = (AbstractNode) model.getRowData();
    if (em.getParent() != null)
    _treeModel =
    new ChildPropertyTreeModel(em.getParent(), "childEmployees");
    }

  • Hierarchy Viewer query

    Hi ,
    I am using Jdev 11.1.1.7.0 , and I want to use dvt:hierarchyViewer. Most of the examples I searched were of Hierarchy Viewer bounded to EO's based VO's with ViewLinks and Association.
    However, my case is a bit different.. We don't uses EO's instead we use Programmatic VO's and fetch data and show on screen.
    Does anyone know, how to implement Hierarchy Viewer using Programmatic VO's. I am a bit confused for it's <dvt:node type
    I tried implementing it, and found that it is more like TreeTable.. Is It ??
    Please help.
    Thanks in advance.
    -Neha..

    You need to have a viewLink that implements master-detail to populate the hierarchy viewer.
    The binding for it is hierarchical. I would suggest trying it out first with regular VOs to see how the binding looks like, and then apply your own programmatic VOs to it.

  • Hierarchy viewer - restart flash player

    Hi,
    I have created a hierarchy viewer to see the connections between customers and when I start the app, the first time I see the hierarchy viewer I can see it correctly, like
    Parent
         Customer (Searched)
             Child
             Child
    but when I want to see other customers hierarchy I can only see the Parent. I have to expand the tree to see the searched customer and, if has them, the childs.
    Is there anyway to, lets say, restart Flash player so it presents the tree like it does initialy?
    Thanks
    I'm using jdev 11.1.1.7.1

    This is the code of my HV.
    <dvt:hierarchyViewer id="hv1" var="node"
                             value="#{bindings.ProfileRoot1.treeModel}"
                             selectionListener="#{bindings.ProfileRoot1.treeModel.makeCurrent}"
                             layout="hier_vert_top"
                             levelFetchSize="#{bindings.ProfileRoot1.rangeSize}"
                             styleClass="AFStretchWidth"
                             summary="Family Members" displayLevelsAncestor="0"
                             nodeSelection="multiple" displayLevelsChildren="2"
                             partialTriggers="cl2"
                             dontPersist="#{bindings.ProfileRoot1}#{bindings.ProfileRoot1Iterator}">
          <dvt:link linkType="orthogonalRounded" id="l3"/>
          <dvt:node type="view.tree.ProfileRoot view.tree.ProfileRootChilds view.tree.ProfileRootChildsChilds"
                    width="233" height="330" id="n4" showExpandChildren="true"
                    shape="roundedRect"
                    inlineStyle="background-color:#{node.Recid==bindings.Recid.inputValue? ( pageFlowScope.ProfileFamilyMemberBean.defaultNodeColor) :''};
                                 border-color:#{pageFlowScope.ProfileFamilyMemberBean.defaultNodeColor}; border-style:solid; border-width:3px;">
            <f:facet name="zoom100">
              <af:panelGroupLayout styleClass="AFStretchWidth AFHVNodeStretchHeight AFHVNodePadding"
                                   layout="vertical" id="pgl45">
                <af:panelGroupLayout layout="horizontal" id="pgl48">
                  <af:panelGroupLayout id="pgl52">
                    <af:image source="/render_image?id=#{node.Recid}&amp;typ=101"
                              styleClass="AFHVNodeImageSize75" id="i12"/>
                  </af:panelGroupLayout>
                  <af:spacer width="5" height="5" id="s25"/>
                  <af:panelGroupLayout layout="vertical" id="pgl50">
                    <af:panelGroupLayout id="pgl1" layout="vertical"
                                         halign="right"
                                         valign="top" styleClass="AFStretchWidth"/>
                    <af:outputText value="#{node.Salutation}" id="ot32"/>
                    <af:commandLink id="cl1"
                                    actionListener="#{pageFlowScope.ProfileFamilyMemberBean.DisplayNodeInformation}"
                                    styleClass="AFHVNodeTitleTextStyle"
                                    text="#{node.FullNameDisplay}"/>
                    <af:outputText value="#{node.Recid}" id="ot18" visible="false"/>
                    <af:outputText value="#{node.Parentid}" id="ot9"
                                   visible="false"/>
                    <af:panelLabelAndMessage label="#{viewcontrollerBundle.MOBILE_NO}"
                                             id="plam2">
                      <af:outputText value="#{node.Mobile}" id="ot12"/>
                    </af:panelLabelAndMessage>
                    <af:panelLabelAndMessage label="#{viewcontrollerBundle.EMAIL}"
                                             id="plam3">
                      <af:outputText value="#{node.Email}" id="ot16"/>
                    </af:panelLabelAndMessage>
                    <af:commandLink text="commandLink 1" id="cl2"
                                    actionListener="#{pageFlowScope.ProfileFamilyMemberBean.NodeInformation}"
                                    visible="#{node.Recid ne bindings.Recid.inputValue}"
                                    partialSubmit="true"/>
                  </af:panelGroupLayout>
                </af:panelGroupLayout>
                <af:spacer height="5" id="s24"/>
                <dvt:panelCard effect="slide_horz" styleClass="AFHVNodePadding"
                               id="pc7">
                  <af:showDetailItem text="Profile Information" id="sdi14">
                    <af:panelFormLayout styleClass="AFStretchWidth AFHVNodeStretchHeight AFHVNodePadding"
                                        id="pfl15">
                      <af:panelLabelAndMessage label="#{viewcontrollerBundle.MEMBER_NO}"
                                               id="plam4">
                        <af:outputText value="#{node.Membershipnumber}" id="ot3"/>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="#{viewcontrollerBundle.NATIONALITY}"
                                               id="plam5">
                        <af:outputText value="#{node.NationalityDisplay}"
                                       id="ot44"/>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="#{viewcontrollerBundle.DATE_OF_BIRTH}"
                                               id="plam6">
                        <af:outputText value="#{node.BirthdayDisplay}" id="ot45"/>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="#{bindings.ProfileRoot1.hints.Assocno.label}"
                                               id="plam7">
                        <af:outputText value="#{node.Assocno}" id="ot46"/>
                      </af:panelLabelAndMessage>
                      <af:outputText value="#{node.Pmsid}" id="ot36">
                        <af:convertNumber groupingUsed="false"
                                          pattern="#{bindings.ProfileRoot1.hints.Pmsid.format}"/>
                      </af:outputText>
                    </af:panelFormLayout>
                  </af:showDetailItem>
                  <af:showDetailItem text="Profile Information 2" id="sdi15">
                    <af:spacer height="2" id="s22"/>
                    <af:panelFormLayout styleClass="AFStretchWidth AFHVNodeStretchHeight AFHVNodePadding"
                                        id="pfl16">
                      <af:outputText value="#{node.StatusEdit}" id="ot8"
                                     visible="false">
                        <af:convertNumber groupingUsed="false"
                                          pattern="#{bindings.ProfileRoot1.hints.StatusEdit.format}"/>
                      </af:outputText>
                      <af:panelLabelAndMessage label="#{viewcontrollerBundle.CATEGORY}"
                                               id="plam8">
                        <af:outputText value="#{node.Category}" id="ot7"/>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="#{viewcontrollerBundle.TYPE}"
                                               id="plam9">
                        <af:outputText value="#{node.TypeDisplay}" id="ot28"/>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="#{viewcontrollerBundle.SUBTYPE}"
                                               id="plam10">
                        <af:outputText value="#{node.SubtypeDisplay}" id="ot41"/>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="#{viewcontrollerBundle.STARTE_DATE}"
                                               id="plam11">
                        <af:outputText value="#{node.StartDate}" id="ot43">
                          <af:convertDateTime pattern="#{bindings.ProfileRoot1.hints.StartDate.format}"/>
                        </af:outputText>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="#{viewcontrollerBundle.END_DATE}"
                                               id="plam12">
                        <af:outputText value="#{node.EndDate}" id="ot47">
                          <af:convertDateTime pattern="#{bindings.ProfileRoot1.hints.EndDate.format}"/>
                        </af:outputText>
                      </af:panelLabelAndMessage>
                    </af:panelFormLayout>
                  </af:showDetailItem>
                </dvt:panelCard>
              </af:panelGroupLayout>
            </f:facet>
            <f:facet name="zoom75">
              <af:panelGroupLayout styleClass="AFStretchWidth AFHVNodeStretchHeight AFHVNodePadding"
                                   layout="vertical" id="pgl41">
                <af:panelGroupLayout layout="horizontal" id="pgl47">
                  <af:panelGroupLayout id="pgl42">
                    <af:image source="/render_image?id=#{node.Recid}&amp;typ=101"
                              styleClass="AFHVNodeImageSize75" id="i11"/>
                  </af:panelGroupLayout>
                  <af:spacer width="5" height="5" id="s28"/>
                  <af:panelGroupLayout layout="vertical" id="pgl43">
                    <af:outputText value="#{node.Recid}" id="ot11" visible="false"/>
                    <af:outputText value="#{node.Parentid}" id="ot14"
                                   visible="false"/>
                    <af:outputText value="#{node.Salutation}" id="ot40"/>
                    <af:outputText value="#{node.FullNameDisplay}" id="ot4"/>
                    <af:outputText value="#{node.Membershipnumber}" id="ot27"/>
                    <af:outputText value="#{node.NationalityDisplay}"
                                   id="outputText2"/>
                  </af:panelGroupLayout>
                </af:panelGroupLayout>
                <af:spacer height="5" id="s23"/>
                <dvt:panelCard effect="slide_horz" styleClass="AFHVNodePadding"
                               id="pc8">
                  <af:showDetailItem text="Contact " id="sdi16">
                    <af:panelFormLayout styleClass="AFStretchWidth AFHVNodeStretchHeight AFHVNodePadding"
                                        id="pfl13">
                      <af:outputText value="#{node.GenderDisplay}" id="ot5"/>
                      <af:outputText value="#{node.Email}" id="ot17"/>
                      <af:outputText value="#{node.Mobile}" id="ot42"/>
                    </af:panelFormLayout>
                  </af:showDetailItem>
                  <af:showDetailItem text="Address " id="sdi17">
                    <af:spacer height="2" id="s26"/>
                    <af:panelFormLayout styleClass="AFStretchWidth AFHVNodeStretchHeight AFHVNodePadding"
                                        id="pfl14">
                      <af:outputText value="#{node.Category}" id="ot38"/>
                      <af:outputText value="#{node.TypeDisplay}" id="ot39"/>
                      <af:outputText value="#{node.SubtypeDisplay}"
                                     id="outputText3"/>
                    </af:panelFormLayout>
                  </af:showDetailItem>
                </dvt:panelCard>
              </af:panelGroupLayout>
            </f:facet>
            <f:facet name="zoom50">
              <af:panelGroupLayout styleClass="AFStretchWidth AFHVNodeStretchHeight AFHVNodePadding"
                                   layout="horizontal" valign="middle" id="pgl51">
                <af:panelGroupLayout layout="vertical" halign="center"
                                     styleClass="AFStretchWidth" id="pgl49">
                  <af:image source="/render_image?id=#{node.Recid}&amp;typ=101"
                            styleClass="AFHVNodeImageSize50" id="i10"/>
                  <af:spacer height="2" id="s27"/>
                  <af:outputText value="#{node.Recid}" id="ot33" visible="false"/>
                  <af:outputText value="#{node.Parentid}" id="ot22"
                                 visible="false"/>
                  <af:outputText value="#{node.FullNameDisplay}" id="ot19"/>
                  <af:outputText value="#{node.TypeDisplay}" id="ot34"/>
                  <af:outputText value="#{node.SubtypeDisplay}" id="ot24"/>
                  <af:outputText value="#{node.Membershipnumber}" id="ot6"/>
                  <af:outputText value="#{node.Mobile}" id="ot35"/>
                </af:panelGroupLayout>
              </af:panelGroupLayout>
            </f:facet>
            <f:facet name="zoom25">
              <af:panelGroupLayout styleClass="AFStretchWidth AFHVNodeStretchHeight AFHVNodePaddingSmall"
                                   layout="horizontal" valign="middle" id="pgl44">
                <af:panelGroupLayout layout="vertical" halign="center"
                                     styleClass="AFStretchWidth" id="pgl46">
                  <af:outputText value="#{node.Recid}" id="ot23"/>
                  <af:outputText value="#{node.Parentid}" id="ot29"/>
                  <af:outputText value="#{node.FullNameDisplay}" id="ot20"/>
                  <af:outputText value="#{node.Membershipnumber}" id="ot10"/>
                  <af:outputText value="#{node.Category}" id="ot21"/>
                  <af:outputText value="#{node.TypeDisplay}" id="ot37"/>
                  <af:outputText value="#{node.SubtypeDisplay}" id="ot25"/>
                </af:panelGroupLayout>
              </af:panelGroupLayout>
            </f:facet>
          </dvt:node>
        </dvt:hierarchyViewer>

  • Hierarchy viewer - settings

    I have created a hierarchy viewer to present family relation, like family tree, and I can show it with all the settings in the first time, but after that it only presents me one node, instead of the all tree, Parent - Search profile - Childs.
    How can I return the hierarchy viewer with the same configurations used in the first time?
    I'm using jdev 11.1.1.7.1
    Thanks in advance

    What I'm trying to do is present the similar to the family tree.
    For e.g. I'm searching for a profile (A), that profile has a 'ParentId' that will connect to another profile (B) and there are other profiles that as the searched profile (A) as their parent (C, D, E), so the tree will be like this
        B
        A
    C D E
    The first time it shows me the tree I'll see it correctly, but after I change the searched profile, I can only see the Parent (B), the rest of the nodes (A, C, D, E) I have to click the option to present them.
    What I need is to present the tree everytime in the same way.
    Any ideas?

  • Hierarchy Viewer and Drag Drop

    Hi I am new for ADF Hiearchy Viewe components. I am trying drag from ADF table rows to drop ADf Hierarchy viewer node and introduce by http://docs.oracle.com/cd/E28280_01/web.1111/b31973/dv_hviewer.htm here.
    1. can get selected rows from drag source ADF rich table and I couldn't get Drop Row Key. In my source some hierarchy node work and some are not work. sourc here.
    <pre>
        public DnDAction toDropListener(DropEvent event)
            RichTable table = (RichTable) event.getDragComponent();
            Transferable t = event.getTransferable();
            DataFlavor<RowKeySet> df = DataFlavor.getDataFlavor(RowKeySet.class, "rowmove");
            RowKeySet rks = t.getData(df);
            Iterator iter = rks.iterator();
            List<Row> sourceRow = new ArrayList<Row>();
            while (iter.hasNext())
                List key = (List) iter.next();
                table.setRowKey(key);
                JUCtrlHierNodeBinding rowBinding = (JUCtrlHierNodeBinding) table.getRowData();
                sourceRow.add((Row) rowBinding.getRow());
            Transferable transferable = event.getTransferable();
            DataFlavor<Object> dataFlavor = DataFlavor.getDataFlavor(Object.class);
            Object transferableObj = transferable.getData(dataFlavor);
            if (transferableObj == null)
                return DnDAction.NONE;
            UIComponent dropComponent = event.getDropComponent();
            Object dropSite = event.getDropSite();
            if (dropSite instanceof Map)
                String clientRowKey = (String) ((Map) dropSite).get("clientRowKey");
                Object rowKey = getRowKey(dropComponent, clientRowKey);
                List<Key> keys = (List<Key>) rowKey;
                System.out.println("Row Key: "+rowKey+ " Size of Keys: "+keys.size());
                if (rowKey != null)
                    DCIteratorBinding itrEmp;
                    if(keys.size()==1)
                        itrEmp = ADFUtils.findIterator("ParentEmpTreeVO1Iterator");
                    }else
                        itrEmp = ADFUtils.findIterator("ChildEmpTreeVO1Iterator");
                    ViewObject hist=itrEmp.getViewObject();
                    Key key = keys.get(keys.size() - 1);
                    Row targetRow = hist.getRow(key);
                    System.out.println("Key: "+key);
                    System.out.println("Employee Id: " + targetRow.getAttribute("EmpId"));
                    if (sourceRow != null && !sourceRow.isEmpty())
                        for (Row row : sourceRow)
                            Row newRow=itrEmp.getRowSetIterator().createRow();//hist.createRow();
                            newRow.setAttribute("EmpId", row.getAttribute("EmployeeId"));
                            newRow.setAttribute("FirstName", row.getAttribute("FirstName"));
                            newRow.setAttribute("ManagerId", targetRow.getAttribute("EmpId"));
                            itrEmp.getRowSetIterator().insertRow(newRow);//hist.insertRow(newRow);
                            System.out.println("Created Row.");
                else
            RequestContext.getCurrentInstance().addPartialTarget(event.getDropComponent());
            return event.getProposedAction();
        private Object getRowKey(UIComponent component, String clientRowKey)
            if (component instanceof UIHierarchyViewer)
                UIHierarchyViewer hv = (UIHierarchyViewer) component;
                ClientRowKeyManager crkm = hv.getClientRowKeyManager();
                return crkm.getRowKey(FacesContext.getCurrentInstance(), component, clientRowKey);
            return null;
    </pre>
    and in hierarchy viewer added row displayed on level one for session then reload page it is ok why shot in level 1
    Where I missed? how to Selected rows assign to hierarchy viewer object? thanks juddi

    thanks for your reply shay. i am just trying to understand how a dvt HV could render in iPhone mobile browser (eg. iOS simulator) as its a part of ADF Faces components. as a part of mobile development we have only trinidad components available (not HV) and it renders in iOS simulator.
    I have tested a HV app (JDev 11.1.1.6) in Safari web browser and it works fine there. Please share your thoughts on this.
    ~Abhijit

Maybe you are looking for