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.

Sharing reports online

Featured Replies

  • Newbies

Hi,

I'd like to share reports with users through my web interface. Ideally, I would be able to have them trigger a script which allows them to download a .tab file exported from FMP. I've heard of the problems with using FM scripts on the web, and I was going to risk it but I haven't been able to get the report to download to the user's computer anyway.

Anybody have any brilliant ideas regarding how I could get data to my users through the web?

Thanks,

Amy

Hi, Amadda! My guess is that the export will only export to the FM server you are running. Maybe you could have the script perform the export as a separate file to a public-ly accessible location on the server (Web folder?) and then you can have a link to that file on your web page that they could then download using their web browser.

--ST

Hi, though I've always come down on the side of "no script" on the web I gotta confess to using one to do just this - I have a database with an "export these records" button, which runs a find-and-export script and a "get the records" button which runs a simple Javascript that opens a window of the directory that the records are exported to.

in the page header:

<HEAD><script language="JavaScript"><!--

function openAWindow( pageToLoad, winName, width, height, center) {

xposition=0; yposition=0;

if ((parseInt(navigator.appVersion) >= 4 ) && (center)){

xposition = (screen.width - width) / 2;

yposition = (screen.height - height) / 2;

}

args = "width=" + width + ","

+ "height=" + height + ","

+ "location=0,"

+ "menubar=0,"

+ "resizable=1,"

+ "scrollbars=1,"

+ "status=0,"

+ "titlebar=0,"

+ "toolbar=0,"

+ "hotkeys=0,"

+ "screenx=" + xposition + "," //NN Only

+ "screeny=" + yposition + "," //NN Only

+ "left=" + xposition + "," //IE Only

+ "top=" + yposition; //IE Only

window.open( pageToLoad,winName,args );

}

// --></script>

</HEAD>

------------ on the page:

<A HREF="javascript:openAWindow('http://www.mydomain.com/thepath/thefolder','win1',350,275,0)">get the files</A>

----------------

this is a really easy way to do it.

If you had to send it to the user's computer, I guess you could have the export folder watched as a hot folder and run a script. On a Mac, it's an easy Applescript:

--------------------------

on adding folder items to thisFolder after receiving fileList

set ftpURL to "ftp://100.100.100.100/uploads/"

repeat with i in fileList

tell application "Finder" to set thisFileType to the file type of i

try

tell application "URL Access Scripting"

activate

upload i to ftpURL replacing yes

end tell

on error errMsg number errNum

display dialog (errNum as string) & ": " & errMsg

end try

end repeat

tell application "URL Access Scripting" to quit

end adding folder items to

----------------------------------

and I'm sure folk could suggest one for Windows, too. As these uploads would be independent of FileMaker they wouldn't count as "scripts on the web"

regards, jeff

  • Author
  • Newbies

Thanks, guys. I'll give this a try!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.