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.

Remote Scripter IWP Printing Help

Featured Replies

This may sound silly but I'm quite confused...

How do I make an IWP user select the printer they want and print from wherever they are without sending the request to the machine running the port?

In other words, If I have a script that runs a Print setup command, the print command will show in the filemaker running the port, but not to the iwp user. Is it possible for the iwp user to select the printer and print from where they are?

Sorry if I sound confusing.

Thanks in advance.

If you want an IWP user to print the layout they are on they just need to use the print command in their browser (usually control-p or command-p). You would not want to use remote scripter to do this, as the point of remote scripter is that the actions take place on a remote machine, not the machine that the user is at.

  • Author

Well, I have a script that goes to 15 different layouts and prints every one of them. Is there a way to print all of the layouts using a script without going layout by layout in IWP?

The best option would be to use remote scripter to generate and save a PDF on a filemaker client using the save records as pdf [Append; No dialog] script step for your IWP users to download and then print.

  • 2 weeks later...

Hi,

My question is related to this - we have a system that generates some reports and saves them as PDF. We want to add access to these reports into a client area using IWP - RemoteScripter looks like the best option to achieve this.

Presumably any report that can be generated using FileMaker can be achieved using RemoteScripter?

And then at the end of the script I could have the remote machine either place the PDF in a container for the user to download or automatically email it to the user?

Thanks,

James.

  • Author

Run into an issue while saving PDF's to containers.

Here's what I'm trying to do:

I have a layout called "Cover Page", uses ID as PK. I have a button called "Generate PDF" in this layout. The script that runs is:

If[students::isIWP]

Set Field[students::gAlert::RemoteScriptTrigger("ip address";port number;)

This calls the "Generate PDF" script:

Go to Related Record[show only related records; From Table: "CoverPage"; Using "PDF"]

Set Variable[$fileName;Value: CoverPage::ID & ".PDF"]

Save Records as PDF [Restore; No dialog; "$fileName; Current record]

Go to Related Record [show only related records; From Table "CoverPage" using "CoverPage"]

Insert File [Cover Page::PDF_Insert;$fileName]

Commit Records/Requests [No dialog]

Exit Script [Result: RemoteScripterSetResult('Success")]

Here's the issue. How do I get the remote computer to 'see' or 'go' exactly to the layout/record the IWP user is and generate the PDF based on this current record only (and store it in the container)?

Any help is appreciated. Thank you.

I haven't actually done this myself, so it's an educated guess! I've had a look at the documentation and found this command (which you're already using in the script above):

RemoteScripterTrigger ( remoteAddress; portNumber {; parameterText ; timeout } )

You could pass the ID of the cover page to the remove script using the parameterText and then perform a find for the cover on the remote machine.

I haven't actually done this myself, so it's an educated guess! I've had a look at the documentation and found this command (which you're already using in the script above):

RemoteScripterTrigger ( remoteAddress; portNumber {; parameterText ; timeout } )

You could pass the ID of the cover page to the remove script using the parameterText and then perform a find for the cover on the remote machine.

This is the correct way to do this. Pass your ID as a parameter and then perform your find in your triggered script.

  • Author

Thanks, that worked.

I have another question. Can a port trigger more than 1 script parameter? I have several layouts in the database, each with multiple buttons that generate PDF's. Right now, the script that I have successfully generates the PDF and inserts it into a container. But thats only one of the many buttons I need. Can this be done? Thank you.

Filemaker scripts are only capable of accepting a single parameter. You can fake multiple parameters by passing in key-value pairs and then parsing them in your script. This can be done the same way as if you were passing them in through filemaker and not through remote scripter.

You can use URL parameters to pass in your key value pairs, such as ?firstname=joe&lastname=smith.

I recommend reading about passing parameters in our remotescripter documentation file.

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.