You are currently reviewing an older revision of this page.
The first thing to note is that EToN Attachments are not files sent via web services. When sending an attachment in a notice, you actually send part of a URL to where the recipient can obtain a file, such as an image or document. Your operational district (OD) data file will contain the first part of any attachment URL, and the notice will contain the rest. For example your OD file would contain the first part the notice URL (ftp://ftp.bentley.com/attachments) and the notice will contain the second part (/12345.jpg).
The receiver of a notice with an attachment should then have an option to view it. The software does this by piecing the 2 parts described above together and presents the URL to your default internet browser. (ftp://ftp.bentley.com/attachments/12345.jpg)
When a user wants to send an attachment file for a particular record, they must first upload the file to the database via the exor forms application. This is known as the local copy and is stored in the database for the record it was loaded against. When the user then sends a notice for that record, they can select to send the attachment via the TMA1001 Noticing Assistant. When the user issues the notice declaring an attachment, a copy of that file is then downloaded to the database server and the notice is sent via web services.
For more information on how the users upload attachments via the forms application, please see the 4.5.10 release notes:
To configure attachments you first need to setup an Oracle database directory, which references a file directory on your database server. This is where all out bound attachments should be downloaded to when sending a notice with attachments declared.
Within the HIG1895 Directories form, change the File System Path for the TMA_ATTACHMENTS_DIRECTORY Oracle directory, to a suitable location on your database server. Next assign a role such as TMA_USER and apply the necessary permissions via the Java Role Privs tab.
NOTE: Changes to Java permissions only take effect on new sessions. Before you start testing the feature, close all internet browser windows and log in to the application again.
Next you need to configure a process to allow external users to view these files. We do not recommend that you allow users to access the files directly on your database for security reasons. One solution is to create a process to move any files in the directory to an FTP site. You then need to declare the location of the FTP site in your OD data as the Attach URL.
NOTE: If an FTP site is not suitable for your business, an alternative is to use a HTTP server. For example you could enable Windows IIS services on your EToN Web Server, then create a virtual directory to point to where you are storing your attachment files. You would then declare your Attach URL as the address of the virtual directory on your EToN Web Server.
There is lots of information on the internet on how to do this, but the following links are a good start:
How to enable IIS services: http://msdn.microsoft.com/en-us/library/ms181052(v=vs.80).aspx
How to create a virtual directory in IIS 7.0 http://msdn.microsoft.com/en-us/library/bb763173.aspx