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

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

Recommended Posts

Posted

ok that works....wich is good thank you...but its doesn't work....what if i have a different pdf for each recordand i want a standardized button that no matter what record you are on it opens the related pdf

Posted

well each record can have a related pdf document path or name. Then you can run the send event based off a calculation.

Send Event [aevt"; "odoc"; "c:1.pdf"]

Posted

Hi,

I am also looking for something like that. I posted couple of times in other places in the forum, did not get help. Probably it was the wrong place.

I am pretty much new to filemaker. Trying to understand.

Could you please let me know how to do this?

I did drew a button, then selected button setup, perform script, specify and in the parameters edit, i tried to put in the send command as you have specified.

It says specified table cannot be found.

How do i execute this?

How about for other file types like doc, image etc?

Thanks,

drb

  • Newbies
Posted

Here's one I use all the time - this opens a PDF that's online, based on the static criteria of the filenames:

1) Create a calculation field. "open_XXXurl" is what I have.

2) "SCFN" is the Static Criteria Field Name (where you store the filename you want to open).

3) the calculation reads:

open_XXXurl = "http://www.anysite.com/subfolder/" & SCFN & ".pdf"

4) Create a button or script to Open the URL using the data from the open_XXXurl field.

Enjoy!

A T Martin

Posted

Drb,

In its simplest form, these are the steps you want to take a look at.

1. Create a new text field. Lets just say I call it, File_Path.

2. Each record should have its own file path in the File_Path field. In the previous example I used, c:1.pdf.

2. Create a new script. This script step should contain in one of its steps a Send Event [aevt"; "odoc"; File_Path] function.

3. Create a button, and reference the new script you created.

The send event script allows you to open the files in their respective associated programs.

Posted

Hi mr_vodka,

Thanks for the reply. From a medical background without any knowledge on computer/scripting/database-i find it hard to do. However willing to learn and work hard.

I tried to follow as you suggested.

I tried to create a new script. hit new in scriptmaker, and then moved 'perform script' and then specify>edit> Send Event [aevt"; "odoc"; File_Path]. When I click OK, it says table cannot be found.

Could you please help me out further?

Thanks,

drb

A T Martin, opening online pdfs is another cool one, hope i will be able to use that also. Thanks for the help.

Drb,

In its simplest form, these are the steps you want to take a look at.

1. Create a new text field. Lets just say I call it, File_Path.

2. Each record should have its own file path in the File_Path field. In the previous example I used, c:1.pdf.

2. Create a new script. This script step should contain in one of its steps a Send Event [aevt"; "odoc"; File_Path] function.

3. Create a button, and reference the new script you created.

The send event script allows you to open the files in their respective associated programs.

Posted

Make sure that it references the new field that you created. I called it File_Path for your demo.

In your Send Event Script step, make sure it us by calculation. Then select the field from your selection window. After you select it, it should look something like:

TheNameofYoruTable::File_Path

This topic is 6965 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.