How to Get the Source File Path in the Receiver Side

Hi Experts,
Here We are Trying to Do How to Get the Sender Information ( File Name & Path ) on the Receiver Side .
According to the Michal Blog
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Here we Are Able to Get only the File Name.
But If I Want to get the Total File  Path Also means What Should I Do Here ????
Please Let Me Know
Regards
Khanna

Khanna,
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey fkey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
DynamicConfigurationKey dkey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
String fname = conf.get(fkey);
Sring path = conf.get(dkey);
String final=fname""path;
return ""final"";
Best regards,
raj.

Similar Messages

  • I imported different trips to different catalogs on different external hard drives.  Later renamed external HDs.  I want to combine catalogs and have my source (NEF) files all together on one drive.  I'm not really sure how to get those source files back

    I imported different trips to different catalogs on different external hard drives.  Later renamed external HDs.  I want to combine catalogs and have my source (NEF) files all together on one drive.  I’m not really sure how to get those source files back and get rid of the extra long path to where the source files are now located. If I re-link files to their current catalog (many different paths to files in same catalog) can I merge (import catalogs) into one master catalog?  Will the new (Master catalog) have the correct link to the source file?  If not, how or can this be done?
    I have tried to explain my situation as clearly as I can.  Do you understand my situation?
    This maybe something you don’t have time to help me with.  If not can you suggest somewhere I can get an answer?  I really need help.  PLEEEZZZ HELP ME.
    Bruce Schuerman
    Norman, OK
    405_514-4875 (call collect)
    [email protected]

    Is there any solution (other than buying
    I really think 'buying' is the best solution on this one.  Ideally, you would have at least five internal hard drives.
    System
    Projects
    Cache/Scratch
    Media
    Exports
    Use externals and network drive only for backup.

  • How to get system temp dir. path on the fly ,system may be XP or Linux ??

    How to get system temp dir. path on the fly ,system may be XP or Linux ??
    please suggest solution

    The default temporary-file directory can be retrieved
    using:
    System.getProperty("java.io.tmpdir")
    Thanks a lot for u r reply this one works !!!!

  • How do I set the default file path for the Place command?

    I keep my graphics files for each document in a particular folder. Every time I open an existing InDesign document and place a new image I have to browse back to that location - even though all of the previous images in that document came from the same folder. InDesign does not remember the file path that was used previously in the document. This is very annoying.
    IS THERE A WAY TO SET THE DEFAULT FILE PATH, OR LOCATION, FOR IMAGE FILES?
    I have looked through the preferences, searched the forums and internet, but I have not found any reference to setting default paths. Is there a setting like the one in MS Word called "File Locations" on the Options toolbox?
    Thank you.

    Since you're working in ID on Windows, you can take advantage of a neat trick in Windows. Copy the file path out of the File Explorer address bar and paste it directly into the Place filename field. That will jump you directly to the desired volume. For example, let's say I want to place a graphic located at X:\PS Jobs\May PS\709672bp\Working Source Files\Links. I copy that entire path from the File Explorer address bar, go to InDesign, select File|Place, and press Control + V to paste that path into the filename field. I press the Open button and Shazam! I'm there instantly, without a bunch of navigation.
    You can do the same thing in the File|Save As and File|Export fields. Let's say you want export a PDF file from InDesign to the volume X:\PS Jobs\May PS\709672bp\Working PDF Files. First copy the desired file path from the File Explorer window. In InDesign, select File|Export, click anywhere in the filename field, and press the Home key to move the insertion point to the front of the filename. Press Control + V to paste that path in front of the filename, then add the backslash character (\). The filename will now look like this: X:\PS Jobs\May PS\709672bp\Working PDF Files\Filename.pdf. Press the Save button to bring up the Export Adobe PDF window. Select your desired PDF preset, press the Export button, and the PDF file will magically appear in the desired volume.
    This sounds really complicated, but it's not. In practice, it only takes a few seconds. I probably save an hour's worth of needless navigation every day with this technique.

  • UDF to capture the source file name or the source folder for mapping

    Hi All,
    i have 2 files -  File1 from File2 from 2 different folders- single comm channel FTP (FCC). i have to pass a constant A and B respectively to a field in target structure.
    my options are -
    either create a new field in source str populating different constants and  then map to the target str
    or a udf to get the source file name or the source folder so that i can map the constant using the value mapping/FixValue mapping.
    please suggest. thanks.
    rajib

    Hi,
    please use the UDF to determine the file name. Then based on file name either pass A or B to your target field.
    The code is as given below. Just tweak the code to pass either A or B as per your requirement.
    public String G_GetFileName(Container container) throws StreamTransformationException{
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName; 
    Regards,
    Deepak.

  • How can i relink files to the timeline sequence when i've deleted the source file path? All the attribute are still in the timeline, I just can't relink

    So i started an edit and had the whole thing finished and ready to export in Final Cut X, when i went to export I had a message pop up say that it couldn't export while FCP X is still referencing media. I went through trying to solve the problem and ended up deleting the source media folders in the Final Cut Events folder and reimporting the clips. This lead to a whole can of worms opening up and now i'm left with a whole edit with 90% of the clips in the timeline unable to relink to source media.
    Can anyone help?

    First find the files. Then File>Relink Event Files and point to the folder.

  • How to get a source file?

    I'm using Java 1.6 and extending AbstractProcessor to handle a custom annotation.
    What I want to do is load the source file in which my annotation is found and extract a few lines of the code from around the annotation into a text file and save the text file.
    I'm trying to use
    compiler#getResource(...) to get a reference to a FileObject for the source file. I have the correct package and file name for the source but I have been unable to determine how I get the root of the source path from which all the source files originate. If I try the code with source root hardwired it all works i.e I prepend the source root to the package name and call
    FileObject fObj = filer#getResource(StandardLocation.SOURCE_PATH, <src_root_string>+<package string>, fileName.java)
    then the fObj correct, but this is not a practical solution. Without the <src_root_string> I just get a file not found exception.
    So my question is how can I discover the source root folder from inside the AbstractProcessor and so not need to hardwire it in?
    Alternatively is this the best approach? Should I try another approach?
    Thanks

    Mike,
    You don't need a File to do what you want. Even if you could, it would be wrong to use a file.
    It would be wrong, because the compiler might not by using a JavaFileManager that is actually backed by a filesystem. It could be backed by some form of repository such as a database, or it could be backed by a transient in memory file system ( An example of the latter is the [annotation processor test framework|https://hickory.dev.java.net/nonav/apidocs/index.html?net/java/dev/hickory/testing/package-summary.html] in hickory)
    But probably of more interest to you, you don't need to because you can simply [get an InputStream|http://java.sun.com/javase/6/docs/api/javax/tools/FileObject.html#openInputStream()] from the FileObject returned from [filer.getResource(...)|http://java.sun.com/javase/6/docs/api/javax/annotation/processing/Filer.html#getResource(javax.tools.JavaFileManager.Location,%20java.lang.CharSequence,%20java.lang.CharSequence)] and read it.
    You might also find the [Compiler Tree API|http://java.sun.com/javase/6/docs/jdk/api/javac/tree/index.html] useful. The Compiler Tree API is available to annotation processors running in Oracle's (Sun's) javac, but not in other compilers (possibly limiting portability).
    With this API you can [convert |http://java.sun.com/javase/6/docs/jdk/api/javac/tree/com/sun/source/util/Trees.html#getPath(javax.lang.model.element.Element)] the Element representing the annotation to a Treepath then [get the leaf node|http://java.sun.com/javase/6/docs/jdk/api/javac/tree/com/sun/source/util/TreePath.html#getLeaf()] and from that tree [obtain its offsets|http://java.sun.com/javase/6/docs/jdk/api/javac/tree/com/sun/source/util/Trees.html#getSourcePositions()] within the source file.
    Bruce

  • How to get full source file name in Exporter SDK

    Hi,
    I'm making an Exporter Plug-in using SDK 5.5.
    I want to get the path and extension of the source file (when export file) and path of the sequence (when export sequence).
    Especially the extension of the source file, which is always be replaced by the output extension.
    I can't find it in the SDK guide and sample. Sorry if I'm being a noob.
    Thank you.

    Sequences are generally made up of multiple clips edited together.  It's rare that a user would take a single clip and reexport it.  So there isn't usually a one-to-one relationship between source file and exported file.  Because of that, PPro provides the sequence name as the default file name.
    If you did need to get at the source files, you could do it only under specific circumstances - only when exporting directly from PPro, or when loading a clip directly into AME, but not when exporting a sequence from PPro through AME.  You would need to use the Video Segment Suite to parse the timeline segments, as demonstrated in the player sample code in videoSequenceParser->ParseSequence().  This is quite a complicated process and not something worth pursuing unless absolutely necessary.
    Regards,
    Zac

  • How to get FILENAME from FILE PATH

    does anyone know how to get filename from a file path for example
    FILE PATH: C:\Project\uploadbean\web\uploads\Button.txt
    returns
    FILENAME: Button.txt

    @BalusC
    ust for a reference cause i'm new in JSP This has nothing to do with JSP, but with basic knowledge of an essential API. I have given you the link to the File API. Are you saying that you refused to read the API documentation, which clearly explains you how to use the File and shows which methods are all available to you undereach the straightforward getName() method, and expecting that the others may chew the answers for you? Loser.

  • How to create dynamic source file path for lumira?

    i have source file for lumira  visualization on  D:\lumira\SourceFiles\sample.xlsx;
    also .lums file in D:\lumira\demo.lums
    But when i use the same Lumira folder in different system i have to again create connection for the datasource for fetching the data.So please suggest me how can i use this file so that i don't need to create a new connection again and i should get the updated data i.e. the data should change according to the change in the datasource file.

    Hi,
    this isn't possible.
    you need to go the Connections window in Lumira home page, and repoint the connection to the new location
    regards,
    H

  • How to get location of  file path.

    I have uploaded the file  but i need the path from where it is located.How to get it dynamically...
    Thanks
    Nitti

    Hi Nitti,
    Hopefully you have uploaded the file(say excel sheet) in the context (Va_TestResource) of your web Dynpro application in WDResource form.
    You can convert this WDResource to byte array and then to iwdwebresource. Now using this you can get the URL for the file.
    IWDResource res = wdContext.currentContextElement().getVa_TestResource(); 
    if(res!= null){      
    try {
         InputStream i_is_FileStream = res.read(false);
         int i_int_NoOfBytes = i_is_FileStream.available();
         byte [] byteArray = new byte [ i_int_NoOfBytes ];
         int i_int_byteRead = i_is_FileStream.read(byteArray, 0, i_int_NoOfBytes);
         IWDWebResource webRe = WDWebResource.getWebResource(byteArray, WDWebResourceType.XLS);     
         webRe.getURL();
    } catch (IOException e) {
    } catch (WDURLException e) {
    Hope your issue is addressed
    Regards,
    Tushar Sinha

  • How to configure the .ts files' path in the m3u8

    Now I have a fms server running, but the m3u8 file is not use the correct url for the ts files in the playlist.
    just like this:
    #EXTM3U
    #EXT-X-STREAM-INF:PROGRAM-ID=6334,BANDWIDTH=100000
    liveevent/livestream1.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=6334,BANDWIDTH=200000
    liveevent/livestream2.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=6334,BANDWIDTH=350000
    liveevent/livestream3.m3u8
    How to configure it to like this?
    http://xxx.xx.xx.xxx./liveevent/livestream1.m3u8

    I just want to have a live channel for HLS.
    I use the virtual camera to play a viedo. And use the FMLE to publish the viedo.
    And I create a m3u8 file named liveevent.m3u8.
    just like this:
    #EXTM3U
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=150000
    http://192.168.3.109/hls-live/livepkgr/events/_definst_/liveevent/livestream1.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=500000
    http://192.168.3.109/hls-live/livepkgr/events/_definst_/liveevent/livestream2.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=700000
    http://192.168.3.109/hls-live/livepkgr/events/_definst_/liveevent/livestream3.m3u8
    and put it on the webroot.
    now if I play this file, the client will download all the livestream%i.m3u8,
    The file livestream%i.m3u8 was created by FMS automaticlly.
    but it use the relative path for the ts files.
    I need the absolute path.
    that's all.
    thanks.

  • How to get a flv file to match the quality of a quicktime file?

    - here's a 400kbps flash video
    http://gelconference.com/mov/cc-flash-400kbps.html
    - here's the same footage at a *lower* bitrate, 391kbps, in
    quicktime
    http://gelconference.com/mov/cc.mov
    - QUESTION: why is the quicktime so much better-looking than
    the flash?
    what settings should i be using in flash to convert a dv file
    to an flv file?
    i prefer to show the footage in a flash player because it is
    cross platform.
    i appreciate any advice anyone has!

    Just thought i'd let you know, your links are broken so its
    hard to give you any advice. Depending on the pixel size of the
    movie, your data rate might be too low. The bigger pixel size of
    the file the higher data rate is needed to keep details clear and
    pixelation down.
    A good middle of the road data rate i've found is around
    1500kbps. If you are hosting the file, just make sure to set the
    buffer time to 3-4 seconds, to allow the users internet connection
    to keep ahead.

  • How to read the source file and copy the entire content to the target Database field

    Hi All,
    PI system extracts the actual business content from the incoming attachment file and copy the entire format to the target Database field which is a blob data type field.
    Sender Adapter: SOAP
    Receiver Adapter: JDBC
    JDBC Structure
    Can we achived the above requirement by using UDF with out Java Mapping?
    Thanks,
    Mahi.

    Ok, in this case yo can use the conten converion of the file adapter. Therefore you first need to create a Datatype in ESR with the required structure
    Then in your file adapter you need to use this datatype and its required fields:
    The Datatype then can be used as usual within you mapping.
    regards
    Christian

  • Problem with the log file path on the Data Logging Control Veristand

    Hello everyone,
    My problem is that I use a computer as a gateway on the network. It is connected to PXI in Real Time. I have another computer connected to the gateway to read the given PXI. I am unable to record on my local hard drive using the Data Logging Control VeriStand on the second computer. However, it can save me on the hard disk on the network. Moreover, I have no problem to record if the computer is a gateway.
    Regards,
    Kamal Bouamran

    For simplicity, let's call the computer running Veristand Computer A and the gateway computer Computer B.
    So, just to clarify, you're running the Veristand workspace on Computer A, which is connected to your network and the RT PXI (on which the system definition file is deployed) through a gateway, Computer B. With this setup, you can't use a data logging control to save a file to Computer A's hard drive. However, you are (from the workspace running on Computer A) able to save a file to Computer B's disk or to another drive elsewhere on your network. Is that all correct?
    What happens when you try to configure the control to log to computer A's disk? Do you get an error (and if so, what error)? Does the file path default to a different location?
    Also, what version of Veristand are you using? What version of Windows are you PCs running?
    Regards,

Maybe you are looking for