Browse Folder in KM

Dear Readers,
   I am looking out to create something like "file upload" HTMLB control but instead of file, I would like to choose a folder in KM.
Can anyone let me know how can this be achieved.
Thanks,
Mandar

hai Mandar
I hope you want the km upload iview with options of selecting the folder in km to which you want to upload documents.
You have to get the resource id of the root folder of the km or the root folder you want to set. Then you can get the subfolders of the folder by using the RIDpath.You can Create the file using XX.createResource()
and Create the folder using xx..createCollection().
////Selecting the folder in km..........................
//     create an user object from the current user
       IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
       com.sap.security.api.IUser sapUser =
       wdClientUser.getSAPUser();
//          create an ep5 user from the retrieved user
       IUser ep5User =
       WPUMFactory.getUserFactory().getEP5User(sapUser);
//          establish resource context
       IResourceContext resourceContext = new
       ResourceContext(ep5User);
//          get a resource factory
       IResourceFactory resourceFactory =
       ResourceFactory.getInstance();
//          get a RID from the current path to display the according content
//          the km can be traversed based of this path
       RID pathRID =
       RID.getRID("/documents/Public Documents");
//          get a Iresource object to work on
       IResource resource = resourceFactory.getResource(pathRID,
       resourceContext);
//          cast the object to a Collection
       ICollection collection = (ICollection) resource;
//          get the Collection's children          
       IResourceList resourceList = collection.getChildren();
//          and finally get an iterator to walk through the set of  children
       IResourceListIterator resourceListIterator =
       resourceList.listIterator();
while (resourceListIterator.hasNext()){
          IResource tempResource = resourceListIterator.next();
          tempResource.getName()}
////Creating the file in the respective folder............................
//fin is the file inputstreamreader
Content content = new Content(fin,"byte", -1);
IResource newResource = tempResourse.createResource("name of  the file",null, content);
////Creating the folder in the respective folder........................
ICollection newfolder = folder.createCollection("name of the folder",null,null);
Regards
geogi
Regards if it helps you...

