Tree Implementation - Like a file system

Hi all,
I'm want to implement something that will look similar to Windows's file explorer - it should have a tree on the left side and a table (datagrid) on the right side. The tree displays some hierarchy, let's say folders, and upon selection on a folder in the tree, the right side displays the files inside it. Important to say that the tree doesn't show leafs (files), just like in the file explorer in Windows.
The entire hierarchy is supplied as an XML to my flex application.
My XML structure will look something like this:
<FOLDER label="folder1" id="folder1_id" >
    <FILE label="FILE1.1" id="FILE11_id" />
    <FILE label="FILE1.2" id="FILE12_id" />
</FOLDER>
<FOLDER label="folder2" id="folder2_id" >
    <FILE label="FILE2.1" id="FILE21_id" />
    <FILE label="FILE2.2" id="FILE22_id" />
</FOLDER>
How can I hide the leafs (the "File" tags) in the tree but show them on the table when clicking on the parent folder? How can I "slice" the XML and supply the children (and only them) to the table (datagrid)?
Thanks!

Yes. This possible with ADF Faces RC, which provides an af:tree component. Have a look at the Fusion Order Demo, which uses the tree to implement a similar usecase to the one you describe.
http://www.oracle.com/technology/products/jdev/samples/fod/index.html
Regards,
RiC

