Jump to content

ScottBaxter

Members
  • Content count

    37
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ScottBaxter

  • Rank
    member
  1. ScottBaxter

    Enable XML Web Publishing

    Thanks for the reply Steven... I was just wondering do you have to restart the server once you have enabled XML.
  2. ScottBaxter

    Enable XML Web Publishing

    Anyone around? Thanks, Scott
  3. ScottBaxter

    pc Enable XML Web Publishing

    Hi Guys, We currently have a FileMaker Server instanace running, it already has PHP web publishing running. I'm just wondering is it as simple as ticking enable XML web publishing for it to be up and running or have I got to restart the server?? Thanks
  4. ScottBaxter

    XML Web Publishing

    Hi Guys, We currently have a FileMaker Server instanace running, it already has PHP web publishing running. I'm just wondering is it as simple as ticking enable XML web publishing for it to be up and running or have I got to restart the server?? Thanks
  5. ScottBaxter

    FileMaker API & PHP 5.5.3

    Yea as I'm using Laravel 4 it just doesn't want to work... :-(
  6. ScottBaxter

    FileMaker API & PHP 5.5.3

    Hi Guys, I'm just creating a new web app that needs to integrate into our FileMaker database. The website is running PHP 5.5.3. Is there an issues with the API & 5.5.3 Thanks, Scott
  7. OK Thanks for the reply. So if I run it straight after record->commit() will it only run on that last record it has created? Thanks, Scott
  8. Sorry, was rushing when I was posting... I am not using the newPerformScriptCommand I was just wondering if it would work better than the script trigger? What I have done to test this is looked at the last field in PHP script and set a script trigger against that field in FileMaker, I have then watched the script debugger while in that layout to see if anything is called when the PHP script is submitted but nothing happens and the script doesn't run. If it just isn't possible to run it like this I will have to put the validation on the php script side but I didn't really want to as it's a little slow... Thanks, Scott
  9. Howdy guys, I've just tried this now it doesn't seem to want to work... I've added the set trigger script when the "last field" exits but it doesn't run. Do you think I could just run: //CREATE PERFORM SCRIPT COMMAND $command = $fm->newPerformScriptCommand($layoutName, $scriptName, $scriptParameter); //EXECUTE THE COMMAND $result = $command->execute(); After I have added all the data too the record? Will it only run for that record that has just been added or will it run for all records in the database? Thanks, Scott
  10. Thanks for the reply, I have answered your suggestions below: 1 - I don't think this will work after the PHP input has finished. 2 - The issue with this is a record probably changes every second within the office so this would work very well for us. 3 - We need to check that the number is actually valid not just a fake mobile number. 4 - I can't use IWP as it's coming from a data form. Have you had any luck using this command thorough PHP: //CREATE PERFORM SCRIPT COMMAND $command = $fm->newPerformScriptCommand($layoutName, $scriptName, $scriptParameter); //EXECUTE THE COMMAND $result = $command->execute(); I would be able to call this after the script has finished... Thanks, Scott
  11. Howdy Guys, Has anyone got any information on the above? Thanks, Scott
  12. Hello, sorry for the slow reply. This is the script that I've got set to trigger when one of the field changes... and this is the PHP script that adds the new record from the website. <?php ob_start(); require_once("./FileMaker.php"); $fm = new FileMaker('1 Private 2005', '1.1.1.1'); $keys = array( 'VoucherCode', 'Title', 'First Name', 'LastName', 'EMailAddress', 'TelNoMobileorHome' ); global $keys; $result = array(); $record = $fm->createRecord('Import'); foreach ($keys as $fieldname) { $value = null; if (!strpos($fieldname, " ")) { $value = $_POST[$fieldname]; } else { $value = $_POST[str_replace(" ", "_", $fieldname)]; } $record->setField($fieldname, $value); } $result = $record->commit(); print "<p>finished!"; ob_end_flush(); ?> Can anyone think of a way of doing this?
  13. Hey, I've tried adding the script on the field that I think will be last populated but it just seems to ignore the trigger script... I've also tried adding it to the layout trigger scripts but still no luck.. Any other idea? Do you think it's because the user "php" has the permissions of "read only"? Thanks, Scott
  14. It's going to be hard to work out what field is going to be the latest field that is entered... Do you think the php script will add them in order??
×

Important Information

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