Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4852 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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.

Posted

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?

Posted

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...
Posted

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.

Posted

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.

Posted

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.

Posted

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.

  • Like 1
Posted

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.

Posted

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.

This topic is 4852 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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