Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Webviewer to show related record files

Featured Replies

  • Newbies

Dear Programmers,

I want to display files for each record separately on the layout which are related to them.

I have added a container, browse button to upload and a web viewer on the layout.

Browse button will browse for file and put it into container field then will export the contents to a folder which is associated with that record number.

All the files are saved to-> \\server\attachments\{record-number} i.e. Record 1234's files will be in this folder -> \\server\attachments\1234

I am doing it this way:

Send Event [ open document/application; "cmd /c \\server && cd\Attachment && md" & Table::RecordNumber ]

Insert File [ Table::Attachment ]

Set Variable [ $attachment; Value:Table::Attachment ]

Set Variable [ $output; Value:"filewin://server/Attachment/" & Table::RecordNumber & "/" & $attachment ]

Export Field Contents [ Table::Attachment; “$output” ]

Set Field [ Acceptance::Attachment; "" ]

The problem I am facing is:

1. CMD does not support UNC paths as current directories. (\\server) - So how would I be able to create directory in my required location.

2. How can I put an IF statement to check if the directory exist or not, if not then create it before exporting the field contents.

Any suggestions?

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.