To display the list of File Name in a report region from a Directory

Hello All,
Can any one guide me in displaying the list of file name from a file system directory in a report region with link?
On click of the link it should display the open/save dialog box.
I will appreciate the early solution. (It is bit urgent)
Thanks,
Shyam

A quick, "dirty solution would be to have a cron job (I am assuming you are on a UNIX-based system) that populates a file periodically with the names of files in a directory/directories. Then have an external table that points to that file. You can then create an Apex report that lists the contents of the external table.
1) crontab job:
ls -1 /source_dir/* > /destination_dir/file.list
2) create external table:
CREATE DIRECTORY filedir AS ' destination_dir ';
GRANT READ ON DIRECTORY xfer_files TO public;
CREATE TABLE file_list_ext (file_names VARHCAR2(100))
ORGANIZATION EXTERNAL
TYPE oracle_loader
DEFAULT DIRECTORY files_dir
ACCESS PARAMETERS
records delimited by newline
fields terminated by ','
missing field values are null
(file_name)
LOCATION ('file.list')
REJECT LIMIT UNLIMITED;
3) create APEX report on table: file_list_ext
Hope this helps.

Similar Messages

  • To display the selection screen variant name in WAD report output.

    Hello experts,
    I have a requirement which is to display the selection screen variant description in the output of the WAD report.
    I managed halfway, by using the object "Information field", which displays all the values which are selected by the variant.
    Example:I have created a cost center report created using WAD, since I need some graphical displays..
    In the selection screen, I have the characteristic "cost center" as input field. I have created a variant " GM - IT" which will include few cost centers managed by GM. In the output, I want the dispaly to be "Cost center - GM IT". Currently it displays "Cost Center - a,b,c,d" as the values a,b,c,d are the values from the variant name "GM-IT"
    Please let me know if this required any java script. I am not familiar with java / html codes and any help would be much appreciated (and rewarded)
    Thanks in advance
    KS

    Hi,
    Try this.
    If you want to include your variables in your WAD means you have to choose "Force Variable Screen" option to be in enabled condition.
    TO enable this,in WAD select your Template(New Template1) click the WEBITEM , it'll shows all generic properties , here you can enable this "Force variable screen"
    Save and execute your WAD now you can get your variable screen.
    Thanks,
    JituK

  • Getting the Finder to display your list of files

    Hi all,
    The program I am contemplating would create a list of files that may be in several different folders. I'd like to present that list of files to the user in a format similar to the Finder's search results, letting the user move, copy or delete the files. Is there a way to tell the finder to display a list of files? I'd rather not re-invent the wheel by making a Finder-like interface since the Finder does what I want. I just need to tell it the set of files I want it to act on. I could make a temporary folder and fill it with aliases, but that seems messy. The Finder search results window is much cleaner and has the nifty expanding folder path graphic at the bottom. I've dug around some for an Applescript means of doing this and for Finder Plug-ins.
    If that's possible, is there a way to get the Finder to tell me which file is selected in any particular Finder window?
    Thanks,

    <%
         File fParent=new File(getServletContext().getRealPath("/~tolmank/hsql"));
         File[] myDBFiles=fParent.listFiles();
         String name="";
         String fSize="";
         String lastM="";
         %>
    <table width="50%" border="0">
    <tr bordercolor="#000000" bgcolor="#CCCCCC">
    <td width="36%" align="center">FILE</td>
    <td width="30%" align="center">SIZE(kb)</td>
    <td width="34%" align="center">LAST MODIFIED </td>
    </tr>
    <%
         for(int i=0;i<myDBFiles.length;i++){
              name=myDBFiles.getName();
              fSize=(myDBFiles[i].length()/1024)+"kb";
              SimpleDateFormat sdf=new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss Z" );
              Date lastD=new Date(myDBFiles[i].lastModified());
              lastM= sdf.format(lastD);
    %>
              <tr>
                   <td align="center"><%=name%></td>
                   <td align="center"><%=fSize%></td>
                   <td align="center"><%=lastM%></td>
              </tr>
    <%
    %>
    </table>

  • How can we display the list of Report Names in Dashboard Prompt?

    How can we display the list of Report Names in Dashboard Prompt?

    Hi,
    No its not possible to display list of reports in dashboard prompts.
    Can do this using SQl results in prompt(we write query checking out report names manualy),but its not easy thing if you are having many report names to be displayed.
    Assign points and close your threads if answered.
    Refer : http://forums.oracle.com/forums/ann.jspa?annID=939
    Regards,
    Srikanth

  • Get the ipad to display my photos in file name sequence

    How can I get the ipad to display my photos in file name sequence instead of by time/date stamp? I want to display them in a particular sequence controlled by the filename I gave them. 

    Hey Tex,
    Good idea.  I've found a question that indicates that the ipad sorts by name (https://discussions.apple.com/message/9116248#9116248).  Mine are all sorted by date/time.  How did they do that?
    The app you suggested looks promising, but it sounds like i have to manually rearrange my pictures, and since i have hundreds in each folder, this would be tedious.  Is there an app that will allow me to display them by filename w/o me having to rearrange them myself??
    Thanks.
    WSC

  • How to Sort music on play list by FILE NAME?

    How to Sort music on play list by FILE NAME?

    iTunes doesn't display the filename or filepath as a column so you can't sort on it. I could write a script to copy the filepath into the Sort Name field so that sorting by name would sort by filepath. Would that help? In normal circumstances however filepath order would be the same as Album by Artist, so I'm not sure what you would gain. Perhaps there is another way to approach whatever problem you think sorting by filename would solve.
    tt2

  • Install iTunes 10.4.1 install error - The Folder Path "File Name" contains an invalid character

    Upgraded computer from XP Prof 32-Bit to Windows 7 Ultimate 64-Bit (Upgrade package, performed Custom Install).
    Attempt to install iTunes 10.4.1 for 64-Bit.  Receiving the following error/problem:
    The Folder Path "File Name on my external drive" contains an invalid character
    I click ok and then get this:
    The Installer encountered errors before iTunes could be configured.  Errors occurred during installation.  Your system could not be modified,  Please run the installer again, or click Finish to exit.
    Any fixes for this?

    Sorry, one of us is not managing to be clear enough.
    Does the message read The Folder Path "File Name on my external drive" contains an invalid character or perhaps The Folder Path "<some path name here>" contains an invalid character?
    If so, then the problem might be just what it says it is with the path name in question... Either way if you list the path given in the error message in a reply to this thread it might provide a clue for anyone tying to help with the problem.
    You could try downloading the installer to C:\iTunesSetup.exe in case that helps.
    tt2

  • What is the list of file prefixes that make a file appear first in the finder?

    Hi!
    I was just curious :
    What is the list of file prefixes that make a file appear first in the finder?
    For example, files and folders whose names start with "A" will appear before files whose names start with "B",
    but what about a list of characters for files and folders before the letter "A"?
    I'm doing some file organisation, and I need certain things to appear at the top of the list.
    I have noticed that the character-prefixes "0" and "(" seem to make things appear before "A"
    I would like a complete list if there is one available.
    Thank you!

    Pretty much any number or a space character. Punctuation does too, in theory, but I'd advise to limit it to hyphens and underscores. Periods are OK in the middle of file names but you won't be able to start a file name with one at the Finder level since that would actually hide the file.
    Matt

  • Local node not included in the list of host names for grid installation

    I'm attempting to install clusterware on Solaris 11 on 2 nodes. I've tried tweaking the /etc/hosts file in a few different ways by including the fully-qualified name and without it for the localhost, but it still gives me this error every time. The runcluvfy.sh script doesn't run on Solaris 11. Does anyone know how to get around this problem?
    I've tried this using the silent install and with OUI, but got the same error both ways. This is the format of the node names:
    oracle.install.crs.config.clusterNodes=myLocalNode:myLocalNode-vip1,myOtherNode:myOtherNode-vip2
    [FATAL] [INS-40907] Local node not included in the list of host names for grid installation.
    CAUSE: The local node (the node where you are running the installer) was missing from the list of host names you provided.
    ACTION: Include the local node in the list of host names for grid installation.
    Edited by: 982828 on Jan 18, 2013 1:18 PM

    Hi,
    what Oracle Version are you trying to install?
    Best to directly start with 11.2.0.3 and look in MOS for certification, hints requirements.
    Regards
    Sebastian

  • How to get list of file names from a directory?

    How to get list of file names from a directory?
    Please help

    In addition, this:
    String filename = files;Should be this:
    String filename = files;
    That's just because he didn't use the "code" tags, so [ i ] made everything following it become italicized.                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to display korean text in file name

    Hi, I want to know how to make my system recognize and display Korean text in file names and such. My mp3 files are all a bunch of gibberish and they display that way in the itunes as well; the title, artist, and everything else.
    How can I fix this?

    Thanks. I tried that but the application wouldn't save any of the files for some reason.
    But it made me look for something else. In iTunes, I selected the song and right clicked, selected Convert ID3 Tags-->Reverse Unicode. Then it went to Chinese I think. I did the same thing again and it finally went to Korean.

  • Unix command to make list of file name

    Hi Gurus,
    I have seen post how to process multiple file from johngoodwin.blogspot.com.
    But what is the equlivalent command in unix to list all file names.
    I want one text file will contain all text file name and another text file will contain all csv filenames.
    Need some suggestion.Please help.
    Thanks in advance.

    Hi please follow below steps.
    vi yourfilename.sh
    then in edit mode put your command
    then save it by pressing esc : q (escape colon q)
    Now your file will be there. just run that script file in OS Command.But that file should be accessible or else give the full path for that script file.
    Thanks

  • Shrink the List of File Types in the Save As List

    How to I simplify the list of file types in the Save-As file type list? I use less than six file types. I have no need for most of these.
    It would be nice to have my top 5 and then the ability to go off-menu if needed for others.
    Thanks,
    Drew

    I was able to reduce the list of file types by changing some file extensions. In the following folder
    C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\Required\Plug-Ins\File Formats
    I inserted a tilda (~) into the file extension for these files:
    Cineon.~8bi
    Dicom.~8bi
    JPEG2000.~8bi
    PCX.~8bi
    Pixar.~8bi
    Radiance.~8bi
    U3D.~8bi
    Adobe Photoshop CC has "File Formats" in 4 different places! Two each for the x86 and 64 bit versions.
    Since I don't use the x86 version very much, there was no great desire to mess with those two folders.
    I'd would also like to get rid of
    JPEG Stereo (*.JPS)
    Multi-Picture Format (*.MPO)
    Photoshop Raw (*.RAW)
    Portable Bit Map (*.PBM, *.PGM, *.PPM...)
    I see "Camera Raw.8bi" in
    C:\Program Files\Common Files\Adobe\Plug-Ins\CC\File Formats
    but renaming it didn't help.
    For others who want to do this, and are concerned, just make a note of the file extensions you are changing so you know how to return to the way things were if you ever need to save as a file type that has been removed from your list.
    You must relaunch Photoshop after making any file name changes to see the effects.
    Any ideas on how to get rid of 4 more file types from my list?

  • Where is the list of files that the migration assistant was unable to copy located?

    The Migration Assistant successfully finished transferring most of my information between my old MBP and my new rMBP, even thought the "less than a minute remaining" actually took several hours, even using Thunderbolt cables.
    At the end of the migration, the Migration Assistant displayed a message "not all of your files could be transferred".
    Where is the log containing the list of files that couldn't be transferred?
    The only system log entries relating to the migrations system are of the "2/27/15 9:17:14.000 AM kernel[0]: Process systemmigrationd [546] disabling system-wide CPU Throttling" variety.

    >>  Once I know what those numbers represent
    I would suspect--though I don't know for certain--that the hyphenation-marking digits work as in other UNIX programs.  Here are two leads:
    http://lists.gnu.org/archive/html/groff/2001-03/msg00026.html
    http://www.helsinki.fi/~tapirine/publications/Pirinen-cla-2010.tex
    Search them for "odd" or "even" to get started.  Good luck.

  • Getting the list of  files in a directory by their last modified date

    Dear friends,
    I want to get the list of files in a directory sorted by their last modified date.
    By default the file.list() or listFiles() return files sorted by their name in ascending order.
    Please give me your suggestions.
    Thanks in advance,
    James.

    Thanks friend,
    I myself got the answer
    here is my code:
    public File[] getSortedFileList(File dir){
    File[] originalList = dir.listFiles();
    int numberOfFiles = originalList.length;
    File[] sortedList = new File[numberOfFiles];
    long[] lastModified = new long[numberOfFiles];
    for(int i = 0; i < numberOfFiles; i++){
    lastModified[i] = originalList.lastModified();
    Arrays.sort(lastModified);
    for(int i = 0; i < numberOfFiles; i++){
    for(int k = 0; k < numberOfFiles; k++){
    if(originalList[k].lastModified() == lastModified[i])
    sortedList[i] = originalList[k];
    System.out.println("The sorted file list is:" + sortedList[i]);
    return sortedList;

Maybe you are looking for