Similar Messages

  • Show tree folder structure of file system directory

    Hi,
    I am new to flex.
    I am using AS3
    I am creating web application.
    I want to show the tree directory structure of the file system similar to what we seen in applet.
    Is there any component in flex, which will do that?
    Can it be possible in web application?
    Thanks,
    Tushar

    Hi,
    Use the FileSystemView class of javax.swing.filechooser
    create an instance of the view and choose the method:
    File root = FileSystemView.getHomeDirectory();as your root file object.
    Maybe you need to do some modifications on your FileTreeModel...
    under windows the desktop node and the first level nodes down from there
    are not real file-objects ...
    Olek

  • Creating a tree structure like Windows file explorer using Jdev

    Hi All,
    Is it possible to develop a tree structure like windows in JDEV and then same page I want to move to oracle apps.
    This tree I am creating for Showing Employee information. Like Parents & childs under it. i.e. Managers and employee reporting to managers.
    Please let me know if it is possible, if yes how , what is method of doing this.
    Thanks
    Ganesh Mane

    Yes. This possible with ADF Faces RC, which provides an af:tree component. Have a look at the Fusion Order Demo, which uses the tree to implement a similar usecase to the one you describe.
    http://www.oracle.com/technology/products/jdev/samples/fod/index.html
    Regards,
    RiC

  • Implementing a remote file system to use with JFileChooser

    Hi all
    What I want to do is create a virtual file system so that I can browse through it with JFileChooser, select a file, and then take the correct action. If anyone has something like this that they can post it'd be much appreciated. Otherwise, does anyone have any advice about creating a navigation tool for traversing a vertual file system?

    It appears that some people have indeed created some graphical FTP clients incorporating JFileChooser capabilities. The first entry on the search (and a few others) appear useful.
    http://www.google.com/search?num=100&hl=en&c2coff=1&q=java+ftp+client+jfilechooser

  • Implementing a proprietary file system for Solaris

    Hi there,
    I'm implementing at the moment a proprietary FS for several platforms including Solaris. Is there a good source of information about Solaris
    flavor of Vnode/Vfs interface?
    I do know about Erez Zadok's works in FS stacking, but his code examples
    seem to be the only piece of information available publically. Am I right?
    In particular, the Vnode method vop_realvp is of great interest for me. Since there is no such a thing neither in BSD, nor in Linux,
    I'd appretiate it very much if somebody will give a tip about it's
    purpose.
    Hope to get a tip before the sources of Solaris 8 will be published...
    Thank you in advance, sincerely,
    Ilya

    I'm implementing at the moment a proprietary FS for
    several platforms including Solaris. Is there a good
    source of information about Solaris
    flavor of Vnode/Vfs interface?No there's none other then the source code itself, I'd
    say you can't write filesystems for solaris without actually
    having solaris source code access and even then it's
    going to be a challenging task so you may up ending
    looking for an existing filesystem that already solves
    your problems.
    frankB

  • Shared and non-shared application file system in R12

    Hi,
    We have a oracle apps 11.5.10.2 on mutli node architecture with node 1 hosting DB,CCM and admin while node 2 hosting Form and web servers on Windows 2003.
    Some of our Products are in Shared status(Installation) like AD,AU etc and I found that R12 currently does not support the shared file system infrastructure on application tier server nodes running on Windows platforms
    Metalink note:384248.1
    what will be the impact of this if we plan for R12 upgrade?
    Thanks!
    Shekhar

    Hi Shekar,
    <p>
    I'm slightly confused by your question. Shared application tier file system isn't supported on Windows platforms in 11i, either. From Note 233428.1: <br>
    <blockquote>
    The shared file system infrastructure is not supported <b>on application tier server nodes running Windows platforms</b> or using Oracle9iAS releases earlier than 1.0.2.2.2. Application tier nodes must be running on the same operating system to implement a shared file system.
    </blockquote>
    <p>
    Are you perhaps referring to the licensing status of your Applications products (i.e. either Installed, Shared, or Not Installed) from the Installed Products report in OAM? If yes, then this should have no impact on your upgrade to R12...those statuses should remain the same when you upgrade. "Shared" in this case relates only to the licensing status of the product, implying that the product is not explicitly licensed (i.e. Installed status), but its functionality is required for used with other Installed products.
    <p>
    Regards,<br>
    John P.

  • Can DFS integrate as KM File system Repository?

    We are implementing DFS (Distributed File System) and want to integrate it as a file system repository in KM content management.  Has anyone done this before?  If so, does anyone have instructions, considerations, recommendations on this matter?
    Thanks ahead

    Hi vicky,
    Integrating file system repository is very easy process.
    The step by step procedure is described in the help documentation.
    http://help.sap.com/saphelp_nw70/helpdata/en/e3/92322ab24e11d5993800508b6b8b11/content.htm
    Just u need to create a File system repository  in the Repository manager
    Mr.Chowdary

  • EBS, file system

    Hi:
    I got an interview question like what file system does your 11.5.10.2 on unix have, I didn't know how to answer. How to find out?
    Thanks and regards.

    Hi,
    I got an interview question like what file system does your 11.5.10.2 on unix have, I didn't know how to answer. How to find out?The best place to look is at
    /etc/fstab -->In Linux
    /etc/vfstab ----> Solaris
    /etc/filesystem -----> AIX
    Please see
    http://en.wikipedia.org/wiki/Comparison_of_file_systems
    http://en.wikipedia.org/wiki/Unix_File_System
    http://en.wikipedia.org/wiki/File_system
    Thanks

  • File System Implementation

    Hello everyone,
    I am currently working on a java card file system. I already came up with several designs like that of FAT.
    If any one of you guys had already implemented a file system for java card, I was wondering if you could help me with some tips (tutorials, readings, code snippets, etc.)
    Thanks.

    Hi lexdabear,
    Thank you for the reply.
    I am quite aware of the EF, DF, and MF files. I was asking if happen to know of any actual implementation of these in java card. Any readings, pdfs, sample codes would help.

  • How to implement a file system in my app?

    How to implement a file system in my app? So that we can connect to my iPhone via Finder->Go->Connect to Server. And my iPhone will show as a shared disk. Any ideas about it? Thanks.

    Hi Rain--
    From webdav.org:
    DAV-E is a WebDAV client for iPhone, with free and full versions. It provides remote file browsing via WebDAV, and can be used to upload pictures taken with the iPhone.
    http://greenbytes.de/dav-e.html
    http://www.greenbytes.de/tech/webdav/
    Hope this helps.

  • Tree for file system

    hi frndzz,
    I want to represent the file system using a jtree?please send the code fragment...............
    and also how to know which operating system under the app is running in java?
    Thanks in advance

    Hello,
    These tips may help:
    List the names of all files in a particular directory
    http://www.java-tips.org/java-se-tips/java.io/list-the-names-of-all-files-in-a-particular-directory.html
    How to follow a directory structure
    http://www.java-tips.org/java-se-tips/java.io/how-to-follow-a-directory-structure.html
    How do I list all drives - filesystem roots - on my system
    http://www.java-tips.org/java-se-tips/java.io/how-do-i-list-all-drives---filesystem-roots---on-my-system.html

  • Portable file system jtree based on FileSystemView

    Does anybody know of an open source widget that meets this description?
    I wrote just a basic explorer style widget that works on linux and win32, but it doesn't use the shell that most win32 users expect (and that I now hate with a passion)- i.e. Desktop/My Documents/etc.
    This bogus win32 file shell is available through filesystemview, but sticking this into a jtree and having it work on every OS and also having features like being able to set a selected node by passing in a file object... well that ends up being a pretty advanced topic. Having to spend a week writing a component that is readily available in any win32 programming language really bites.
    Anbody know of anything that may help?

    Thats what I have written already, w/o a severe degree of difficulty.
    Unfortunately, this type of implementation differs greatly from what users in the year 2003 are used to seeing in their win32 desktop apps. Heck, novice users who are new to PCs may never find "Desktop" in a JTree if they are left to fend for themselves and figure out where it is buried! i.e. C:\Documents and Settings\byoung\Desktop. You may say, "Not my problem"... however when you are selling your app and people choose not to buy it because it isn't "novice friendly", well then it becomes your problem very quickly.
    Unfortunately, the way Micro$oft has messed up the file system by using this bogus shell crap, the file system is no longer even a true hierarchy... it is partly busted. It is then very difficult to use the same widget code (such as a tree) based on a FileSystemView that is truely cross-platform. Not very nice... not very nice at all.

  • Store \ Retrieve files from file system

    Hi to all!
    I would like to implement a solution for storing files uploaded via apex user interface to servers file system. As well I would like this files to be retrievable by apex users. I designed the following solution:
    For upload:
    1. Through file browse item user chooses file to be uploaded
    2. File goes to custom table (as BLOB)
    -- so far i would use apex Upload\Download files tutorial
    3. File(BLOB) would then have to be written to file system to some directory and file id would have to be written to some db table which holds pointers to files on file system
    4. delete file(blob) from custom table (from step 2)
    For download:
    1. user chooses link from some report region(based on table giving file pointers to files residing on file system)
    2. file identified with chosen file pointer is then inserted into blob column of some custom table in db
    3. from custom table with download procedure fie is finally presented to user
    4. delete file(blob) from custom table (from step 2)
    Using apex tutorial for Upload\Download files it is straitforward to get the files from db table or into db table using blobs. But i have not seen any example of using BFILE or migrating files from db to file system and vice versa.
    So some Q arise:
    a) How can I implement step 3 under For upload section above
    b) How can I implement step 2 under For download section above
    c) Is there any way to directly upload file to file system via apex user interface or to directly download file from file system via some report region link column?
    Please help!!!
    Regards Marinero
    Message was edited by:
    marinero

    marinero,
    Here is a procedure that will copy an uploaded file to the file system:
      Procedure BLOB_TO_FILE(p_file_name In Varchar2) Is
        l_out_file    UTL_FILE.file_type;
        l_buffer      Raw(32767);
        l_amount      Binary_Integer := 32767;
        l_pos         Integer := 1;
        l_blob_len    Integer;
        p_data        Blob;
        file_name  Varchar2(256);
      Begin
        For rec In (Select ID
                              From HTMLDB_APPLICATION_FILES
                             Where Name = p_file_name)
        Loop
            Select BLOB_CONTENT, filename Into p_data, file_name From HTMLDB_APPLICATION_FILES Where ID = rec.ID;
            l_blob_len := DBMS_LOB.getlength(p_data);
            l_out_file := UTL_FILE.fopen('UPDOWNFILES_DIR', file_name, 'wb', 32767);
            While l_pos < l_blob_len
            Loop
              DBMS_LOB.Read(p_data, l_amount, l_pos, l_buffer);
              If l_buffer Is Not Null Then
                UTL_FILE.put_raw(l_out_file, l_buffer, True);
              End If;
              l_pos := l_pos + l_amount;
            End Loop;
            UTL_FILE.fclose(l_out_file);
        End Loop;         
      Exception
        When Others Then
          If UTL_FILE.is_open(l_out_file) Then
            UTL_FILE.fclose(l_out_file);
          End If;
      end; And here is a procedure that will download a file directly from the file system:
      Procedure download_my_file(p_file In Number) As
        v_length    Number;
        v_file_name Varchar2(2000);
        Lob_loc     Bfile;
      Begin
        Select file_name
          Into v_file_name
          From UpDownFiles F
         Where File_id = p_file;
        Lob_loc  := bfilename('UPDOWNFILES_DIR', v_file_name);
        v_length := dbms_lob.getlength(Lob_loc);
        owa_util.mime_header('application/octet', False);
        htp.p('Content-length: ' || v_length);
        htp.p('Content-Disposition: attachment; filename="' || SUBSTR(v_file_name, INSTR(v_file_name, '/') + 1) || '"');
        owa_util.http_header_close;
        wpg_docload.download_file(Lob_loc);
      End download_my_file;I could put a sample application on apex.oracle.com, but it wouldn't be able to access the file system on that server.

  • Oracle vm 3.1.1 server pool file system corruption

    Hi
    I have a small lab environment composed by 2 Oracle VM Servers and SAN access.
    This morning somehow the OCFS2 Server Pool File System (the 12GB one) corrupted and the Server Pool seems dead. How can I recover from this error? I looked in the documentation and MOS but found nothing
    Thank you

    I know it would be a lot of work in such a scenerio. I don't know what you're using for storage but you could snapshot or replicate the pool storage to create a backup that can be restored.
    I do wish they would let you select more than one VM guest in the VM Manager. Would be really nice to have such. Seems like it would be a rather easy feature to implement.

  • Best Practice for Distributed TREX NFS vs cluster file systems

    Hi,
    We are planning to implement a distributed TREX, using RedHat on X64, but we are wondering which could be the best practice or approach to configure the "file server" used on the TREX distributed environment. The guides mention file server, that seems to be another server connected to a SAN exporting or sharing the file systems required to be mounted in all the TREX systems (Master, Backup and Slaves), but we know that the BI accelerator uses OCFS2 (cluster file systems) to access the storage, in the case of RedHat we have GFS or even OCFS.
    Basically we would like to know which is the best practice and how other companies are doing it, for a TREX distributed environment using either network file systems or cluster file systems.
    Thanks in advance,
    Zareh

    I would like to add one more thing, in my previous comment I assumed that it is possible to use cluster file system on TREX because BI accelerator, but maybe that is not supported, it does not seem to be clear on the TREX guides.
    That should be the initial question:
    Aare cluster file system solutions supported on plain TREX implementation?
    Thanks again,
    Zareh

Maybe you are looking for

  • AP Checks - Some print on next page

    Some of the Payables checks are printing on the top of the next page. Most all the checks in the batch are ok, but it seems to be random that some checks print on the next page. I do not believe it is my template since most of the checks print fine.

  • Please Help me with Oracle Reports (10G)

    Hi , I have created a report in Oracle 10G and save it as .JSP file, while i tried to open that .jsp file through edit plus i observed that reportbuilder have generated a code for what i have done in Layout but all the code is commented, why was it h

  • Logic X repeatedly crashes when bouncing a project

    Logic X is repeatedly crashing while bouncing my project. It is beyond annoying. I see on another thread that other people have the same crash error but while doing different things in Logic...is this a bug?? because in the other thread I saw there w

  • [SOLVED] Installed Win 7, now Arch won't boot

    Edit: To save anyone reading this all the way, the problem turned out to be a badly edited fstab. Sigh. PROBLEM: Grub loads, then loads the kernel, but the boot hangs a few seconds later with no real error messages. BACKGROUND: 1) I needed to boot a

  • IOS for 2801 having support for MPLS

    Assalam o Alaikum, Is there any IOS for 2801 router which has the support for MPLS?