October 27, 200520 yr can someone hook me up with some script steps tp opne up a pdf on the click of a button please
October 28, 200520 yr Author 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
October 28, 200520 yr 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"]
October 28, 200520 yr 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
October 29, 200520 yr Newbies 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
October 31, 200520 yr 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.
October 31, 200520 yr 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.
October 31, 200520 yr 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
Create an account or sign in to comment