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.

Script Workspace and Script Triggers

Writing efficient automated tasks with scripts, managing complex business logic, passing parameters, debugging and error trapping.

  1. Started by lpokorny,

    I am working with my co-worker, trying to make new databases for our new boss. The only problem is, neither of us have had to go "behind the scenes" on fm before. As we are learning, we are getting more confused about what our old boss has done with the db. We have 6 databases, that we want to open all together. Old boss had it set up where we opened "ART2006" and 4 db opened with it. Does anyone know how to make the 6 open togehter?

  2. Started by Amram Chayim Eirinberg,

    Hi All, I wanted to know if it is possible to use Send Event script step to play a music file without having to attach the file to any field Any help will be very much appreciated!

  3. Started by nyung,

    Hi Everyone, I'm new to this forum. Apology if this question been asked before. I'm using FM 6. I modify the given template "Asset Management" for my org asset tracking purpose. I'd like to write a script so that when the button is clicked, the user will be able to define what criteria does he/she want the report to show? Mainly it's "Funding Source", after the user is done with the criteria, there will be a report generated base on that. Current I have a report template that simply show every that the user "Find" as their criteria and then switch to the report view to print it. However, I'd like to have a button that strictly based on "funding sour…

    • 0 replies
    • 884 views
  4. Started by ABarry,

    Okay, I am sure this is a simple question, but I can't figure it out to save my life. I need to be able to omit records from a found set in a script. I have the find and everything else related to the exporting, saving, etc. but I don't know how to use the constrain found set in a script to omit. Can someone help me? Please??? Thanks in advance. :)

  5. Started by sandyinlet,

    My client has two FMP10 files running on his server — File A which has the data and the relationship graph and B which has some new layouts. Intuitively I know it must be possible for a script in FileA to go to a layout in FileB, but I can't get my head around how to actually do it. The Goto Layout script step shows only layouts in FileA with no obvious means of presenting current layouts in FileB. Brain dead this Tuesday morning.

  6. Started by Database Designs,

    Is there a way to change "Select Enlarge window contents to improve readability" via a script?

  7. Started by josebetzy,

    I would like to display (generate) the dates (weekdays selected) between two dates in a table and then use these generated dates for attendance on each of these days. Example: The school term starts 11/9/2009 and ends on 2/19/2010. I would like to check (select) the days the class will be scheduled and enter the start and end time. Lets say I check Tue and Thu for the class ENG 101 which will start at 8:00am and end at 10:30am or 2.5 hours for one day. How can I generate a table with all the Tuesdays and Thursdays with their calendar date so that; 1) I may total the number of hours for this class for this period and add another day and time should it be less that t…

    • 7 replies
    • 1.4k views
  8. Started by thechump,

    Hi all, I was wondering if anybody has any ideas about the following problem I am trying to solve. I have a field containing the values 0 and 1. I would like to produce another field that calculates the number of times since the value 1 occurred. For example.. Field 1 Field 2 0 1 0 2 0 3 1 0 0 1 0 2 1 0 I hope this makes some sense and any nudges in the right direction would be greatly appreciated. Andy

    • 10 replies
    • 1.5k views
  9. Hello all, I want to separate the data below (which comes from one text field) into ten separate fields within the same record. For instance, "Status" is a field and "Received" would populate it. "Date/Time" is a field and "2/12/2010 4:33:07 PM" would populate it. etc, etc. Any ideas from the text parsing wizards out there would be appreciated. : Thanks, Eric Status: Received Date/Time: 2/12/2010 4:33:07 PM Speed: 14400 bps Connection time: 00:36 Pages: 1 Resolution: Normal Remote ID: 18885551212 Line number: 1 DTMF/DID: 1 Description: Fax received from 18885551212

    • 4 replies
    • 935 views
  10. Started by fxedit,

    hello, i'm using filemaker pro for a film database. can anyone assist me in how to change my key number 16 frames per a foot of film to a higher number such as 24? any assistance would be greatly appreciated. thanks

  11. Started by blackonblack,

    Hi guys. I've been developing a Filemaker pro solution for my internet sales business. I am using a web shopping cart that can export the orders in to an excel format from which I am using to import in to filemaker pro. From there I can input other order info like tracking numbers etc. So I created a new table and several fields that relate to the ordering process however I have been trying to figure out how to generate reports over time by a date range. Weekly or monthly etc. This is important so I can use filemaker pro to calculate monthly revenue shipping costs etc for use with my financial statements. Currently I am exporting my records in to excel, saving only the re…

  12. Started by yodamusic,

    I am tying to Filter my list view with only results that are not marked "Complete" I have a status checkbox field that shows a tasks' status (received, assigned, estimate complete, work complete, etc.) I want to use check boxes so we can see the progress of the case, and if I use radio buttons, when its completed I can't see if it had been quoted, declined, etc. When I go to list view, however, I want the layout to only show a one word summary of the status. The problem is, what order they are clicked in affects the order of the result text, but I always want the last item in the list to show up as status, and not show any that are already completed. I would have lik…

    • 3 replies
    • 1.5k views
  13. Started by mille,

    HI! I am trying to make a script which should say: If (field A = "Yes") then field C copies the value of filed B End if If (field A = "No" or field A is empty) then field C takes the value 0 End if My problem is making the "then" commands. what type of scriptcommand should I use? I've tried look up, replace, copy/paste and nothing works! I don't know where to place the script either. Can I add in one the fields A, B and C, when they already do have a value? It would be optimal if when I press "yes" in field A, that field C right after takes the value of field B. Should the script then be placed in field A? When I've tried to do that it see…

  14. Started by yodamusic,

    I have been reading all I can on creating scripts, and I'm afraid its making me feel quite dumb. I am trying to have certain fields in my DB to auto fill based on the user that is logged in. I have a "personnel" table that has a user name field, which I am trying to link to their login user name, so any info may be auto entered based on this - ie. it will fill in their full name, email, rates, etc. from the personnel page.

    • 3 replies
    • 1.7k views
  15. Started by Lambert,

    Hello Anyone know how to fix this? A script in one of my files started to crash the db., now I want to delete it from scriptmaker. But it cant be removed, the script is still there, and Filemaker prompting the script can't be found or has bin deleted??? It's still visible in the scriptlist and can be moved around there, but it can't be deleted!

    • 4 replies
    • 1.4k views
  16. Started by ChiSao,

    Hi, I like the table view because the user can change the size and order of each column but in the other hand ther are only a few configuration parameters for this view (or maybe I can't find them) 1. I would like GTRR (or genererally perform an script step), when user clicks on a field 2. How to avoid changing of the field content (like in the behavior configuration of each field for the other views) 3. How do you change de colors for even, uneven rows? Thanks ChiSao

    • 5 replies
    • 1.1k views
  17. I've spent sometime researching this but can't find the solution or answer; is it possible to automatically execute "Continue" in IWP when running a script with multiple pause/resume steps? What I'm trying to achieve in IWP is background navigating and printing from three different layouts: Go To Layout 1 then Print Go To Layout 2 then Print Go To Layout 3 then Print Go To Original Layout I know that script step "Pause/Resume" is not IWP compatible, nor is "Print" and "Print Setup". However, I'm optimistic that someone has ran into this before and has found a solution. Thanks in advance, Jose

  18. Started by Brian12568,

    Hi all, Im sure this is simple but this is bugging me! I have a script that does various thing which is all working but i want to finish the script by prompting the user that the record has been changed just by having a custom dialog saying the record has been changed but also to include some fields.. so in the message box:.... example: you have associated this contact <> <> with the Company name <>. the above is actually what is printed instead of: you have associated this contact Joe Blogs with the Company name Some Company. Thanks for any help in advance or if whoever responds needs clarity let me know..

  19. Started by Deed,

    Hello, I am wondering whether/how I can use a script variable in another file's script. By way of background, I have a database with individual sales records, and a salesperson ID is associated with each sale record. I have a separate database of salespersons (salesperson ID and demographic data). My goal is automatically to loop through the sales records, sort them by salesperson ID, then "save as pdf" for each salesperson so that they can see the details of their sales. My tactic has been to start in the salesperson database, which has only one record for each ID, grab that ID (presumably as a variable), then call a script in the sales database and find all sales for…

    • 5 replies
    • 1.9k views
  20. Started by Steven1337,

    I need to make a script for the people in my office that will ask if they are sure they want to close filemaker 10 when they hit the X at the top right. They keep complaining that somtimes they close it by mistake and it closes down everything without asking them. I tried looking to see if filemaker had a built in option like this but I was not able to find one. So i figured the next best thing would be to create a script.

    • 8 replies
    • 2.3k views
  21. Started by spongebob,

    Hi; Simple question: I want to create an Excel Spreadsheet from my Filemaker database. But I want one that has several Excel "Tabs" ie "Sheets" in it. Is that possible? Best Wishes,

  22. Started by ianmuir,

    Hi I have a record with Name, Payment_date and Payment_ number. When a person gets paid the payment date is inserted next to their name. I need a script to insert a number starting at one in the payment_number field. So now we have their Name, payment date and payment Number. If I now make a new record, may be days later and use the same person again when they get paid I want it to insert 2 into that records payment_number field. So every time they get paid the number is incremented by 1 on that record related to that persons name. This must work for other people in the database as well. Any ideas? Thanks

  23. Started by Steve G,

    I built a script that takes data from a number of different fields, converts it into simple HTML, pastes the aggregate information into a single text field, and then exports that text field to a file on the desktop. It all works quite smoothly. However, there's a problem and I don't know where it stems from. If I open the exported file (which has an .html extension, btw) in my web browser it renders correctly. If I upload the exported file to the web site and then open it, I get garbled Chinese characters along with a few random strings of Roman text. IOW: If I open the file locally it renders correctly, but if I open it remotely it doesn't. In experimenting I d…

    • 10 replies
    • 4.8k views
  24. Hi, I am trying for a script but feeling difficult to make it. 1) It should first copy the file into the container. 2) It should make the directory and copy the file into the directory. 3) Directory name should be as Company name + Fund Name. 4) Filename should be as FundName+sequence no. I tried by myself and using Mooplug plugin but it shows error. Hoping a kind reply. Regards, Tusif

    • 4 replies
    • 2.2k views
  25. Started by ccmango,

    I'm trying to do something apparently simple that I'm finding oddly difficult. I would like to use a script to tab through text entry boxes in a web viewer into which I would cut and paste field data. Is there a way to issue tab characters to the browse layer from a script, and more generally, can text entry (i.e., typing) be done from a script?

    • 10 replies
    • 2.7k views
  26. Started by skearton,

    This one has me stumped. We use a particular numbering system for our invoices (different from our Order ID). Just wondering how to make this an auto generated thing. So, if I was to do some invoices for today, it would look like this: 02-1001-10, 02-1002-10, etc. Now let me explain the numbering code: the first 2 digits are the current month followed by a dash. The first number after the dash is the office ID (with our office being 1, and the others being 2, 3, 4, etc. no more than a single digit. The next three numbers are the serial number for that invoice, increasing by 1. There is the dash and then the last 2 digits are the current year. The gotcha, is…

    • 2 replies
    • 3.4k views
  27. Started by tbfilemaker,

    Problem: I am attempting to create a work around for not allowing users onto a server if they have a "User Name" setting in the Preferences > Application greater than 20 characters. It turns out that some individuals have long user names which is crashing our FileMaker Server 5.5 application. Proposed Solution: Create a jump script within FileMaker Pro 6 to place on the client machines with the following: If User Name is > 20 characters then show message, "Please see your local Administrator to reconfigure your User Name." Else Go to file on server. Note: it would be ideal if one file worked for all users. Any insight or any ideas o…

  28. Hello All, I need to create script for a File Maker Pro 8 Server that will close all databases on the server. I would like the script to run as a scheduled task every night after my nightly back up. Can anyone provide a sample syntax?

  29. Started by ianmuir,

    Hi, I do a search between 2 dates on my invoice layout. I then print the invoices. I need to assign the current date on the invoices as they are printed. The next time I run it the same thing but 2 weeks later. i need the printed date to stay on each set of invoices so i can find them again if i need them. Anyone?

  30. Started by Andrew_Hobson,

    Hello, Is it possible to make a loop with scriptmaker that goes thru each records of a Multivalued field? Or must I address each Multivalued field individually? If it is possible can someone point me to an example? Thanks for the help. Andrew

  31. Started by lesterd,

    02/04/10 06:15 AM - Post#349960 I might have posted this in the wrong spot initially. I am still using FMP 6 and Server 5.5 I have 800 people divided into 3 groups. Each group is has a number designated to their group in a field called “reged” Group one’s number is 55, group two’s number is “99” and Group three’s number is “4”. I have 2 layouts in the database. I want group 1 (the #55s) to got to layout 1 and group 2 (the 99s) and 3 (the 4s) to go to layout 2 when they login. I also want to find and show only the people in their group when they go to the layout. Basically if someone from group one logs in with their password “reg191” which allow…

    • 0 replies
    • 915 views
  32. Started by perengano,

    Hi, I am trying to work out how to perform a find based on the contents of a field but cannot for the life of me work it out. Okay, so I have two layouts: StudentDetails and MainPlacement. The field named 'MainPlacement' on the StudentDetails layout holds the same text as the 'PlacementName' field on the MainPlacement layout. I want a button on the StudentDetails layout that, when clicked, will use the contents of the 'MainPlacement' field to go to the relevant record in the MainPlacement layout. Any help will be greatly appreciated. Thanks!

    • 1 reply
    • 891 views
  33. Started by Simon K,

    Just a quick one I think... Is there any quicker/slicker way of setting all repetitions of a global field (to a single value) other than by a script that loops through the repeitions uses set field to set the repeition to the required value? eg set variable $c; 1 Loop Exit Loop if $c = 10 set field globalfield[$c] = "default value" set variable $c; $c+1 End Loop Many thanks

    • 3 replies
    • 1.6k views
  34. Started by Gilbert,

    Hello, I use the “send event” script step to open and bring an hp scan application to the foreground, this works fine. How can I continue bringing the hp application to the foreground once the application is opened? Thanks

  35. Hi...I created a script trigger to perform actions when a selection is made from a pull down menu inside a portal row. The source table is called Projects and the portal source table is called Assign Client to Project. Everything works perfectly until the last steps: Go to Layout [original layout] Go to Field [Projects:status] I used the pause/resume script step to watch what is happening, and it does actually go to that field but doesn't end there. Instead when the script finishes, the cursor ends in the field that is the beginning of the next portal row from where it began. Any ideas? I've tried having it go to many different ending fields bu…

    • 14 replies
    • 3.7k views
  36. Started by Fred P.,

    Is there a way to check via script if a records container field is empty?

    • 2 replies
    • 4.7k views
  37. Started by ianmuir,

    Hey, does anybody know how I can insert a date into a date field on a found set? This is so these records will always have that date if searched for again. thanks

  38. Is there a way to provide a script step to reset the size and location of dialog boxes? I have users that use multiple displays sometimes and the dialog boxes do not necessarily follow the active window. I would like to put such a function in a startup script to at least give users a fresh starting point.

  39. Started by ianmuir,

    I run a script on exiting my database. It checks a field "provisional_booked" for a date and then checks "job_Confirmed" If "job_confirmed" is empty and "provisional_booked" has a date it puts up a custom dialog box saying "There are jobs for tomorrow which are not confirmed. Would you like to see them?" it inserts the current date + 1 into a date field so it can check the next days jobs. My boss wants it to, on a Friday check Mondays jobs. any ideas? I have attached script steps.

    • 3 replies
    • 1.2k views
  40. Started by BiknSwans,

    I'm having a problem searching for all records with dates after a certain date. I enter FIND mode and then use Insert Calculated Result using the following: ">" & GetAsText(memberships::newsletter thank you date). The text in the search field looks like this: >2009/11/15 When the search starts, I get an error message: The value of this field must be a valid date in the range of years 10 to 4000 and should look like "12/25/2003". I use the exact same script step in another file on the same machine, and it works fine. In that case the search string looks like ">11/15/2009". I've checked the file File/File Options/Text …

  41. Started by AnnieT,

    Ok this is driving me crazy! I have tried every single thing I can imagine for a number of days and I have no idea what is going on. Whever I use the "go to field" function in a script it does NOT work. I even tested it with the simplest of scripts...having it be the only step...and the result is always the same. It does not put the user in the specified field...instead it puts them in the field AFTER the specified field. Does anyone have any ideas at all about why this would be happening? Is it possible there is a bug? Something I overlooked? Something really simple? Has anyone ever had this problem? I've searched on the web for it but haven't found any…

    • 8 replies
    • 1.7k views
  42. Started by Mark Hamilton,

    I have .Mp3 files held in a container and I am wanting to create a script that will play the file. I can play a file recorded within FM, but not the mp3 file. Any help would be appreciated Thanks

    • 1 reply
    • 1.6k views
  43. Started by ianmuir,

    Hi, we have a payment screen for employees. I need to put a field called Payment_number on the screen that increments by 1 every time that particular employee is paid. This is so I can see how may times each employee has been paid. a script perhaps?

  44. Hi, I'm trying to make a field act like a "enabled/disabled" under a certain condition. The problem is using the onObjectEnter trigger is not working or there is something I missed. Even if the script returns false, the object gets the focus. Here is my script Freeze Window Set Variable [$typeAdd; Value: 5] if [rep_ADDENDAS::fkTypeID = $typeAdd] Exit Script [Result: True] else Exit Script [Result: False] End If BTW, the script is triggered from a portal field. Thanks for any help.

    • 10 replies
    • 2.1k views
  45. Started by ianmuir,

    Hi, has anyone got a script that loops through specified fields and clears the data in the fields and exits after the last field. Thanks

    • 2 replies
    • 1.3k views
  46. Hello, I am fairly new to the world of Filemaker and as a longtime lurker, this forum has already helped me immensely. However, there is one issue that I am currently having for which I cannot seem to find a solution. Any tips would be well appreciated. I have a large database of contacts with the phone numbers in the format 1234567890. I would like to insert hyphens so that the phone numbers appear as 123-456-7890. There are over 50 000 records, so doing this manually is out of the question. Can someone please point me in the right direction to writing a simple script that would automate this procedure? Any help is greatly appreciated. …

  47. Started by El_Pablo,

    Hi, Is there a way to use the GTRR script step by defining the destination table and the destination layout with a variable?

    • 8 replies
    • 1.8k views
  48. Started by ianmuir,

    Hi, our job sheet has a Job_number field which is incremented by 1 every time a new job is added. We have 2 buttons "provisional" and "Confirmed" The boss want the Job_number field to be blank (I.E. no job number assigned) unless you push either the "provisional" or "confirmed" button. Of course the job number would have to be incremented by 1 on the next record. any ideas?

  49. Started by ianmuir,

    Hi, I have 2 fields Time_from and Time_to. Say I enter 14:00 in Time_from, what I need is a script that enters the time in the next field(Time_to) plus 1 hour so it would be 15:00 Thanks

    • 10 replies
    • 1.6k views
  50. Started by El_Pablo,

    Hi, Is there an efficient way to duplicate a record and its children? (Yes, I need to duplicate some of the children) The algorithm I'm thinking of is : duplicate the parent record Get its primary key Go to original record Traverse all children // TEDIOUS PART!! Duplicate each child change foreign key to new parent The long part is to traverse allll children tables, when there are like few levels of them, it's so long to script. I just want to know if there is a generic way to do it?

    • 11 replies
    • 1.4k views
  51. Started by ianmuir,

    Hi, I have a layout with 6 buttons on it. Each one runs a different script. The last button is "Job Cancelled" What i need is a script that when the "job canceled" button is clicked the other buttons are disabled so the job can go no further. Thanks

    • 2 replies
    • 976 views
  52. Greetings All! Does anyone know how to create a .ics file from within FileMaker? I want to add this as an email attachment to be sent to x number of recipients. I have found an awesome free script by Jonathan Stark which adds an iCal event directly into your iCal but I am uncertain of the next step where I would like to share the event with others. Jonathan's script can be found at http://jonathanstark.com/downloads.php Any help with the above would be greatly appreciated!

    • 3 replies
    • 13.3k views
  53. In my never-ending quest to make data consistent in our solutions here at work, people have entered proper names all kinds of ways: all lower-case; properly with initial caps; all upper case, and some people with a combination of both. What I'd like to do is create a script or custom function to clean it up so if a user hasn't entered a name in a Name field, a custom function/calc will format names correctly to initial upper-case letters; if a user has entered a name, regardless which case the letters are in the name would be formatted correctly as well. Since there aren't any styles assigned the TextStyleRemove command won't help. I'm sure this has been d…

    • 2 replies
    • 1.1k views
  54. Started by Miltomatic,

    Hi Everyone I am a real beginner at scripting and, really, Filemaker in general. I am trying to write a script that will save a record (an invoice) as a PDF. My problem is that I don't know how to give the PDF a unique name, ideally the invoice number (which is a field on the layout). Any help would be gratefully received. Regards Milt

    • 7 replies
    • 1.5k views
  55. Started by desta,

    Hello, I simply want to restrict the use of a script (button) to predefined user privileges. Is it possible? how? I'm not sure if this is already somewhere on the forum or instructions, but I haven't found it...

    • 1 reply
    • 1.4k views
  56. Started by Andrew_Hobson,

    Hello, Here is what I need to do. Perform a search to find my Participants Loop thru the selected records from the Participants table In the Loop create a record in the table Temporary Based on criterias in a multivalued field in the Table Participants (Conditional if) End Loop if the end of file Participants in reached Is this technically possible with FileMaker.

    • 7 replies
    • 1.7k views
  57. Started by ianmuir,

    Hi, I have two fields Start_Date and End_date. say a job starts 23/01/2010 and ends 30/01/2010 if I do a search 23/01/2010... 30/01/2010 it works ok. if I do a search 24/01/2010... 30/01/2010 it does not show the record. I need to search from start_date to End_date and records that are between the 2 dates to be shown. any ideas?

    • 9 replies
    • 3k views
  58. Started by El_Pablo,

    Hi, Is it possible to capture the Ctrl key? I disable the search button in FM and wanted to Capture the [ctlr]+[f] combination to activate a search script with the onLayoutKeyStroke trigger. Doesn't seem to work.

    • 5 replies
    • 2.3k views
  59. Started by Karen1958,

    I'm using a custom dialog to confirm the user wants to run a script. The question is: clicking on the Default Button ("OK") or Button 2 ("Cancel") has the same effect, which is that the script is run. How do I/Can I program the script so that it is aborted if the user clicks on "Cancel"?

    • 2 replies
    • 2.1k views
  60. Hi all - I'm pretty sure I know the answer to this question, but I'm hoping I'm wrong..... Is there a way to get the Height, Width, Top, and Left numbers of a window that is NOT the current window? I want to determine the dimensions of a window without having to select the window to make it the current window.

  61. Hi everyone! I am creating a rotation schedule for employees in an 8 hour shift system. I want to send an individualized PDF of our database as an email attachment to all employees highlighting when and where they have to work. I set up a looping script that saves the individualized PDF to a temp path and then creates an email with the PDF as an attachment. Everything works fine except that some of the time the attachment is missing in one or more emails. The weird thing is, that every time I do the script the attachment is missing in different emails. Thank you very much in advance for the help. Cheers, Sebastian

  62. Started by Karen1958,

    (Note: Platform is actually Win 7 64 bit) Can I use Send Email when my default email client isn't a Microsoft product? I use a program called eM Client and get the "no email program associated" error message when trying to use this script step. (It worked fine several years ago when I was using FM 5 and Windows Mail). Not having any luck associating eM Client in my control panel, as the only option is "E-mail program: Use my current e-mail program". Thanks, Karen

    • 4 replies
    • 1.2k views
  63. Started by ianmuir,

    Hi, I have a database which works well and produces client invoices. When an invoice is printed a field "invoice_date" records the date of invoice. When an invoice is paid "Paid" is entered into a field "invoice_status" How can I make a script that checks the date and the invoice_status field and if no payment has been received >30 days from invoice date flags this?

    • 2 replies
    • 913 views
  64. I'm trying to get a number applied to a portal row that is consecutive but resets for each new record. I'm probably going about this in the most difficult way... but I can seem to get anything to work. I tried setting a field to Get (PortalRowNumber) but it returns as 0, I've tried applying some sort of "@@" function to a row but you can't sort by that. I'm thinking I need to do something similar to: Go to Record/Request/Page [Last] Set Next Serial Value [Table1::Invoice ID; Table1::InvoiceID + 1] Please see attached file for a better visual of what I'm trying to do. Any suggestions?

    • 2 replies
    • 1.2k views
  65. Started by mfl,

    Still new to FM. I have this application and am trying to make a popup window work. This popup window code is being used in another layout which basically has a user clicking a button on the layout and it pops the window. The problem is that on execution the sequence blows right through the pop and displays the wrong layout in the popup. The first bit of script is the main one that runs when the user clicks the required option button. The second bit of script is the pop window. Any assistance is appreciated. Regards Michael

    • 3 replies
    • 2.5k views
  66. I need a script to find and replace data in a field if it contains one ore more cariage returns. The field also contains different kind of text. How can this be done?

  67. Started by datalink,

    We are in need a script that will take the operator to the next related record. The found set cannot be constrained to related records only, so in the stack of records there are related records and unrelated records. Some how we need to set up a 'next' button that will take the operator to the next related record, skipping over the unrelated records that might be in between. Any suggestions? Thanks in adavance.

    • 7 replies
    • 1.4k views
  68. Started by Dr. Evil,

    Hello! What is the error capture number for "Can NOT save file/find path to save file"? I have my solution running off a server, users connect to it remotely. I have a invoicing script that creates a record, in my script I have it save a PDF. of the invoice onto the hosting server. This works GREAT! But you have to be connected to the server or the file will not be able to save. So the problem is, users connect remotely to the solution, but that does not mean they are connected to the server. So when user runs script invoice, the save feature will fail unless they are properly connected. How can I prevent this problem? I'm thinking I have a few routes to …

    • 7 replies
    • 1.5k views
  69. Started by tolga,

    Hi, I finished my medical database, but need some small adjustments. First of all how can I make a list of patients in a selected month. For example: Selecting list button will show a custom dialog "chose year and month" then the list of patients will be shown whom were operated in that selected month.

    • 14 replies
    • 2.3k views
  70. Hi all, I think my title says it all, but I' eloborate further. I have two tables, table_1 and table_2. I have a text field in table_1 where I have typed in some text, however I have a portal on that layout which shows values of a field called "Value" from table_2. Depending which portal record the user clicked (that is the insert button), I would like that value to go in the text field in table_1 in exactly the same position where the cursor is. Is this possible, as I have not found a command to get the position of the cursor within filemaker My script at the moment is (which only brings the first value in at the end of the text even though the cursor is in the…

    • 3 replies
    • 1.4k views
  71. Started by ianmuir,

    Hi, 2 fields date_1 and date_2. I need a script that if date_2 = date_1 it shows the records for date_2 any ideas?

    • 2 replies
    • 997 views
  72. Started by ianmuir,

    Hi, I have a layout called "Diary" it shows the current date at the top. The records below are a found set of the current date. I need 2 buttons, one to step forward through the days and one to step back through the days. any help would be appreciated.

  73. Started by ianmuir,

    Hi,I have 2 fields "Cities" and "Invoice amount" I have a script that searches between 2 dates and produces a grouped report showing the "cities" and the "invoice amounts" that have been received from them. This works great. The length of the report varies depending on how many invoices have been paid, one day 2 pages, one day 4 pages. I need to show a total of the amounts in the body of the last printed page only. Can this be done?

  74. Hi all, I have a field which contains data, which is seperated by carriage returns like the one below. Apple Orange Banana Grapes Plum Guava What I would like to do is split the values into 6 records(in this case but could be many more). Any advise would be much appreciated Thanks Jalz

    • 4 replies
    • 2.5k views
  75. Started by lisa_anne,

    Please bear with me as I try to describe what I am trying to do. I really know nothing of scripts and have taught myself to use FMP. I have a database to keep track of students. I have a field, that opens to a calendar, to input when a student needs to renew their CPR training. I would like to create a button to find all students who's CPR is due after a certain date so that I can then use mail merge to send them a reminder letter. I have never written a script before and am not even sure if I am asking this in the right place. Thank you very much for your help.

    • 2 replies
    • 1.1k views
  76. Started by sandyinlet,

    Our client wants a preliminary dialogue and a very simple "open" dialogue for inserting pictures. The programmable Insert Picture dialogue is too intimidating for his users. Is it possible to script a process that yields the same thing as the menu bar's "Insert Picture" function? Much appreciated.

    • 5 replies
    • 1.1k views
  77. Started by ianmuir,

    Hi, I need a script that search the records for my criteria, goes to the first found record, omits all the others the prints the first one in list view. Then loops goes to the second record omits all the others and prints the second one in list view. it keeps looping and printing untill all records are printed. Any ideas?

    • 7 replies
    • 1.1k views
  78. Started by djc728,

    Can someone tell me if you can set the HEIGHT and WIDTH of the NEW WINDOW script to a 0 or Negative number. The reason I ask is that I've been getting these "an unsupported operation was attempted" errors and when I use the script debugger it seems that the New Window script is the culprit and I realized that I have the Width and Height set to 0 and NOTHING in documentation states that I cant set those parameters to 0 or a negative number. The documentation states: Minimum height and minimum width depend on the operating system of the user performing the script. If the height or width you specify are less than the minimum, FileMaker Pro uses the minimum values.…

    • 4 replies
    • 1.5k views
  79. Started by Tpaairman,

    I'm setting up a storefront file. I have a bit of an idea of how to do what I need, but I'm just not quite there, so I'm looking for ideas. I have a cash register layout that has a couple tables related to it. One is for items being scanned for checkout. (That will feed the invoice table.) Here's where I'm stuck - Let's say you buy 3 of a certain. I don't want the same item 3 times on the list of items purchased. I want it so that if I scan an item more than once, it shows the quantity as 3 (or however many you bought). I'm OK with having a script that runs after each scan, and I'm thinking I need it to start with the first portal row and see if that item matc…

  80. Started by tom droz,

    Thanks in advance for any help I am creating a report that I am having the following a problem with: I have 4 fields (district, type, price range and price) I need a variable that returns the value of: Total price by each district and count Total price by each Type and count Total price by each price range and count What should the script steps be (there are a total of about 40 variables) There must be a way to have this so it is scalable and when done the variables are set to a field in the final report. Any ideas or suggest would be greatly appreciated!

    • 2 replies
    • 1.2k views
  81. Hi All - I'm just curious to see if anyone has had to deal with behavior changes in their solutions with regards to the new way that FM10 handles target windows in scripts. The following Knowledge Base article outlines the changes: KBArticle I ran into a problem almost immediately when I opened one of my solutions in FM10. I use a multi-window user interface and resize the windows to fill the screen next to one another. As soon as I opened my solution the windows didn't size properly at all. I tracked it down to the script I use for sizing the windows. I was simply looping through the list of windows and resizing them using the Move/Resize Wind…

    • 1 reply
    • 1.2k views
  82. Anyone know if it is possible to import records using match fields method and mark if a record wasn't updated?

  83. Hi all - I've recently started replacing all the plug-in based script triggers in our solution with FileMaker script triggers. I'm using the OnLayoutKeystroke trigger and I'm wondering if anyone knows a way to prevent the character that's associated with the keystroke from being entered into the current field. I'm using a seldom used keystroke("`") to bring up a pop-up window and I don't want that character entered into the field. Thanks for any ideas!

    • 8 replies
    • 2.3k views
  84. Started by desta,

    Ok, this one seems simple yet my dumb mind continually gets stuck finding a way to script this, so any help would be great. I have a simple Filemaker database, with one table "predictions" containing 17520 records. There are only three fields: "date", "time" and "predicted value" If everything is ok, every record's "date" and "time" values are supposed to be all equally seperated when sorted, so that there is always one hour difference between them. No problem so far but, to integrate these predictions with another database, I would need the same kind of table, with the same three fields, but with 70080 records (4*17520), so that there is always 15 minutes …

    • 4 replies
    • 1.1k views
  85. Happy New Year to you all! I am writing a script that will export field contents (a picture) of the current found set. The way it is currently written, it will export each picture, but you have to choose your output path and hit "Enter" to export each file and move onto the next one. First my question is, how can I make these files export to the user's desktop automatically while retaining their original filename? We are sharing the database on FM Server, so I'd like it to be a universal script. Or if worst comes to worse, I can hard code the output path for each person exporting pictures as long as they don't have to hit enter after each export. Second,…

  86. Started by stefangs,

    top of the year to everyone! i have formatted my checkboxes as a button so that the cursor does not visibly enter the field. each time i click on the box, the status is supposed to toggle just as it normally does (with its ugly framed look i want to avoid). i pass the field name or object name as a script parameter to enter the correct field. with the debugger i can see that the correct field is entered, but when the script gets to the "Set Field" part (the actual field name is not specified, only the value), nothing happens. why is that and how can i get around it? btw, the same field formatted as an edit box works.

    • 26 replies
    • 3.7k views
  87. Started by geekay46,

    Hi there. I am developing a database for a picture framing company to hold details of thousands of images that they have. I have jpeg images of all of these and the path to the jpeg is held as a field in the table. I have a 'Container' field called 'Picture' and should like to populate this field by a script on one pass through the table. If anyone can help me I should be obliged. Merry Christmas and a great New Year to you all. Graham

    • 4 replies
    • 3.3k views
  88. Started by bwimaging,

    I am having an issue with a date to text function. At least thats what i think it is (I dont know a great deal about FM.) We use the script Middle(DateToText(Today,7,1) & Middle(DateToText(Today,8,2) to make the begining part of our Folder Numbers. Which would result in something like this 911 (9=2009, 11=Month # NOVEMBER) HOWEVER since it has turned 2010, it has changed to 001 Which seems right, BUT that was the very first Folder Number when we first started this program. We are receiving an error that says this folder number is a duplicate. Which it is... SO! My questions is how do I make it for 2010? Do I need to have four characters sintead of 3 li…

  89. Hello all, I am sorry if this is a really straight forward issue. I am having trouble searching for the answer. Hence my little post here. First let me explain our situation: Basically, I have a field in my database that is a list of keywords that we use to categorize each record. Some records have 1 keyword, some have 25, some have none. Its an open field with only one repetition. we separate keywords basically by hitting enter, each keyword gets its own line. We also did it this way so that there would be no limit to the number of keywords each record could have. Now for the problem: I have about 1500 records that need to have a keyword adde…

    • 7 replies
    • 1.9k views
  90. Started by levonk,

    Hi, I created a database that is being used in a multiuser environment. It has a table with a auto-enter serial field, and a primary key that is calculated in a script using this field. Entries to this table are made from several workstations, and later during the day, they are revised by a supervisor, and either accepted or rejected. Rejected entries are deleted. This creates holes in the serial numbers, and the primary key. I tried several methods to overcome this but have yet to find a good solution. Here is what I tried: 1. Create a temporary table and only move them when they are accepted. Problem: The records need to have the same primary key when the…

    • 10 replies
    • 2.3k views
  91. Started by Merlin80,

    Hi, I have a database which records transactions against companies. On the companies Layout I have a button to add an employee which takes the user to the employee Layout. The problem I have is that each employee is allocated to a company and once on the employee screen the user has to select which company the employee belongs too. What I want to do is automate the process e.g. the user clicks on 'Add Employee' in the Company Layout and Filemaker recognises what company (or record) the user is currently looking at and automatically selects this company in the Employee Layout. This saves the user time searching for the company in the list. If anyone knows a way I…

    • 1 reply
    • 1.1k views
  92. Started by The Big Bear,

    Hi All I think it was LaRetta that was kind enough to post this excellent import script on the forum. But I have two problems that I need some help with. The first problem is that everytime the file is open and the import script is run then you must manually find the source file path regradless if the script shows the correct path. Once the source path is found manually then this part works until you close the file and reopen it again then you again have to find the source path manually. The second problem is that on the import filed mapping dialog the source file does not find the correct file. If you check the box preform without the dialog box then no records are…

  93. Started by CRoberts,

    FMs Send Email script is working nicely but the emails look awful in Plain Text. Can I send HTML format emails from within FM script?

  94. Does anyone know where there is an existing script that will solve amortization needs? There are several simple ones that accommodate the standard US amortization method. But, banks use 360/365/actual days and other methods to calculate loan amorts that are different from the standard home loan amort. anything out there?

  95. Started by jsutherlin,

    I have a very simple script that runs fine when run from the client side but when run as a server side script it gives unexpected results. All the script does is set a field (on the database where the script originates) to a date on a related database on the same server, getting the latest date by using the Max function: Set Field Sales::latestInvDate; Case( Sales::LinkedTo = "SF"; Max ( Invoice::Invoice Date ); Sales::LinkedTo = "LA"; Max ( Invoice_LA::Invoice Date ); Sales::LinkedTo = "CO"; Max ( Invoice_Colo::Invoice Date ); "" )] Running on the server side gives an empty result but on the client side I get the latest invoice date. The log shows that the sc…

  96. Started by Dani R,

    in the massage area how can i enter a massage that will be: you have i problem with $device ?

  97. Started by wintergreen,

    I was playing around with FM10 this morning. It looks like the new set field by name script step can be used in conjunction with global variables and script triggers to make a simple "undo/redo" system for data entry. The beauty of this system is that all you need to do is just attach the two trigger scripts to any field. The basic premise is that you store the original field contents in a variable upon entry and then compare the field to that value when it's saved. Any changes are stored in a list along with the table and field name. Undoing a change simply requires reverting to the previous value. See the attached file for details. I've not included a m…

    • 5 replies
    • 7.8k views
  98. Started by skingjack2,

    Good day, Perplexing problem (likely minor) but I've created a script that finds all birthdays within a certain range of the current date (i.e. 1 day prior, 7 days post current date). set field [Client_Data::Birthdate]; Month(Get(CurrentDate)) & "/" & day(Get(CurrentDate)) & "/*" New Record/Request set field [Client_Data::Birthdate]; Month(Get(CurrentDate)-1) & "/" & day(Get(CurrentDate)-1) & "/*" New Record/Request set field [Client_Data::Birthdate]; Month(Get(CurrentDate)+1) & "/" & day(Get(CurrentDate)+1) & "/*" New Record/Request etc.... It works fine up to 7 days from the current date & 1 day p…

    • 14 replies
    • 2.5k views
  99. Started by RobinReumers,

    I currently have a big text field that I fill with a script. When I change the text box on the layout, it can be that one line will jump over and split into 2 (if over 70+ characters), now I would like to find out in exactly how many lines it is split. I could say if it's higher than 70 characters: 2, higher than 140: 3, … but this is not very foolproof as it could depend on the words used in the text (breaking at a "space"). Is there any foolproof way that I could use for this calculation?

  100. Hi, I am new to this Forum and please forgive me if I made any mistake. What I want: I would like to build in a kind of (selectable -on/of and days before the birthdate selectable) alarm in which when opening the database that you are warned that a birthday is coming up? I am also looking to make it editable some way so that I can decide on the period (14 days, 10 days, 7 days, whatever I like) the alarm works on. Currently I am using a script by which when I open the database its automatically search for upcoming birthday in next 14 days. Will be waiting for experts help. Thanks, FMbuddy

Recently Browsing 0

  • No registered users viewing this page.

Who's Online (See full list)

  • There are no registered users currently online

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.