18 posts in this topic
I'm looking to create a script and place it in a button to exist on two layouts (BACKUP and MAIN), to accomplish the following when activated from either layout:
Copy current ACCTNUMBER
If current layout is MAIN
then go to BACKUP layout and show the same ACCTNUMBER record.
current layout is BACKUP
then go to MAIN layout and show the same ACCTNUMBER record.
....I'm sure it's a no brainer but right now I'm totally missing some small step to start the script ....help?
By Per Waagø
I seem to find variating answers to this topic, so here I try again.
How do I use a variable to perform a find in a script? I want to use the field contents of the current record to search for similar records.
Background: We send a lot of people out to different countries and I want to make a script that makes an excel sheet with various data based on the country field of the current record. Hence, if the current record is going to France, I want to see everybody that we currently have in France etc. However, we have two return dates so I need to do two searches:
1. Country+ departure date <=// + arrival date >=//
2. Country+ departure date <=// + Extended arrival date >=//
Is it really true that perform find cannot handle a variable?
Hope you can help.
I had been using FM EasySync for few months now, so it had been working fine till now.
Without having any change in the table structure, i got the error " The attempt to push data into server has failed ( The mesage recevied rom the server was "852" )
852 Error is : Cannot write a file to the external storage
I believe this is related to container fileds I am using. There has been no change in the Container field options. They are still being stored "Externally" on the server with Open Storage option. Also there hasn't been any change on Server policies as well.
I have no clue as to what could have cause this. Anyone having idea about this ??
I am using Insert From URL to send HTTP GET request to my server and get the result.
I have a function PING that returns 1 if the server is online, but it cannot returns 0 if it is not so I am catching the error on filemaker :
Connection timed out; the timeout value is 60 seconds.
Is there a way to reduce this timeout value so the user does not have to wait a minute to know that the server is offline ?
Similarly, if a process takes too long to answer, is there a way I can timeout the Insert From URL command ?
I have a system being hosted using FMS14. I also have a duplicate database hosted for testing/exporting using FMS15. PSOS is much slower in my hands with FMS15.
Both servers are physical boxes, with similar (maybe identical) specs (Cores, RAM HD Space, HD Space available)
I also have a Server Side script that creates a found set, exports data to excel and emails it to a user. (This is based on https://www.skeletonkey.com/restoring-filemaker-clients-found-set-within-server-side-script/). The exports have a couple of related fields, but no unstirred calculations.
Using FMS14 this has been working just fine. Using FMS15 it has been significantly slower.
As a test, I exported 13,000 records from both FMS14 and FMS15.
Using FMS14, it takes about 10 Seconds to recreate the found set, then 70 Seconds to create the export.
Using FMS15, it takes about 20 Seconds to recreate the (same) found set, then 175 Seconds to export the data.
In another series of tests, this time exporting 30,000 records (more realistic in my scenario) I found;
Using FMS14, it takes about 25 Seconds to recreate the found set, then 168 Seconds to create the export. (2.5x longer to find/2x longer to export 3x records)
Using FMS15, it takes about 90 Seconds to recreate the (same) found set, then 825 Seconds to export the data. 9x longer to find/11x longer to export 3x records)
In the last series of tests, this time exporting 50,000 records I found;
Using FMS14, it takes about 59 Seconds to recreate the found set, then 262 Seconds to create the export. (6x longer to find/4x longer to export 5x records)
Using FMS15, it takes about 160 Seconds to recreate the (same) found set, then 1700 Seconds to export the data.(16x to find/24x to export 5x records)
Any ideas? Anyone see similar results with PSOS on FMS15?
Again, the machines are identical, the databases are identical and the scripts are identical. the only difference is FMS14 vs. FMS15. I am also letting another user pull data using ODBC. That has also gotten extremely slow using FMS15, but that is a discussion for another thread. I am not using WebD on this server. In general the FMS15 database performs find using FMP Clients. But the FMS15 functions are not very impressive. I am petrified to move my production database to FMS15, and even considering moving the test server back to FMS14. Help!