Linking to file in site folder using recordset in dynamic table

I have a dynamic, repeating table that lists recordsets from a database.  I would like to add a column to the table that contains a link to a file in a folder contained on the site.  The name of the file used will be the same as one of the recordset value, 'cas_num' (all within the same row of the dynamic table).
My code so far is:
<tr>
          <td nowrap="nowrap"><?php echo $row_Recordset1['id']; ?></td>
          <td width="160" nowrap="NOWRAP"><?php echo $row_Recordset1['cas_num']; ?></td>
          <td nowrap="NOWRAP"><?php echo $row_Recordset1['chem_name']; ?></td>
          <td nowrap="nowrap"><?php echo $row_Recordset1['m_formula']; ?></td>
          <td nowrap="NOWRAP"><?php echo $row_Recordset1['room']; ?></td>
          <td nowrap="NOWRAP"><?php echo $row_Recordset1['location']; ?></td>
          <td nowrap="nowrap"><?php echo $row_Recordset1['inst']; ?></td>
          <td nowrap="nowrap"><?php echo $row_Recordset1['amount']; ?></td>
          <td nowrap="nowrap"><?php echo $row_Recordset1['a_type']; ?></td>
          <td nowrap="nowrap"><?php echo $row_Recordset1['supplier']; ?></td>
          <td nowrap="nowrap"><?php echo $row_Recordset1['pt_num']; ?></td>
          <td nowrap="nowrap"><?php echo '<a href="/docs/MSDS/'$row_Recordset1['cas_num']; ?>'MSDS</a>;</td>
          </tr>
Any help with this how to link to the file would greatly be appreciated!
thanks,
chemsafety.

If you can mount the server on your desktop and have access via the Finder to the file, then you can select the text you'll use for the link and in the link section of the Inspector window select the option for A file. Then in the navigation window, go to the server on the desktop and from there to the file on the server. That's one way to do it.
The other is to figure out the URL for a file on the server. I know how to do it for the iDisk. It would be something like this for another server:
http://server name/your account's folder/the folder containing the file.
You'll have to determine the path to the file. As I said earlier if you can mount the server on the desktop that would let you determine the path or use the first method.
Do you Twango?

