Open a url and view the files with it's timestamp

Hi guys,
I need to create a flow service in SAP BC to connect to a server by it's url and display it's files with it's timestamps.
I have never done this b4, and usinf SAP BC makes it harder for me.. Mostly I need to know how to access the server and view the files with their timestamp.
Any guidance for me will be much appreciated.
Thank u.

Yes,
It's like this. I will connect to an FTP server. Then I need to view the files it the server or folder i specify with their respective timestamps.
I am using SAP BC and it's webMethods to create the JAVA flow service. I am only now familiarising myself with SAP BC.
Moreover I have never done a coding to access a server and list it's file. I can do it o view in a local directory using JFrame aand stuff... But SAP BC doesn't support those..
So If u can give me some guidelines to follow.. i would appreciate it.
Here's what i have come up with so far
public static final void ReadFileServer( IData pipeline ) throws ServiceException
//define input variables
     IDataCursor idcPipeline = pipeline.getCursor();
     String path = null;
     path = (String)idcPipeline.getValue();
     // Check if url is in the pipeline
     if (idcPipeline.first("path"))
          File dir = new File(path);
          String filesFound[]=dir.list();
          long [] age;
          age = new long[filesFound.length];
          for (int i = 0; i < filesFound.length; i++)
               age = new File(filesFound).lastModified();
          String temp = "";
          for (int i = 0; i < age.length - 1; i++)
               for(int k = i+1; k < age.length ; k++)
                    if (age > age [k])
                    temp = filesFound;
                    filesFound = filesFound[k];
                    filesFound[k] = temp;
          for (int i = 0; i < filesFound.length; i++)
          //get url out of the pipeline
          path = (String)idcPipeline.getValue();
          //insert the FILES into the pipeline
          idcPipeline.insertAfter("filesFound", filesFound);
          idcPipeline.insertAfter("age", age);
     //If it is not in the pipeline ERROR
     else
     age = "False";
     idcPipeline.insertAfter("path", path);
     //insert the successFlag into the pipeline
     idcPipeline.insertAfter("age", age);
     //Always destroy cursors that you created
     idcPipeline.destroy();
return;
}

