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

Similar Messages

  • Drill Down Reports and Drag & Drop capability Tool for Developer2000

    I am currently doing my development in Developer2000 rel. 2.0.
    I have seen many tools for VB which provide the facility for Drill Down reporting and drag & drop option in reporting, but unable to find any tool for developer2000. I wonder if anyone can guide me about any tool for developer2000 which can provide these facilities in reporting and forms.......
    Qamar Bilal

    you can use the mouse triggers to do drag and drop.
    you have mouse-move and mouse-enter etc...
    what do you mean by drill down?
    you can do drill down reporting in reports by using srw.run_report built in and you can also use oracle discoverer.

  • Copy/paste and drag/drop not working in Mt. Lion

    After two weeks of searching, I can not find the hangup which is causing my iMac 27" 10.8 to stop copy/paste and drag/drop following successfully doing the same shortly after startup. In Safe Mode, it doesn't happen, so I'm wondering how to track down this problem (extension?). I have to restart in order to get it functioning again after a short time of working. There has to be some kind of timing, like a program installed with a time limit which probably was forgotten in Lion and then reared its ugly head in Mt. Lion. Any suggestions for tracking this puppy? Or is there a program I could buy to do so?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac.
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing.
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects.
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then either copy or drag it. The headings “Step 1” and so on are not part of the commands.
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign.
    Step 1
    Copy or drag — do not type — the line below into the Terminal window, then press return:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'
    Post the lines of output (if any) that appear below what you just entered (the text, please, not a screenshot.) You can omit the final line ending in “$”.
    Step 2
    Repeat with this line:
    sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfix|x)/{print $3}'
    This time, you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning.
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step.
    Step 3
    launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}'
    Step 4
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting.
    Step 5
    osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null
    Remember, steps 1-5 are all drag-and-drop or copy-and-paste, whichever you prefer — no typing, except your password. Also remember to post the output.
    You can then quit Terminal.

  • Dynamic create elements and drag drop

    Hi,
    Where can I find an example of dynamic creating swing elements
    and drag-drop them?
    Thanks,
    Luiz Fernando

    totalnewby wrote:
    The following procedure doesn't compile if sequence SEQ_ADR does not exist before compilation. I had to create the sequence manually before being able to compile this procedure. How can I avoid this manual generation?
    PROCEDURE A_270(proc_id number) IS
    seq_cnt number;
    curr_max number;
    BEGIN
    select count(*) into seq_cnt from user_sequences where sequence_name='SEQ_ADR';
    if seq_cnt > 0 then
    execute immediate 'drop sequence SEQ_ADR';
    end if;
    select max(id)+1 into curr_max from adress;
    execute immediate 'create sequence SEQ_ADR start with '||curr_max||'';
    insert into adress(ID,
    IMPORTED_DT
    select
    SEQ_ADR.nextval ID,
    sysdate IMPORTED_DT
    from new_adress;
    END;Edited by: totalnewby on Aug 23, 2012 6:41 AMEssentially the same question asked by 'gogol' two days ago at creating and using sequence inside a proc
    It was a bad idea then. It is a bad idea now.

  • Resizable and drag & drop window

    Hi!
    I need to build a window with title bar and close button to
    display an internal movieclip (mc is in the same movie). Window
    must be custom resizable and drag & drop. I don' t want to use
    window component. Please, help me. Thanks in advance...

    Here.
    You can work out the rest of the kinks. Good Luck.

  • Backup/restore and drag/drop .emlx back into mail......

    bit of a curly one,
    Okay, I backed up a user's folder full of emails onto disc, so I could delete it (As it's taking up heaps on the server... they're using imap)
    anyway...is there any way to drag/drop the .emlx files back into say a folder "on the mac" so that it can be visible on the hard disk in Mail?

    First of all, you should realize that you’ve been making backups of data stored locally on disk, not of the messages stored on the server. Hence, in general, those backups may or may not allow you to restore your mail depending on a number of things, such as the account settings and the format used by the mail client to cache messages locally (if any).
    If Preferences > Accounts > Advanced > Keep copies of messages for offline viewing is set to All messages and their attachments (the default setting), then Mail 2.x maintains a local copy of server-stored mailboxes using the exact same format it uses for locally stored mailboxes, except the suffix of the mailbox folder in the filesystem is .imapmbox instead of .mbox.
    You cannot import *.imapmbox mailboxes directly into Mail because when you do File > Import Mailboxes and choose Mail for Mac OS X as the data format, Mail looks for *.mbox folders only, but if Keep copies of messages for offline viewing was indeed set to All messages and their attachments when the backup of those mailboxes was made, you can easily overcome that limitation by just changing the suffix to .mbox:
    1. Copy the entire ~/Library/Mail/IMAP-username@mailserver account folder from the backup to the Desktop.
    2. Change the .imapmbox suffix of the folders within the account folder on the Desktop to .mbox.
    3. In Mail, do File > Import Mailboxes, choose Mail for Mac OS X as the data format, and follow the instructions to import the copy of the account folder that’s on the Desktop.

  • UI enhancements and Drag&Drop

    I understand the need and will to create UI environment from scratch which is independent from the OS usual controls and pretty too. But with this approach it's often that something that the users of specific OS are taking for granted isn't there.
    There are problems with current scrolling behavior in grid view (different from thumbnail generation problems). The scrolling seems too slow and not entirely smooth. Apart from working on solution for that (which I feel is needed) using Windows convention of right clicking on slider area and have the options to scroll to the start/end and scroll where clicked would ease _some_ frustration when browsing through the library. I often use this in both PSE Organizer and Bridge.
    Of course Mac people might say: hey, I don't want that Win stuff in! To this my answer would be: I would like _every_ useful Mac stuff in!
    I would also like full drag&drop capability in LR.
    m.

    vatolin wrote:
    V.K. wrote:
    no. smart folders are … saved searches.
    That's understood. Is there any other approach to catch my concern to collect e-mails in one place without move them out of their original place and without to duplicate them?
    no, it has to be a smart folder to do something like that.
    Otherwise I think I'll set a keyword in MailTags and create a smart folder that catches all items including the keyword.
    That's probably your best bet.
    TIA and kind regards, Friedrich

  • Reinstalling CS2, and dragging/dropping files does not work

    I have Photoshop CS2. Or at least I
    had it. I had updated my operating system to Tiger, and it just caused a bunch of files to change, nothing really bad. It gave me an error message upon opening photoshop that "files necessary for running Photoshop were missing from the Application Support folder"
    So I read the advice on this FAQ:
    Scott Weichert, "Double-click/Drag-&-drop Photoshop files opens application but not file or I get a message saying that some files in Application Support are missing and I have to reinstall. (Photoshop CS/CS2/CS3)" #, 29 Dec 2003 2:45 pm
    And did what it said. I trashed the CS2 folder, and now when I try to re-install it my serial number won't work. Is my $400 serial number now permanently registered on a nonexistent platform?
    As an active photographer and graphic artist, I need Photoshop constantly. So any advice would be greatly appreciated as soon as possible. Thank you.

    The problem you got into is a known problem after updating to Tiger. It is a small 4K file that gets trashed with the update. It is called the Adobe Unit Types. Both Photoshop and Photoshop Elements need this file to function.
    One way to get it back is to reinstall Photoshop, the other is to add this file again.
    You can get the file from here http://www.dd.se/Tips/bildbehandling/downloads/AdobeUnitTypes.zip
    It is only 3,7 KB big.
    You put the file you download here:
    [hard disk] /Library/ScriptingAdditions. If you don't have a Scripting Additions folder, you create it.
    As you trashed Photoshop, you need to completely deinstall it to be able to reinstall it.

  • Reader X and Drag & Drop

    Hi guys,
    you may have noticed, Drag & Drop is not longer available since Reader X with enabled Protected Mode. This has become painful news for our accounting personnel. They used Drag and Drop to put billing information into our DMS. Is there a way to enable this feature for a specific website with some kind of whitelist or REG key or do we have to disable Protected Mode in general ?
    Thanks for your advice...

    When the protection mode is enabled this is not possible.

  • Smart folders and drag&drop

    Morning.
    Is there a way to create a smart folder and then drag&drop some emails into this smart folder, so that I can find in this folder all emails I've collected in it without that these emails are moved out of their respective original mailbox?
    This would be very usefull to merge emails without a special evident unique attribute but with similarity given by the user.
    Do you know, what I mean?
    TIA and kind regards, Friedrich

    vatolin wrote:
    V.K. wrote:
    no. smart folders are … saved searches.
    That's understood. Is there any other approach to catch my concern to collect e-mails in one place without move them out of their original place and without to duplicate them?
    no, it has to be a smart folder to do something like that.
    Otherwise I think I'll set a keyword in MailTags and create a smart folder that catches all items including the keyword.
    That's probably your best bet.
    TIA and kind regards, Friedrich

  • Quality differences between "Export Using Compressor..." and Drag & Drop

    There are quite a few people out there discussing the 24p workflow for the new Canon HV20 (on hv20.com, dvinfo.net, etc.). The HV20 can shoot 24 progressive frames/sec, but stores them as 29.97 interlaced HDV on tape, with an arbitrary cadence.
    One of the better workflows is to capture into FCP using HDV over Firewire, and use Compressor to extract the progressive frames from the interlaced. Its Reverse Telecine seems to automatically figure out the cadence. I've been testing this using the "Other Workflows > Apple Codecs > Apple ProRes 422 for Progressive material (HQ)" preset, with the following modifications, Frame Controls: On, Deinterlace: Reverse Telecine, Frame Size: 1920x1080.
    That's just background.
    The problem is this. If I export the HDV clip from FCP, "Export > Using Compressor...", the resulting 24p footage is extremely high quality. However, if I drag & drop the HDV clip directly into Compressor, or set up a Compressor droplet (arguably more straightforward for batch conversions), the resulting footage has obvious resizing artifacts (jaggies).
    Obviously, I'm keeping everything consistent setting-wise, and have thoroughly examined the resulting .movs. The only difference is the actual image quality.
    Anyone seen anything like this?
    I'm less concerned about this specific workflow than I am about Compressor producing non-identical results from identical footage with the same settings, dependent on your chosen workflow...
      Mac OS X (10.4.10)  

    What I need to know if it is a dramatic different in quality that I should use DVD Pro instead of iDVD.
    If you want a DRAMATIC improvement in quality, shoot sharp, high quality content like Hollywood (usually on film) and have it compressed by high quality hardware encoders.
    There is a good reason Hollywood DVDs look better than iDVD/DVD Studio Pro DVDs.
    F Shippey

  • Shared library aggravation -- flags and drag/drop broken

    I've got a MacBook Air.  My wife has a MacBook.  Both are running OS X 10.7.2 and iPhoto 9.2.1 (most recent update of iPhoto '11).  And shared photo libraries are driving us nuts. 
    My wife wanted to grab a few photos from my iPhoto library.  I figured this would be simple... enable sharing in the preferences, click the shared library in the source list, and "it just works."  Nope.  To be clear, I'm talking about libraries shared over a network, using the setting in iPhoto's preferences.  There are several oddities with the way shared libraries work that are just awful. I really hope I'm just doing something wrong.
    1.  Flagging.  iPhoto will let you flag photos in a shared library... but they don't appear in your flagged photos in the source list.  You can't create a smart album from them.  You can't create a album from them.  You can't create an event from them.  You can't search for them.  In fact, near as I figure, you can't really do anything at all with those flagged photos in the shared library, other than toggle the flag overlay. 
    So, iPhoto lets you flag photos in the normal way in a shared library, but doesn't collect those flagged photos in the normal way.  This is probably the worst possible scenario.  My wife happily flagged photos in a large albumn of mine for an hour.  Then, she couldn't understand why those photos weren't collected in the Flagged section of her library's source list.  She would have to go back through all 1,700 photos to find the ones she wanted again.  She. Was. ******.
    2.  Ratings. Same as above.  iPhoto will let you rate photos in a shared library, but that rating seems to affect only the rating overlay image.  Disconnect from the shared library, and your ratings disappear (so do your flags).
    3.  Drag/drop is broken.  You can drag/drop images from the shared library to the local library.  But you cannot drag/drop from the shared library to the desktop (or elsewhere in Finder).  This differs from the standard iPhoto behavior, where drag/drop from iPhoto to any folder works.
    These things are problems.  They're problems because shared libraries look just like the local library.  When the user interacts with them, they should act like the local library. 
    Do shared libraries work similarly for others?  Are my wife and I just "lucky" here?  Or are these bugs in iPhoto?

    Sorry, I was a bit ranty last night. 
    I'll ask a more specific question: do you see the same behavior when you connect to a shared library?  That is, can you toggle the flag overlay and set ratings, both of which appear to do nothing and do not persist after disconnecting?
    Our iPhoto libraries are large (>10k photos each) and have been upgraded across multiple versions of iPhoto.  I'm wondering if there's something broken on our specific Macs, or if this is really an iPhoto bug.

  • Mulit task selection and drag drop

    Hi Gurus,
    SAP cProjects UI does not have capability of Drag Drop and multi task selections in the project strucuture tree.
    I have narrowed down two options which include customisations.
    If any one knows simpler options it would be a great help.
    Thanks in advance.
    Niketan.

    Hi,
    > Drag & Drop and multi task selections in the project strucuture tree
    will be available with "SAP Portfolio and Project Management 5.0" (the successor of cProjects 4.5 and SAP RPM 4.5).
    Kind regards,
       Florian

  • How can I show the "file," "view," and "format" drop down menus on my tool bar?

    I am a new mac and Pages user.  So far, I think I have a handle on the inspector, but a lot of what I have been looking up requires clicking on the "insert" drop down menu...I don't show that on my screen.  How do I get those menus to appear?  I have discovered how to place the different icons on the tool bar, just not those drop downs.
    I took a screen shot of how it looks.

    For details of how to restore it, see the [[menu bar is missing]] article.

  • KDE, ntpd and drag&drop issues

    Hi,
    I use KDE and when I install ntpd (the problem disappears when I remove it) and I want to drag something (like windows), the dragging procedure starts after 5-6 seconds, so I have to hold the mouse in the position for 5-6 seconds. (it also happens when I try to select text).
    Do you have encountered such a problem? Do you know how to fix the problem?
    -nwxxeh

    ewaller wrote:
    Weird. 
    Okay, so when kde and ntp are installed, and ntpd is running, where are your processors spending their time?  Use htop, or whatever that process monitor thing in KDE is called to find out what, if anything is sucking up processor cycles.  Let us know.
    Everything seems normal to me (htop).
    Also, it happens on XFCE and Gnome, so it may be X11 issue.
    Also, when I have ntp and timezone set to GMT+2, when I reboot my time sets to GMT+4 (not timezone, just time)...

Maybe you are looking for