cancel
Showing results for 
Search instead for 
Did you mean: 

Display filesystem in Webdynpro Java Tree UI

bernd_speckmann
Contributor
0 Kudos

Hi,

I want to display a filesystem structure and its files in a Webdynpro Java Tree UI. I am using Netweaver CE 7.11. The root node of this tree should be the local filesystem on C:\ or a network share for example, which the users can browse and select a file. Therefore I want to display a filebrowser in my Webdynpro Java.

My problem is how to access the filesystem and bind it to my tree UI.

Are there any examples or tutorials reagarding to this?

Any help would be appreciated

Thanks in advance.

Regards, Bernd

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Valery Silaev has written an excellent blog about using TreeByNestingTableColumn with recursive context node. It contains a sample project that implements a file browser:

/people/valery.silaev/blog/2005/06/13/master-of-columns-part-i

http://www.jroller.com/resources/s/silaev/HN.zip

Armin

bernd_speckmann
Contributor
0 Kudos

The intention is to give the user the option to see all files in a specified folder on the local filesystem. Not the whole filesystem. For example "root" will be "/home/user/pictures" or a mounted network share. This includes the subfolders of course.

He should browse throught this and select files to download.

Regards

Former Member
0 Kudos

hi Bernd,

have you seen Chris Whealy's elearning:

[Using the Tree UI element and Recursive Nodes|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70b584d5-9401-2b10-f88a-a98252d5c321]

It also contains a link to a sample application.

Kind regards

Stefanie

sanyev
Active Participant
0 Kudos

Hi Bernd,

Can you explain the reason for doing this? Why do you want to create your own UI for listing the directory structure? If you want to browse the client system to upload a file then you can use the[ FileUplod UIElement|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5240] [original link is broken] [original link is broken] [original link is broken];.

If it is the server directory structure you need to show first of all you need to have permission to access all the folders. Why would you need to show the user the directory structure of the server?

If you can explain the need for this requirment we can come up with some alternatives.

There are tutorial on how to parse the directory structure like the link given below. [http://vafer.org/blog/20071112204524]

Regards,

Sanyev

former_member185086
Active Contributor
0 Kudos

Hi

Take help from [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/47ce9b90-0201-0010-59b5-f70826824eee]

Best Regards

Satish Kumar

bernd_speckmann
Contributor
0 Kudos

Thank you,

but I already know this document. My problem is to bind the tree to a real filesystem, not an "dummy" Filesystem.properties files as descirbed in this document.

Regards, Bernd

Former Member
0 Kudos

I'd say if you want to browser the user's file-system, you'd need to call a WebStart application, or even an Applet.

In case you wanna use the local file-system you can start with somethig like:


File[] listRoots = File.listRoots();