Similar Messages

  • Browse folder for upload firefox can't but chrome can

    Topic: browse folder for upload file
    <pre><nowiki><input type="file" id="file_input" webkitdirectory directory /></nowiki></pre>
    webkitdirectory
    can browse folder in google chrome<br />
    but firefox can't
    please, Implement it<br />
    and let me known via email [email protected]
    thank you<br />
    somjet

    hello, firefox probably won't support it unless it becomes a web standard. for details see [https://bugzilla.mozilla.org/show_bug.cgi?id=782233 bug #782233] (bugzilla [https://bugzilla.mozilla.org/page.cgi?id=etiquette.html etiquette])...

  • Browse Folder Dialog in JSP

    Hi Everybody!
    I have a user-form within an JSP, and within this I want the user to specify a folder an his system.
    I already tried <input type="file" .... > But with this tag you can only select a specific file, not a folder.
    Now I solve the problem by having a plain input field and having the user type in the path, but I do not like it.
    So how can I integrate a browser folder dialog to this form?
    Thx in Advance!
    Stef

    hai
    i have also a same problem
    i got in java
    this is the sample code
    http://forum.java.sun.com/thread.jspa?threadID=754499&messageID=4311333#4311333
    but i need in jsp
    if u got it means please tell me
    thanks

  • Browse folder bug on Mac OS Lion

    Hi,
    Since Mac OS Lion, our Flex plugins make Indesign crashed after any browse folder.
    I can post the crash details if you want.
    Thanks.
    Regards.
    Pierre RAFFA

    For running jsx, read this: http://cookbooks.adobe.com/post_Communicating_between_JavaScript_and_the_Creative-17383.ht ml
    ExtendScript has File.openDialog(), File.openDlg(), File.saveDialog() and File.saveDlg() Folder.selectDialog() and Folder.saveDlg()
    the "Dlg" ones are instance methods which open from the selected location, and the "Dialog" ones use the default location.
    Harbs

  • Right-click "Browse Folder" removed from Gnome?

    The latest gnome has removed my favorite option "Browse Folder" from the right-click (context) menu.  Anyone know how to get it back?  The old menu used to have Open first followed by Browse Folder.  Now we only have "Open".

    The right-click functionality is something that is unique to Captivate. Adobe probably implemented some clever solution so that if you right-click a Captivate generated swf it won't bring up the normal flash right click menu but instead look for right-click interaction in your project.
    If you load a Captivate swf into Presenter (or any other shell) it is no longer the Captivate generated swf that will "receive" the right-click from the user since this is loaded into a shell. The Presenter swf would be the one receiving the right-click and since it doesn't have the right-click functionality from Captivate it will just present the regular Flash right click menu.
    I doubt that there is any way to circumvent this when you are loading your Captivate project into a shell unfortunately.
    /Michael
    Click here to visit the www.captivate4.com blog

  • Where can i find the Media browser folder

    Hi guys hey where can I find the media browser folder if I want to delete some FCPX videos to free up some space.

    They are placed inside the project folder, in a folder called "Shared Items." The default location of the project folder is in your Movies folder, called "Final Cut Projects." On an external drive, the "Final Cut Projects" folder is at the top level.
    The shared file will have a name that starts with the project name, and ends with whatever you shared it to. For example, "<projectname > - Mac and PC.mp4"
    There will also be a file called ShareStatus.plist in that folder. It tracks all the instances of when you share the project. I will also control whether a little icon appears next to your project name in FCPX. Finally, if you delete an item that was shared and it still exists in that .plist file, you will see an exclamation point next to the shared icon; it is harmless but to get rid of that you need to delete the entry from the .plist file.
    Hope this helps!

  • Document browser / Folder Structure in DMS

    Dear Experts,
    I have activated document browser and was able create folder structure.
    As per clients requirement, We designed a department wise folder structure.
    Example :
    Main Folder 1
    Main Folder 2
    etc..
    Under each main folder a sub folder is created to maintain specific DIR.
    But in the system, there is no restrictions for document types under a sub folder, and we are able to create any DIR with any document type under a any sub folder.
    So, could anyone suggest me a way out to restrict document types under a folder?
    Your suggestions would be appreciated.
    Regards,
    SK.

    Hi,
    Yes its a part of DMS.
    You can activate the ACL authorizations using customizing transaction 'DCSWITCH'.
    There are many threads available. Please search.
    /TilakRaj

  • Avoid calling OpenHandler when browsing folder using Explore

    In sample.basicftp project , whenever user browsing the mapped folder using Explore (or Finder on MAC) , OpenHandler will be called muliple times, therefore the whole asset files will be downloaded from DAM serveral times.
    This makes the whole thing extreemly slow if user has a lot files or big files in the same folder on th DAM server.
    Is there any way to avoid downloading file at all when user just browsing the folder?
    I know if we just use Adobe Bridge this will not happen. But our InDesign user may open / place  asset using"Open File" dialog to select file located at  the mapped Adobe Drive which will trigger Adobe Drive plugin to download all assets in that folder.   In the end , "Open File"dialog is still an Explore window .
    This issue was also mentioned in http://forums.adobe.com/message/3944498  & http://forums.adobe.com/message/4825937

    Hi
    I should imagine you have not had a reply due to including such a huge amount of meaningless dribble with your post. We are just ordinary users and not used to dealing with such complexities. So lets have a look at the question alone
    i am using 8310 curve which reboots radomly, it doesnt reboot in standby mode or while plugged in pc through usb, but if i use it randomly as like hearing music or making a call or texting anyone it reboots, so plz can anyone help me in this case, i would be greatful, here is my event log collected using jl_cmder, thankyou.
    The Blackberry is designed to be reset by removing the battery whilst the device is powered-on. Leave the battery out for a minute or 2.
    See if that resolves the problem.
    Blackberry Best Advice - Back-up weekly
    If I have helped you please check the "Kudos" star on the right >>>>

  • PowerShell : SPWeb.GetFolder() with browser folder url failed

    I am using powershell script and when I call SPWeb.GetFolder() with
    (short url) it works fine and when I used (browser url) it's not working. However it refers to the same folder
    e.g
    short url
    http://intranet.company.eg/it/Test/Test
    browser url :
    http://intranet.company.eg/it/Test/Forms/AllItems.aspx?RootFolder=%2fit%2fTest%2fTest&FolderCTID=0x01200008503521C8123648B5EE9C5BFFC50F6A
    I need to get the folder url as input from user so is there any way to solve this issue or workaround for that ?
    In brief how can I make easy way to get folder from user as input parameter then I make operations on it?

    Hi Mohammed,
    All items.aspx with query string is a list view page, if you want to get the whole url (browser url you mean), you need to construct the whole url with each part value (i.e. list url, folder name, rootfolder value and folderCTID value).
    Thanks
    Daniel Yang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Browsing Folder To Add Image

    Ok, I have a better way of stating what I want to do with an
    image. I have a folder on my ftp server called images, how would I
    select one of the images from that folder using a roll down menu to
    be uploaded onto my database? Any help, links, or suggestions would
    be great. And please tell me if my problem doesn't make any
    sense.

    I'm trying to figure out how you'd browse a for a file on a
    ftp server, such as an image, and select that image so I can upload
    it onto my site. For example, if I had a user's page, I'd like to
    be able to let them select a picture of themself so it will appear
    on the site where I tell it too. But to make it easier, I'm going
    to have all the pictures already uploaded onto my site so I can
    just choose the image from the site. I hope that helps to explain
    it better.
    PS. Unless you think it'd be easier just to browse for a
    picture from your desktop to upload to the site. I just want to be
    able to select a picture to be on the site without having to go
    into the source code.

  • Browse folder in the application server

    Hi there,
    In a program, I need to create an output file, and to save it either in the applictaion server or in the presentation server.
    But I want the user to be able to choose the folder where to save it, not the file itself. Browsing the Web I have found a method of a class, the cl_gui_frontend_services=>directory_browse, by means of which I achieved displaying a screen to select a folder in the computer.
    But I couldn't find a function module for displaying a screen for the user to choose a folder from the application server.
    Sending an 'A' in the parameter i_server in function module F4_DXFILENAME_TOPRECURSION won't work, since the window displayed is to choose a file and not a folder.
    Thanks a lot in advance.
    Regards,
    Ignacio

    SELECTION-SCREEN BEGIN OF BLOCK 002 WITH FRAME TITLE text-002.
    PARAMETERS : p_aps LIKE rlgrap-filename MODIF ID pth .
    SELECTION-SCREEN END OF BLOCK 002.
    DATA : path_name(150) TYPE c.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_aps.
      SUBMIT rs_get_f4_dir_from_applserv AND RETURN.
      IMPORT path_name FROM MEMORY ID 'PATH_NAME_SDL'.
      p_aps = path_name.
    [Retrieve application server file names in F4 help|http://searchsap.techtarget.com/tip/0,289483,sid21_gci943422,00.html]
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file1.
    PERFORM application_server_path.
    *& Form application_server_path
    FORM application_server_path.
    IF p_read = 'X'.
    *& Selecting file from server on pressing f4
    CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
    EXPORTING
    directory = '.\'
    filemask = ' '
    IMPORTING
    serverfile = p_file1
    EXCEPTIONS
    canceled_by_user = 1.
    ELSE.
    MESSAGE 'F4 is only valid for transfering data from Server to PC' TYPE 'S'.
    ENDIF.
    ENDFORM. " application_server_path

  • Cannot browse folder from save's window dialog

    Hi suddenly I cannot change the directory where save open document (I've tryied with preview and text edit), more precisely when I try to choose another folder whatever, but different from the default, I don't see its content but only an icon of the folder and a determining size text, and save button greyed.
    (Par. I can see only shared folder from the side bar of finder's windows.)
    Could be that I've opened an ftp server with Finder and it was displayed with many folder with same name "_?" ... and that cause some problem?

    Just another restart resolved problem.
    After restart (Forced since I was stuck with blue screen and color ball) I can see Devices/Shared/Places in the side bare and choose where save open document.

  • Going back to the last folder while browsing music

    Hey.
    I don't know how comprehendable the subject was, but it's very hard to explain.
    Anyway, I copied my iTunes library from my PC to my new iMac, and I don't want to re-add all the music that's in my Library, because I want to keep all the plays. So, I have to manually right click on each song, manually locate the file, and then add it through there. I'm sure you know what I mean.
    However, it's annoying to have to browse all the way to the exact same folder each and every time I do this. Somehow, do not ask me how I did it, but I managed to make every time I browsed a new song it took me back to the last folder I was in, which made this a LOT less time consuming. I have no idea how I managed to do this, but alteast I know it's possible now.
    My question is, how do I make iTunes go back to the last browsed folder, when adding new songs like I mentioned? I want to fix my music once and for all, but it takes so much time doing it like this so I just can't find the strength.
    I'd appreciate any answer.

    Really need help with this, and sorry for bumping.

  • Managed Content Folder Pagelet: Can Sub-folder list be sorted?

    Greetings,
    It seems that even prefixing the names of folders with numbers cannot influence the random arrangement of folder names. Is it possible to sort these for Interaction Hub 9.1 ?
    The image below is of a homepage pagelet that was generated with the Pagelet Wizard for the type 'Managed Content Folder.'  Note that when viewed from the managed content 'Browse Folder' these sub-folders do appear in order 1 through 8.

    Is the content of the pagelet a navigation collection?
    I have seen that in a navigation collection we can specify the order using the 'Placement in Folder' drop down.
    I am assuming these options should be similar for Interaction Hub 9.1 as well? Let us know if this was useful or if you are still running into issues. Thanks!

  • Captured Clips Not in Browser

    Am having a problem capturing video. The clips exist in the Capture Scratch folder but they have never made it to the project browser window.
    Running 10.4.9 in an iBook G4. Using FCE HD 3.5. Scratch Disk set to an external hd (Maxtor 120) and Easy Setup to DV-NTSC 32 kHz Firewire Basic because my video camera is a Canon ZR 45. Using DV tape---no HD. What else? Initially had a problem with camera recognition, but did the QT thing which solved that.
    Capturing is a problem, yet when I played the QT clips in the Capture Scratch folder they seem OK.
    Anyone have an idea about what is (isn’t) going on? Maybe these clips were never captured at all. So why are they in the folder?

    G'Day Lee.
    If they are on the Scratch Disc and play correctly then the capture side of things is OK.
    The only thing I can think of is that you may have had more than one Sequence open at the time and the captured clips in question have been associted with the Browser Folder that was the active capture bin.
    Always look for a little clapper board icon at the top left of the Browser. It's into this Folder/Bin all captures appear. If so:
    Open your Seqeunce, use File>Import Files, then navigate to your Scratch Disc where the files are you wish to have in Browser, select them and hopefully it's all good.
    Al

Maybe you are looking for