Similar Messages

  • How to find number of files in a folder using pl/sql

    please someone guide as to how to find number of files in a folder using pl/sql
    Regards

    The Java option works well.
    -- results table that will contain a file list result
    create global temporary table directory_list
            directory       varchar2(1000),
            filename        varchar2(1000)
    on commit preserve rows
    -- allowing public access to this temp table
    grant select, update, insert, delete on directory_list to public;
    create or replace public synonym directory_list for directory_list;
    -- creating the java proc that does the file listing
    create or replace and compile java source named "ListFiles" as
    import java.io.*;
    import java.sql.*;
    public class ListFiles
            public static void getList(String directory, String filter)
            throws SQLException
                    File path = new File( directory );
                    final String ExpressionFilter =  filter;
                    FilenameFilter fileFilter = new FilenameFilter() {
                            public boolean accept(File dir, String name) {
                                    if(name.equalsIgnoreCase(ExpressionFilter))
                                            return true;
                                    if(name.matches("." + ExpressionFilter))
                                            return true;
                                    return false;
                    String[] list = path.list(fileFilter);
                    String element;
                    for(int i = 0; i < list.length; i++)
                            element = list;
    #sql {
    insert
    into directory_list
    ( directory, filename )
    values
    ( :directory, :element )
    -- creating the PL/SQL wrapper for the java proc
    create or replace procedure ListFiles( cDirectory in varchar2, cFilter in varchar2 )
    as language java
    name 'ListFiles.getList( java.lang.String, java.lang.String )';
    -- punching a hole in the Java VM that allows access to the server's file
    -- systems from inside the Oracle JVM (these also allows executing command
    -- line and external programs)
    -- NOTE: this hole MUST be secured using proper Oracle security (e.g. AUTHID
    -- DEFINER PL/SQL code that is trusted)
    declare
    SCHEMA varchar2(30) := USER;
    begin
    dbms_java.grant_permission(
    SCHEMA,
    'SYS:java.io.FilePermission',
    '<<ALL FILES>>',
    'execute, read, write, delete'
    dbms_java.grant_permission(
    SCHEMA,
    'SYS:java.lang.RuntimePermission',
    'writeFileDescriptor',
    dbms_java.grant_permission(
    SCHEMA,
    'SYS:java.lang.RuntimePermission',
    'readFileDescriptor',
    commit;
    end;
    To use:
    SQL> exec ListFiles('/tmp', '*.log' );
    PL/SQL procedure successfully completed.
    SQL> select * from directory_list;
    DIRECTORY FILENAME
    /tmp X11_newfonts.log
    /tmp ipv6agt.crashlog
    /tmp dtappint.log
    /tmp Core.sd-log
    /tmp core_intg.sd-log
    /tmp da.sd-log
    /tmp dhcpclient.log
    /tmp oracle8.sd-log
    /tmp cc.sd-log
    /tmp oms.log
    /tmp OmniBack.sd-log
    /tmp DPISInstall.sd-log
    12 rows selected.
    SQL>

  • I need to know how to link 2 files in 1 folder

    Can anyone tell me how to link 2 files in one folder?  They are currently in the same folder but I need to link them.
    Thank you!

    Now we're getting somewhere.
    Unfortunately, I don't know Word or Excel very well. It might be better to find assistance over in the Microsoft Word for Mac Forums:
    http://office.microsoft.com/en-us/mac-word-help/learning-roadmap-for-word-for-ma c-2011-HA103528093.aspx
    http://office.microsoft.com/en-us/mac-word-help/results.aspx?qu=Link+to+excel&ex =1&origin=HA103528093

  • Trying to ... Restore files from MINWINPC folder using HP Recovery Manager

    Please help me ... I follow all the steps (pasted below) to restore my PERSONAL files from the MINWINPC folder copied to my desktop computer (new hard drive) from an external hard drive, however it then asks me to insert disc # 171338041 !!! I don't know what disc this is or what it wants!!!! it is very frustrating. Consequently it does nothing other than ask for this disc! even after 2 hours of allowing it to scan for the files  ! Reading various information sites/forums it would seem that it is asking me to insert the last disc of the series, however the backup files were all placed onto an external USB drive. and the files are in the MINWINPC folder. It appears to me that the HP Recovery Manager is not reading from the correct place! The files were backed up from my HP compaq which originally ran Widows Vista and was later ugraded to Window 7. The MINWINPC folder contains 2 files namely : Backup.1.exe and Backup.2.fbw I should be grateful for any help... Please ---- Instructions: Restoring backup files using HP Recovery ManagerTo restore backup files that you created using HP Recovery Manager, follow the steps below.Open the USB device to which you wrote your backup file, such as your USB flash drive, and then copy the MINWINPC folder to a convenient location on your computer, such as your desktop.Locate and open the MINWINPC folder on your computer, and then double-click the executable file (.exe) that was created during the backup process.note:There may be more than one file, but only one will be an application (.exe) file. Other backup files created with HP Recovery Manager will have an .fbw extension.When the Recovery Manager File Restore Program opens, click Next.Select the types of files that you want to restore and then click Next.----  

    , Hello and thanks for posting on the HP support forums.  There is a way of doing a back up using a USB device but it has to be less than 32 GB.  If the data is any more than that then it will become corrupted. As well the back up came from a Vista system and the backup will be looking to load back onto the same OS.  By going to Windows 7 it will not find what it is looking for. You would have had to use another back up software for your data that could handle the amount and normally the best way is to plug in a USB hard drive and just drag and drop your files over. At this point you will not be able to recover your data the way you are trying. I hope this helps. Thanks again for posting and have a great day.

  • Can't save files to Last Folder Used

    I'm scanning items with a Kodak iQsmart3, running under Kodak's oXYgen 2.6.1 scan application. Late last week, the application suddenly stopped saving files to the last folder used. Now I have to re-select the destination folder for each scan.
    I have rebooted the computer several times, and have also re-installed the scan application, but nothing helps the problem. It seems now that the problem may be with OS 10.4.11. I've searched and searched for a solution within the OS, but can't find anything that helps.
    Does anyone have a suggestion on how to proceed? Is there a place where you can check to see if the saving options can be changed?

    Thanks for your suggestion. However, I did as you advised and still cannot save files to the last folder used, as I used to be able to do.
    This is the first time in the 2 1/2 years I've been using this system that I've had any trouble with it. When I opened Disk Utility, it showed me the size and type of three different drives, all identical in manufacture. The first holds the Operating system, and the other two are set up in a Raid Striped set. I selected Macintosh HD under the name of the first drive, since that's the name of the disk on my desktop, and ran the Repair Permissions function, moving the recentitems.plist file to the desktop and rebooting, as per your instructions. Was that the proper area to use or should I have selected the disk description above that?
    (Below is the disk information from the Disk Utility application)
    Disk Description : Hitachi HDS725050KLA360 Media Total Capacity : 465.8 GB (500,107,862,016 Bytes)
    Connection Bus : Serial ATA 2 Write Status : Read/Write
    Connection Type : Internal S.M.A.R.T. Status : Verified
    Connection ID : "Bay 1" Partition Scheme : GUID Partition Table
    (Below is the information on the Macintosh HD folder of that drive.)
    Mount Point : / Capacity : 465.4 GB (499,763,888,128 Bytes)
    Format : Mac OS Extended (Journaled) Available : 226.2 GB (242,855,989,248 Bytes)
    Owners Enabled : Yes Used : 239.3 GB (256,907,898,880 Bytes)
    Number of Folders : 133,296 Number of Files : 684,567

  • How to get latest added file from a folder using apple script

    Hi..
    I am trying to get a latest added file from a folder..and for this i have below script
    tell application "Finder"
        set latestFile to item 1 of (sort (get files of (path to downloads folder)) by creation date) as alias
        set fileName to latestFile's name
    end tell
    By using this i am not able to get latest file because for some files the creation date is some older date so is there any way to get latest file based on "Date Added" column of a folder.

    If you don't mind using GUI Scripting (you must enable access for assistive devices in the Accessibility System Preference pane), the following script should give you a reference to the last item added to any folder. Admittedly not the most elegant solution, but it works, at least under OS X 10.8.2.
    set theFolder to choose folder
    tell application "Finder"
        activate
        set theFolderWindow to container window of theFolder
        set alreadyOpen to exists theFolderWindow
        tell theFolderWindow
            open
            set theInitialView to current view
            set current view to icon view
        end tell
    end tell
    tell application "System Events" to tell process "Finder"
        -- Arrange by None:
        set theInitialArrangement to name of menu item 1 of menu 1 of menu item "Arrange By" of menu 1 of menu bar item "View" of menu bar 1 whose value of attribute "AXMenuItemMarkChar" is "✓"
        keystroke "0" using {control down, command down}
        -- Sort by Date Added:
        set theInitialSortingOrder to name of menu item 1 of menu 1 of menu item "Sort By" of menu 1 of menu bar item "View" of menu bar 1 whose value of attribute "AXMenuItemMarkChar" is "✓"
        keystroke "4" using {control down, option down, command down}
        -- Get the name of the last item:
        set theItemName to name of image 1 of UI element 1 of last scroll area of splitter group 1 of (window 1 whose subrole is "AXStandardWindow")
        -- Restore the initial settings:
        click menu item theInitialSortingOrder of menu 1 of menu item "Sort By" of menu 1 of menu bar item "View" of menu bar 1
        click menu item theInitialArrangement of menu 1 of menu item "Arrange By" of menu 1 of menu bar item "View" of menu bar 1
    end tell
    tell application "Finder"
        set current view of theFolderWindow to theInitialView -- restore the initial view
        if not alreadyOpen then close theFolderWindow
        set theLastItem to item theItemName of theFolder
    end tell
    theLastItem
    Message was edited by: Pierre L.

  • How to flip through multiple image files in a folder using Preview?

    On windows a default image viewing program similar to preview allows a user to press the arrow keys to flip through images within the same folder as the image file originally opened with a Preview-like application.
    How can a person filp through images in the same folder with a few keystrokes using Preview?
    thanks

    hmm...you mean there isn't a way to simply skim
    through images in a folder using an arrow or page-up
    key?? That's kind of disappointing...especially
    being forced to pre-select images...
    oceanbluesky,
    There's no reason you can't use Preview to do what you're trying to do. And there's no need to pre-select images.
    The trick is to open Preview first, and then choose Open from the File menu (or Command + O on the keyboard). When Preview's Open dialog window appears, navigate to the folder which contains your pictures. Highlight the entire folder and then press the Open button. Once the folder is open in Preview you should be able to use your arrow keys to flip through...
    Note: To avoid a storm of images from opening on your desktop, go to Preview > Preferences > Images and make sure that the "Open each image in its own window" radio button is not selected.
    Good luck!
    Andrew99
    iMac 1 GHz Flat Panel 15" PPC 768 MB RAM   Mac OS X (10.4.10)  

  • Trouble installing a *.msi file on a folder using Windows 7

    I'm having trouble installing a *.msi file created under Microsoft Visual Studio.Net 2005 on a Windows 7 machine.  The problem occurs when I attempt to provide a directory for installation, but the installation wizard always defaults to the C: root
    folder.  I can always move the created files and folders from the *.msi wizard to a directory of my choosing and run the tool
    successfully.  But, I'm confused has to why the *.msi wizard always defaults to the C: root.
    I have tried running the *.msi file in administrative mode using the various published methods but none of those methods are made available, in fact they are all disabled.  I.e. right click the *.msi file has a disabled "Run as Administrator"
    option.  The properties under the *.msi file to "Run As Administrator" is also disabled.  And running the *.msi file under msiexec as also proven
    unsuccessful.

    Hello Marco,
    From your description, this issue is related with the .msi file, i am afraid it is beyond the scope of our support, this current forum is used to discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization,
    Reflection. My suggestion is that you could post this feedback to its owner.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Zipping files in a folder using java.util.zip

    hi guys,
    does any body has the java code for
    zipping files in a folder
    hi guys,
    actually i want to zip no of files in a folder .the folder can also have sub folder
    and after zipping when i extract the files manually i should
    maintain the same folder structure
    does any body has the code
    please reply me soon its a bit urgent

    hi smeee
    i tried running ur code but its not working
    here the command
    java c:\abc\ zzz.zip
    its saying
    no files or directories even though there's the
    directory present
    what's the solution Hi,
    Oops that was because of the error check added at the last moment..
    Anyway, You need to use the following command to run it :
    java ZipUtility c:\abc c:\zzz.zip
    Please use the following corrected code:
         Class to zip file(s).
         Requires jdk1.3.1.
         To run use the following command:
         java ZipUtility <directory or file to be zipped> <name of zip file to be created>
         Please specify absolute path names as its parameters while running this program.
    import java.util.zip.*;
    import java.io.*;
    public class ZipUtility {
         ZipOutputStream cpZipOutputStream = null;
         String strSource = "";
         String strTarget = "";
         String strSubstring = "";
         public static void main(String args[]) {
              if(     args == null || args.length < 2) {
                   System.out.println("Usage: java ZipUtility <directory or file to be zipped> <name of zip file to be created>");
                   return;
              ZipUtility udZipUtility = new ZipUtility();
              udZipUtility.strSource = args[0];
              udZipUtility.strTarget = args[1];
              udZipUtility.zip();
         private void zip(){
                        try
                             File cpFile = new File (strSource);
                             if (!cpFile.isFile() && !cpFile.isDirectory() ) {
                                  System.out.println("\nSource file/directory Not Found!");
                                  return;
                             if  (cpFile.isDirectory()) {
                                  strSubstring = strSource;;
                             } else {
                                  strSubstring = "";
                             cpZipOutputStream = new ZipOutputStream(new FileOutputStream(strTarget));
                             cpZipOutputStream.setLevel(9);
                             zipFiles( cpFile);
                             cpZipOutputStream.finish();
                             cpZipOutputStream.close();
                             System.out.println("\n Finished creating zip file " + strTarget + " from source " + strSource);
                        }catch (Exception e){
                             e.printStackTrace();
         private void  zipFiles(File cpFile) {
                   if (cpFile.isDirectory()) {
                        File [] fList = cpFile.listFiles() ;
                        for (int i=0; i< fList.length; i++){
                             zipFiles(fList) ;
                   } else {
                        try {
                             String strAbsPath = cpFile.getAbsolutePath();
                             String strZipEntryName ="";
                             if (!strSubstring.equals("") ){
                                  strZipEntryName = strAbsPath.substring(strSource.length()+1, strAbsPath.length());
                             } else {
                                  strZipEntryName = cpFile.getName();
                             byte[] b = new byte[ (int)(cpFile.length()) ];
                             FileInputStream cpFileInputStream = new FileInputStream (cpFile) ;
                             int i = cpFileInputStream.read(b, 0, (int)cpFile.length());
                             ZipEntry cpZipEntry = new ZipEntry(strZipEntryName);
                             cpZipOutputStream.putNextEntry(cpZipEntry );
                             cpZipOutputStream.write(b, 0, (int)cpFile.length());
                             cpZipOutputStream.closeEntry() ;
                        } catch (Exception e) {
                             e.printStackTrace();

  • I am using Unix sites and they use links to files. If I use IE I can save target and it works. If I use save as in Firefox it only saves the link. I have res

    http://code.google.com/p/mkgmap-style-sheets/source/browse/#svn%2Ftrunk%2Fstyles%2Fworld
    Is the website. I am trying to download the files. Yes I can open and manually save them but the stock standard IE save target does not exist in Firefox and the Save Link only saves the link. The whole world has struck this problem so please do not say it works. It does not!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Ever thing works as it should in IE.

    On code.google.com, when I compare Fx22 and IE8, the links on that page both want to save the HTML and not the actual code. In both cases, I need to go to the HTML view then right-click and save the "View Raw file" link on the right side to get the actual code file.
    If you need to save a lot of files while browsing, perhaps a subversion client and/or subversion add-on would make it more efficient?

  • Link to files not sites

    I am preparing a flash presentation (movie) which will be
    contained on an autoboot CD. All the files will be contained in a
    folder. There are some items which are too big for me to fit into
    my presentation but i would like for the information to be
    available. I would like to add a linked button which woudl open a
    .pdf file that I would contain on the CD. What would script should
    i use and also how would I address the files on the CD. Do i have
    to add _root.folder.file.pdf or can i get a way with
    this.folder.file.pdf or neither of the two. Any help is
    appreciated.

    You can use the getURL() method with relative paths to the
    files. It doesn't always work like you might want (for instance if
    your Flash preso is full screen and you click the button, Acrobat
    may open behind the preso so the user thinks the button didn't
    work). I seem to remember that one of the FlashJester products may
    be helpful here but I haven't personally used them, so I can't
    speak to them but there are folks from FlashJester that hang out
    here so maybe they could give you some info.
    Cheers!

  • HT2488 Files into seperate folder using Automator

    Can I use Automator to put seperate files into seperate folder

    Sorry to hop into this post.
    I have an inverted need to this one.
    I subscribe to Fotolia's images.
    For some odd reason I have never been able to ascertain, they deliver the image in a folder labelled with the image number eg Fotolia_57922194
    Inside the folder is an Adobe Illustrator file labelled "contents.eps" with jpeg preview labelled "contents.jpg"
    All the files are labelled "contents". It plays havoc with layouts when you insert them all.
    I would like to create a smart folder with attached Automator workflow that batch works on Fotolia folders dropped onto it:
    1. Copies the folder name
    2. Renames the "contents.eps" inside the folder to for example Fotolia_57922194.eps
    3. Moves the renamed .eps out of the enclosing folder to inside the Smart folder
    4. Trashes the remaining folder with .jpg preview
    I really have no idea where to begin.
    Any wiser soul out there, can point me where to start?
    Thanks
    Peter

  • Apple why did you take the Sites folder with my website in it? Nobody helps!

    Since upgrading to Mavericks I lost my local website folder that used to be in the Sites folder!
    Error: Can't connect, check your info! Oh Apple why did you take it? "H E L P  P L E A S E!"

    Thank you Barney-15E
    I have no clue why this is or why I am getting this error in Mavericks. All I have is a local website folder in the Sites folder using Dreamweaver CS4 to update my files, working perfect on my other drive running 10.6.8 . Why I cant update and get the error above is the reason I am posting here. (and several other spots)
    You said:
    "First off, FTP is disabled in Mavericks, which is why you likely cannot FTP into your local Mac--why are you ftp'ing to the Mac you are working on?"
    You said:
    "Your Sites folder is in your Home folder. However, if you created it somewhere else, you'll have to figure that out."
    When I say my Sites folder is not in my Home folder you can bank on it. No I never changed any folders in there.
                                  Walter

  • Can you move the windows installer folder using junctions?

    I have been reading blogs and articles for quite some time now relating to the controversy between what many users see as wasted disk space for windows installer cache and Microsoft techies who claim that cleaning this folder can cause irreparable system
    damage.
    my question has anyone ever simply tried moving this folder to another drive and than linking it to the windows folder using a junction?? I have never tested this myself but in theory it should work as you could keep the folder on an external storage device
    which would be accessed only when installing or uninstalling a program. from experience the os doesn't generally know the difference between the actual folder and a junction point so the required directory structure for all intents and purposes would technically
    be there.
    if anyone has ever done this successfully please let me know what your results were ?

    Hi Mike,
    Based on my knowledge, you can move windows installer directory using junctions. Please follow the steps below.
    Download Junction from
    http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx.
    CopyC:\windows\installer to X:\installer (X represents a new location).
    Delete all the file in C:\windows \installer.
    Close all Explorer windows.
    Run>cmd>C:\junction C:\windows\installer X:\installer.
    Thanks!
    Andy Altmann
    TechNet Community Support
    I tried this on my Windows XP SP3: moved C:\WINDOWS\Installer folder to other partition (E:\Installer) following steps described here. After this I've launched an ordinary MSI file to install an application. During installation
    Windows Installer deleted all contents of E:\Installer and re-created C:\WINDOWS\Installer as a folder (not a junction).
    Hope it works correctly for Windows 7...

  • Write to Excel file in KM Folder with DynPage

    Hi,
    I want to create and read/write to a Excel file in KM Folder using DynPage.
    Searched the SDN but could not get any links which will demo on using excel with Dynpage. Lot of links to use excel with WebDynpro are available.
    Can anyone give the code or links for this purpose.
    Regards
    Sumant

    Hi,
       May be we can expect a blog for this too.. Actually, it is not very different. You can use the same blog for your purpose.
    Uploading files to KM repository using Webdynpro APIs
    Creating folders in KM dynamically
    Here the code can be written in doContent or doProcessBeforeOutput method. Import the required jars. References can be written in SharingReferences in application-config of portalapp.xml. Otherwise, the same code should work in portal application too.
    Regards,
    Harini S

Maybe you are looking for

  • How to print OCR text in Adobe invoice form

          Hi All,       I have got a requirement to print the customer number and invoice no  as OCR text on the invoice adobe form.        So, if some one has any idea or might have gone through this scenario, please share your suggestions for the same.

  • Problem with setting up Airport Express to join an existing network

    I want to use an Airport Express to stream music from iTunes to my stereo. I've followed all of the instructions in Airport Utility (latest update) to the end, when the Airport Utility starts to update and loses sight of my airport Express. I get the

  • Need help ASAP (Camera usage)

    Hi guys! I'll get right to it... I'm brand new in Adobe After Effects, but I think I've adapted to it greatly thus far, but I'm stuck on one thing. I'm following this tutorial from from AETuts+: http://ae.tutsplus.com/tutorials/motion-graphics/design

  • Constraint against duplication

    how can i make a constraint on a varchar2 column to prohibit the duplication of data in its rows , although itsnt a primary key in the table ?!

  • ITunes doesn't see my iPhone on my Windows 8 computer.  It used to, now with latest version of iTunes it doesn't.  Help?

    I can't get iTunes to see my phone anymore.  I am trying to sync my phone as I've done a million times and now suddenly I can't get the device to show up in iTunes.  I have reinstalled iTunes, restarted my phone, and followed a few other steps in the