Similar Messages

  • How can i convert 2k resolution dpx files of a movie to DCP and will they be able to open the harddisk and view the files?

    how can i convert 2k resolution dpx files of a movie to DCP and will they be able to open the harddisk and view the files?

    AFAIK, this is beyond the capabilities of FCPX/Compressor. This company makes a plug-in, which I have to say I have no experience with. Here is a thread that may give you some other ideas. Good luck.
    Russ

  • How to open an URL and close the URL window, using adobe javascript

    Hi,
      Is it possible to open an URL and close the URL back again(without allowing the user to perform any other operation)? I was able to acheive the opening of the URL, using the app.launchURL("address". true); - But here it lauches in new window, and how do i close the window using the javascript. Is it possible?
    Thanks.

    Hi all
    In addition to what Bobby W - Adobe TS added, you might find
    the following useful as a bypass or workaround to the pesky prompt.
    var pw=window.parent;pw.opener=window.self;window.open("
    http://www.adobe.com");
    pw.close();
    I think this will only work for IE browsers. Actually, I
    think the whole window.close() only works for IE, but could be
    wrong about that.
    Cheers... Rick

  • How to do search with multiple texts across documents and rename the file with found text?

    Hello:
    I'm trying to do the batch search across the multiple documents and rename the file (or save as) after the found word?
    In example:
    I have many unique texts and would want to search across the multiple documents.
    If a document is found with that unique text then, the document is either renamed or save as with that unique text. 
    So, I could know what unique text that file holds.
    How do I do that?
    Let me know.
    Thanks

    Welcome to the forum!
    When you want to post a block of code, you can enclose it with the mark ups { code }
    That is the key word code surrounded by curly brackets, but without the spaces
    You seem to be running a very old (and unsupported release of the database)
    7.3 has not been a current release for about 10 years.
    It's probably been that long since I've used this technique, but i think it should work.
    You should consider welcoming your system to the 21st century by upgrading to a supported release ;-)
    If you used split to chop up your export file, use cat or dd to reassemble it.
    So, something like this:
    mknod bk.dmp p
    cat xaa xab xac xad xae xaf xag xah xai > bk.dmp &
    imp SYSTEM/$PASSWD parfile=imp_bk.parfile
    rm bk.dmp
    $ cat imp_bk.parfile
    file=bk.dmp
    log=imp.log
    full=y
    buffer=1048576
    ignore=y
    commit=y let us know if still have problems.
    Good Luck!

  • When installing iTunes and extracting the files with Winrar I get corrupted files and cannot complete the download why is this?

    When I dont extract the files and go straight to the installer it says that the download was inturrupted and to try again and it wont work any of the times I try.

    Try clearing your browser's cache before downloading again, or try a different browser, or download the installer on a different machine, check it with Winrar or 7-Zip, then put it on a memory stick to take back to your own computer.
    You may find the direct download links and other information in Troubleshooting issues with iTunes for Windows updates useful.
    tt2

  • Idoc- File scenario: Read a data field in IDOC and name the file with it

    Hi All,
    I am configuring an IDOC to File scenario.
    I have a requirement where I need to read one of the IDOC data field and use that as the name of the File.
    E.g: If the IDOC data field-1 = '123456', then I need to name the output file as '123456'.
    Is it possible to do this. Appreciate your help on same.
    Thanks
    Shirin

    Try this code..
    desired field from IDoc will be input parameter to UDF
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    conf.put(key,a);  // a is input parameter
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName; 
    Also, check Adapter specific message attributes in file adapter, check  filename

  • Can numbers open and view excel files with filters applied?

    Hi - I don't currently have iWork but was considering purchasing it.  I frequently get sent excel files from work (which I view on my iPad 3) that have got filters in the column headings applied and I need to be able to change the dropdown values in the headings to see different cuts of the data in the spreadsheet.  Does anyone know if the current version of Numbers allows users to do this?

    Numbers has a row filtering feature, but it doesn't involve the Header or any dropdown menus. In Numbers row filtering is controlled from the Reorganize Panel which is activated from the Toolbar. Given this, I don't think an imported Excel document will have the filtering feature active. Hopefully someone who uses both Execl and Numbers will weigh in.
    Jerry

  • Using 8.0.1, Hotmail, Can open my account and view the emails but can't open an email or delete one. Can in IE

    Have recently upgraded the hotmail, but it has worked for ~2 weeks without problem. Also recently updated an Epson Stylus NX400 scanner driver for XP, but I think this problem was there just before. Recently installed Chrome and Safari (Safari is supposed to be better than most at delivering error messages, but I didn't receive any help from that). IE seems to work with Hotmail as expected.Chrome is slow and seems to require double-clicks where a single is expected, but it displays the email content. Safari also works as expected.

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • Viewing the file extension in the tphoto humbnails preview

    The file names have the file extensions cut off. Is it possible to view the file with the extension. I need to know if I'm looking at a .jpg or a .nef file (raw file) I tried the preferences and there are choices but none show the extension. I did notice that if your over an image a pop up window appears that shows the entire file name with extension....but I need it on the photo thumbnail. Thanks!

    If I had more time I would give you the short answer but you can find out how to do this and much more in an article that I wrote here:
    http://www.rwboyer.com/RBDesign/Blog/Entries/2008/8/11_Aperture_and_MetadataDisplay.html
    RB

  • How can I make waveform graph and/or excel file with two different dynamic DBL values?

    As the question describes, I have two dbl sources from a load cell and linear actuator (from firgelli). I want to make a load/displacement curve from the force readings from the load cell and the displacement readings from the linear actuator. The load cell outputs an analog signal that can be acquired by a DAQ and the actuator comes in with a board and VI program to control the speed and measure the displacement of the actuator to a sample rate of my choosing. Is there a way that I can make a VI where it continues to collect data and construct the graph I'm looking for?
    Solved!
    Go to Solution.

    A couple points about your application:
    1.  Synchronization.  Since you're ultimate goal is a stress/strain curve, it is vital that your force and displacement data be synchronized appropriately.  If your sampling is beyond a few times a second, this is not really possible without some form of hardware synchronization via either a trigger and/or sample clock.  Two NI DAQ boards can be synchronized this way easily, but it seems you're using 3rd party hardware for one of these processes.  Would need to know more about that board to know what options you have.  You could specify what your resolution is in distance, and how fast the article will be moving, to get an idea of how fast to acquire, and how well you'll need to synchronize the data.  Another option, since it appears each data stream will be sampled on a hardware-timed sample clock, they will be offset in time, but not skewed during the acquisition.  You may be able to identify a feature in the data set common to each and use that to remove the timing offset after the process is completed.
    2.  Display.  To display data during the acquisition process, I usually recommend at least one display that plots vs. time.  Much easier to spot irregularities with the acquisition process that way.  However, if you'd like to also plot force vs. displacement, you can use an XY Graph to plot parametrically. For Example, in your case you would use the Displacement data as the X coordinates, and the Force data as the Y coordinates.
    3.  Saving data to file.  I would recommend using the Save to Spreadsheet File.vi (File IO pallette) to save your data.  If you use a comma as the delimiter, and save the file with a *.csv extension, you will have a file that is easily read into excel.  The standard tab-delimited spreadsheet file is also fine, it will just require an extra step to read it into excel to specify to excel what the delimiter is.
    4.  Batch vs. Real-Time Recording (Data File).  If your process is short (< 30 sec) you may be better off acquiring the data, Storing it locally to the VI (Array - usually maintained in a shift register), and then writing the file with a header (acquisition parameters, test article information, data column headers) and the data all at once in batch mode to the file after the process is finished.  If, however, it is longer than that you would be better off starting a data file with a header and appending the data to the file as you go, so that if something happens during your test, you at least have data up to that point.
    Hope this Helps,
    Kurt

  • I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    That is because you don't have a web server configured and running to serve the html page. In order to see the page in a browser you need to access it using a url similar to http://localhost/~yourUserName if you are serving the page from your user account.
    Prior to Mountain Lion you could go into web sharing and turn on the web server. With Mountain Lion there is no option, other than using terminal, to turn on the web server. The web sharing menu item has been removed in Mountain Lion. Apache is still on your computer but it will take a little searching these forums or the Internet to find how to turn it on.
    If you want a graphic user interface to turn on/off the Apache server you could download and install a server application like xampp, http://www.apachefriends.org/en/xampp.html. I use this and it works well.

  • I have photoshop C6 on my MAC Pro and want to install it on my new MAC desktop.  I sent the files with AirDrop but photoshop wont open I get an error message that it cant find the Library.  Any thoughts?

    I have photoshop C6 on my MAC Pro and want to install it on my new MAC desktop.  I sent the files with AirDrop but photoshop wont open I get an error message that it cant find the Library.  Any thoughts?

    download the installation files and install using your serial number or adobe id,
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5.5 (win), 5.5 (mac) | 5.4 (win), 5.4 (mac) | 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • I get a dialogue box asking "What should Firefox do with this file" Options open with or save file. My wife selected save file and now it only opens note pad and displays the text of the file to be saved. OK in windows Internet Explorer.

    I get a dialogue box asking "What should Firefox do with this file" Options open with or save file. My wife selected save file and now it only opens note pad and displays the text of the file to be saved. OK in windows Internet Explorer.

    P.S. Site is http://www.coldwatercreek.com

  • How do I download/open documents if my iPad isn't giving me the option to "open with---"? (It's only allowing me to view the files/power points)

    How do I download/open documents if my iPad isn't giving me the option to "open with---"? (It's only allowing me to view the files/power points)

    Do you have an app to open it installed? Keynote. powerpoint

  • Firefox upon opening an image in a new tab, centers the image from top and bottom and surrounds the image with a grey frame. Just started having the problem today, searched Google to no avail.

    Firefox upon opening an image in a new tab, centers the image from top and bottom and surrounds the image with a grey frame. Just started having the problem today, searched Google to no avail.

    Oh wow, looks like a new feature.
    The "page" links in a stylesheet with the address "resource://gre/res/TopLevelImageDocument.css". If you remove that reference, then the image displays in the old style.
    '''''Edit: Please skip the rest of this post and check out the next one.'''''
    There might be a more elegant solution than that, but you could use a bookmarklet to strip out that link when you want to view the page in its old style. A bookmarklet is a snippet of JavaScript you save on the Bookmarks toolbar for quick access.
    First, copy the following code to the clipboard (it's all one long line):
    <br>javascript:var ssheet=document.querySelector('link[href="resource://gre/res/TopLevelImageDocument.css"]'); if(ssheet)ssheet.parentNode.removeChild(ssheet); void 0;
    Next, if you are not displaying the Bookmarks Toolbar, use View > Toolbars > Bookmarks Toolbar to display it. (If you aren't using the classic Menu bar, press Alt+v to call up the old View menu. Right-clicking the gray area just below the page address also allows you to display the Bookmarks Toolbar.)
    Right-click on the Bookmarks Toolbar (or Mac equivalent of right-click!) and choose New Bookmark.
    Paste the code into the Location box (the second box).
    Then type a useful name in the Name box (e.g., Oldstyle Picture) and click Add.
    Now, when you want to tweak the image display, click the button to run the script.
    Manual clicking is a hassle, so it might make sense to look into other solutions. (Greasemonkey didn't seem to work; I think it might not run on .jpg files.)

Maybe you are looking for

  • I have an iPhone 4S I can not connect to iTunes to update apps?

    I have an iPhone 4S I can not connect to iTunes to update apps

  • Data Recovery from Windows Back-up

    So someone kicked down our front door and stole our computers.  Now I am trying to restore my files from a Windows back-up.  I have a WD My Book Essential drive and backed-up the C:// drive on 6/30/2014.  The problem is that when I do a restore, none

  • Auto start video on iPad

    Does edge 2014 have an auto start feature that works on the iPad? I have it working perfectly on the desktop and laptop. I do not want to show video controls either.

  • Making a photo book from multiple albums

    Hello. I recently returned from week long trip and have created photo albums for each individual day (9 albums) I now want to bring them all into 1 photo book but cannot seem to figure out how to do it. Do I have to just copy everything into one huge

  • Downloading maps from media card onto blackberry

    Could I install maps from a media card onto my Blackberry if I download these from my computer?