Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this exercise you will need some files from the zip file described in Before you Begin at the start of these tutorials.

  1. You will need the following files to complete this exercise:

    • V_Brown_CV.pdf
    • Employee_Confidentiality_Agreement.pdf
    • A0070_Details.doc
    • A0070_Holidays_2013.xls
    • A0070_Notes.txt
    • A0070_Presentation.ppt
    • MYDOCS.txt

      If you are not using the VLF application to store images in file DXDOCS, the file MYDOCS.txt contains a list of the files to be displayed, which will be read by your WAM.
      Copy these files from the Extra Files to the folder: C:\Program Files (x86)\LANSA\ 

      IBM i


      a.  If you are running your WAMs on the IBM i, copy the file MYDOCS.txt into an IFS folder such as /LANSA_d13pgmlib/ where d13pgmlib is your LANSA program library.
      b.  Copy all other files into the IFS folder, such as: 
           /LANSA_d13pgmlib/webserver/images/
      c.  Change your RDML code to use the first path to TRANSFORM_FILE. Use the second path to retrieve the files to send to the web server. 
           WAM095. Appendix A contains sample code for both Windows and IBM i execution.
           Alternatively, use any files that you have available that will be recognized by windows and can be opened in the browser.
      Note

      Note: In this case you will need to create a simple text file MYDOCS.txt containing a list of the files you wish to display.

  2. A later step requires a set of small gif images for each file type, which will be displayed as a clickable image in the first column of the employee documents list.

    Windows

    These files are supplied in the Extra Files zip file. Copy the files from the File_GIFS folder to: 
    c:\Program Files (x86)\LANSA\WebServer\Images

    doc.gif     
    htm.gif
    html.gif

    pdf.gif     
    ppt.gif
    text.gif

    txt.gif
    xls.gif

    IBM i

    If you are running your WAM on the IBM i, copy the gif files to the IFS for example to:

    /LANSA_d13pgmlib/webserver/images/ where d13pgmlib is the name of your program library.

...

All keys not shown in the table will be blank.

Understanding BLOBs

Refer to the Technical Guide for a detailed explanation of how to use the BLOB data type.

...