Get current RID path from file upload in KM

Hi all,
I wrote an customized upload application using upload ui element.
The question is , how can I get the current RID Path when I trigger the WDJ upload action ?
Thanks for your help. please.

Hi,
Here is some of examples from WDJ for uploading the files, please go thr below link i hope it will help you
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a099a3bd-17ef-2b10-e6ac-9c1ea42af0e9?QuickLink=index&overridelayout=true
http://wiki.sdn.sap.com/wiki/display/WDJava/KmuploadusingWebdynproapplication
Thanks,
Sreeni.

Similar Messages

  • Get current PCD path from user context

    Hi expert,
    Anyone has an idea how to get the pcd path of WDJ ? from user context ?
    Thanks for your quick reponse.
    Kr,
    Ben.J.

    Hi Ben,
    I am not quite sure what your use case is here.
    However, have a look at this link:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b4/adbf40b87e0366e10000000a1550b0/frameset.htm
    If it is for navigational purposes, you can use the WDPortalNavigationService.
    Have a look at http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2f72d990-0201-0010-85b0-8d626287dd4d
    - SM

  • How to read the complete path in file upload UI

    Hi,
    I want to know how to read the complete path in file upload UI in java web dynpro.
    I have created 1 file upload UI and than when i do browse and select some file say small.jpg from my local PC, desktop , its path is coming in file upload UI like E:\small.jpg,
    I want to know how to get this path in java webdynpro code.
    please let me know..

    Hi Satyam,
    In webdynpro java, first file stores in server location then it reads from server.
    Create a button with upload and write this code OnAction
    Resource is the attribute name in context of type com.sap.ide.webdynpro.uielementdefinitions.Resource, this attribute is for Resource property for Upload UI Element.
    Then in OnAction of button
    InputStream text = null;
           int temp=0;
           try{
                File file = new File(wdContext.currentContextElement().getResource().getResourceName().toString());
               String path = file.getAbsolutePath();
                wdComponentAPI.getMessageManager().reportSuccess(path);
           }catch(Exception e){
                e.printStackTrace();
        //@@end
    Regards,
    Pradeep
    Edited by: pradeep_546 on May 11, 2011 12:22 PM

  • PSE 8 Organizer: Bug in "Get Photos and Videos from Files and Folders"

    In PSE8 Organizer, I have a weird bug that occurs when I am using Get Photos and Videos from Files and Folders on certain folders on my hard drive. If the "Files of Type" filter is left as the default ("Media files (photos, audio, video)"), whenever I click on a file in the file browser, three or four files or folders seem to disappear from the folder. I can keep clicking on different items until every file and folder has apparently vanished from the folder. Looking in Windows Explorer, the files and folders are still there, and if I switch the "Files of Type" filter to "All Files", everything reappears and the behavior no longer occurs.
    I'm not sure why only certain folders show this behavior. It may have something to do with the types of files or folders in the folder I'm looking at, but I'm not sure.
    Has anyone else seen this happen?

    Are you on Win 7? If the files in the Get Photos dialog disappear after you select them,confirm if the names of selected files/folders is shown under the File name . If yes, you can import these files by clicking Open. You should find the issue addressed in E9.
    Thanks

  • How to get the complete path name when uploading a file from servlet

    Hi,
    I write a servlet to upload a file from html page
    <intput type=file name=fileupload>I am using
    import org.apache.commons.fileupload.to upload file. i want to get the all fields in the form and file name and content of the file also.
    It give the file name only
    String filename= fileItem.getName();
    o/p krish.jpgBut i want complete path naem like
    d:/krishna/images/funny/krish.jpgI serach the API org.apache.commons.fileupload.*
    But i did nt find the method to get it.
    plz help me , which api or method to use here..

    Krishna_Rao_chintu wrote:
    But i need path and have to do some calculations on it.No, you don't. If you have requirements which say you do then the requirements are wrong. You couldn't do anything useful with the path on the client system even if you could get it.
    is there any alternatives in java
    I need path and have to calculate MD5, Presumably you need to calculate MD5 on the contents of the file and not on the name of the file.
    and convert the file to binary format.... etc oprations on itSorry, "convert a file to binary format" is basically meaningless.
    but we can get the content of the file using
    byte [] get()/ getString() methods
    If i get content is there any performance degrades?
    ie if the content is lengthy is it take more time?Take more time than what? Degrading performance from what? It's certainly true that it would be quicker to not upload the file, but that's a pointless comparison. If you have some other process to compare with, let us know what it would be.

  • Unable to get the filename from file upload UI element

    Hi,
    I added a FileUpload UI element.
    I created an attribute of type resource , assigned to the resource property of the file upload element.
    I created an action button called upload and added the following code.
    try {
           IWDResource resource = wdContext.currentContextElement().getFileupload();
          } catch (Exception e) {
             e.printStackTrace();
    when I debug to see the value of resource it is null.
    Please let me know where I am going wrong.
    Regards,
    Narayani

    Hi,
    Check if there are any space characters in your uploading path (file path).
    First try to upload a file without any space characters in the uploading path(file path). If the problem is with the space characters then use the below encoding & decoding to resolve that issue.
    Encoding while uploading the file:
    // Getting the file resource
    IWDResource resource = element.getCtx_va_FileResource();
    //Getting the resource name
    String resourceName = resource.getResourceName();
    //Encoding the resource name
    String encoderesourceName = java.net.URLEncoder.encode(resourceName,"UTF-8");
    Again while downloading you can use decoder.
    Hope this helps to resolve your issue.
    See this below link.
    Re: File Upload Problem
    Try this encoding even if there are no space characters.
    Regards,
    Charan

  • Getting path from file

    Good Morning,
    Is there a way to get a file path from a file without having to select it through client_get_file_name?
    for example i have a file 'test_01.txt' in C:/
    I cannot hard code the path as each day the txt name will change eg. 'test_02'.
    Is there another way to select the full path name in C:/ where file like 'test%'?
    Thank you in advance,
    D

    Sorry francois ill be a more clear
    On a variable i want to keep changing the path provided.
    For example one day will be var:='C:/Test_01'
    next day will be var:='C:/Test_03'
    as the last number is generated randomly im trying to figure a way to get the correct path in C:/ where the name corresponds to 'test' so i can pass it to my variable
    Edited by: 794018 on 18-Oct-2012 00:50

  • FORMS 6i. How get file's path from file's name?????? HELP

    I want path of file IExplore.exe on file system...
    Thanks

    Hi!
    U can search for the path of the IExplore.exe and use it as
    Declare
         AppID          PLS_INTEGER;
         v_application VARCHAR2(300);
    Begin     
         v_application:='I:\Appli\Gbps\Help\iexplore.exe D:\XYZ\Help.htm';
         AppID := DDE.App_Begin(v_application, DDE.APP_MODE_MAXIMIZED);
         DDE.APP_END(AppID);
    End;
    D:\XYZ\Help.htm specifies the default file to be opened.
    If u don't give the html file name, it will just open Internet Explorer.
    Or else u can also use the Host command.

  • Weird problem while Extracting File path from file Browser item

    Hi all
    I followed some tutorials on this forum to get the absolute filepath from the filebrowser item and storing it in the database.
    Heres what I did. I created a script in the header of the page which reads like this:
    <script language="JavaScript1.1" type="text/javascript">
    function SaveFullName(filepath,feed)
    function getVal(item)
    if(document.getElementById(item).value != "")
    return document.getElementById(item).value;
    else
    return "";
    document.getElementById(filepath).VALUE = getVal(feed);
    alert(document.getElementById(filepath).VALUE);
    </script>
    I have call this function by this syntax which I have put in the onchange event handler of the file browser item.
    onChange="javascript:SaveFullName('CCDPATH','CCDFILEBROWSER');"
    Here CCDPATH is the name of the hidden item which I use to store the path and CCDFILEBROWSER is the name of the filebrowser in question.
    now the last statement of the script above, alert(), gives me an alert with the proper value. The problem is when I am trying to store the value of this variable CCDPATH in my database with an onsubmit process, NULL values are getting inserted :-(
    When I checked out in the debug mode, I can see that the value of this hidden item, CCDPATH is showing as "" , i.e; null. Why is this happening is out of my understanding.
    I mean, with the javascript, it is assigning and displaying its value perfectly, but when I try to store it with PLSQL, it simply does'nt happen.
    What am I possible doing wrong? What should I do to store the value of this hidden item in the database ??

    Any thoughts people?

  • Get current swf path

    I'm developing an extension use Extension Builder for Photoshop CS5. I have to use an executable file in my extension. In general, if you use the Adobe Extension Manager to install the extension, the extension's swf file will put to USERPATH\AppData\Roaming\Adobe\CS5ServiceManager\extensions\YOUR EXTENSION NAME.
    However, some time it isn't. And I don't know the reason. My executable file will be copy to the path as same as the swf file. So I want to get the swf file's path.
    In Flex, the File class has two static variables File.applicationStorageDirectory and File.applicationDirectory. But they don't match the swf file's path.
    How can I get the path in runtime? Solution use Flex or Javascript Script is ok.
    Any help will be appreciated. Thanks!

    "panell" <[email protected]> wrote in
    message news:e97o6o$18i$[email protected]..
    > Hi
    > How to get current flash movie path?
    > ex. C:\Movie1.swf? or
    http://www.test.com/Movie.swf?
    myTextBox.text = _url;

  • Regarding getting specific font data from file

    I am developing one application in java(swing) font converter. In which I have to upload .doc file .Then if that file contains marathi,english text then I want to change marathi font to unicode.My converter program is completed.Now problem is that how I get marathi font or any other non unicode font from file whcih I want to unicode?
    Thanks in advance.

    font is to unicode like apples is to oranges
    Unicode assigns a number to a character.
    A charset or encoding is what is used to represent the character as bytes.
    A font is used to draw the character to the screen.
    You are reading in bytes, and you want to assign unicode values to those bytes. You keep using the word 'font' when font really isn't related to converting it to unicode. What encoding are these docs in? UTF8? UTF16? ISCII?
    If this were chinese, you might have a BIG5 charset, but you could have any number of fonts to draw those characters to the screen. You are missing an important step in this conversion.

  • Best way to get to a path from a browser dialogue

    I want to attach filed to an email
    The file is in one of my finder windows
    What's the quickest way of attaching?
    OK... so the mac's search is awesome - no waoting and the file can be found super quick
    But what if the file is called abc.zip and there are 100 other files of the same name elsewhere?
    In Windows, I would copy the path from Explorer - then paste whereever needed and the folder opens ready for me to select files
    I do this all the time - for just about every application where I need to open a file
    On Mac, getting the path takes tooo long! (OK... we're talking about seconds... but seconds to a keyboard freak is a long time!)
    I'm hoping the answer will help me figure out how to open files from other applications in a similar fashion - just by pasting the path
    Thanks
    Omar

    If you enable the path bar in Finder (View->Enable Path Bar) the path for the file or folder will be displayed at the bottom of the finder window.
    Any or all if it is live and can be selected and dragged. So if you want the whole path drag from the end, if you want only part of the path drag from there.
    You can also click on any prt o it to open that in Finder.
    regards

  • Retrieve path from File Name

    Hello,
    I have a string that contains a full FileName; i.e., The path and the file name.
    How can I get just the path out of that string?
    I tried "File(FileName.path)" but it returned something like "0000 temp"
    Seemingly, that only works on a file object, and not on a string.
    I wanted to do something through find/replace within the string... but I dont know about it.
    In other languages I would do a reverse search on a forward slash - which would find the last slash in the string
    and I would erase everything after that.
    If anyone can help me with this, I will greatly appreciate it!
    Thanks,
    Davey

    Assume a string variable s; then
    myPath = Folder(s).path;
    (if the string s is a legal path) will give you the path associated with s's the full path.
    Peter

  • Get current PDF path when filename has unicode chars

    How do i get the current PDF path if the filename has unicode characters
    Thanks
    Swapneel

    How are you getting it now that it isn't working?

  • Button from file upload item in wrong language

    Hallo,
    when i create a file upload item, the text from the search button is in wrong language.
    The application primary language is en-us. And the ApEx language is en-us too.
    Instead of "Durchsuchen..." I would like to have "Search..." as button text.
    Can somebody help me?
    Thank you in advance!
    Kind regards
    Michael87

    Hello Michael,
    >> I'm talking about the button which is part of the "File Browse" item.
    In that case, you’re in troubles :)
    The “Browse” button is not generated by APEX, and as such it’s not subject to the APEX translation mechanism (or application language). This button is generated by your browser, as part of the HTML &lt;input type="file"> tag (http://www.w3schools.com/htmldom/dom_obj_fileupload.asp), which APEX uses to render its item, and its text and language are determined by the language of your Web browser.
    Regards,
    Arie.
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

Maybe you are looking for

  • "No direct posting can be made to G/L account 140000 in cocode GBTS

    hello gurus  below is the problem i asked earlier iam creating PO with account assignment category 'K' . I have been cncountered with a probklem "No direct posting can be made to G/L account 140000 in cocode GBTS Diagnosis G/L account entered is a co

  • Wireless keyboard with integrated pointing device

    I would really like to buy a keyboard that has a good pointing devise integrated into the keyboard. Here is one of the only devises that appears to satisfy this but it is Windows only: http://www.logitech.com/index.cfm/keyboards/keyboard/devices/192&

  • Oracle 10g db Silent installation error

    Hi All, I am getting this error while going for silent installation : SEVERE:Values for the following variables could not be obtained from the command line or response file(s): DEP_MODE(InstallType), TLDepModes(TopLevelInstallType) Here is response f

  • Forwarding problem from printer to mac

    Hi, Normally, when I setting forwarding from printer to windows computer, I would input the " \\computer name\the folder path " into the system. However, it doesn't work on mac by using the same method. I would appreicate if someone could teach me. T

  • Change term of payments in Documents

    Hi Can the terms of payment be changed to the documents which are already posted. Say i posted documents with 30 days grace, now i changed the terms of payment to 20 days. But the changes did not effect documents already posted. Is there any why by w