5 Replies Latest reply on Jan 28, 2013 7:02 AM by sfmoore2000

    newPerformScriptCommand?

    sfmoore2000

      Hi Team,

       

      Does anyone know of a reason why I cannot get a simple script to fire using the newPerformScriptCommand. I am running Filemaker 12 Pro Advanced, and have checked the security and everything seems ok. Could I possibly be missing something in my database setup? Here is the code that I am running:

       

       

      <?php

      include ('dbaccess.php');

      ?>

       

      <form action="RunScript.php" method="post" name="Delete">

      <!--Click the Delete button to run the Cash Records Delete script-->

      <input name="Delete" type="submit" value="Delete" />

      </form>

       

      <?php

      if(isset($_POST['Delete']) and $_POST['Delete'] == 'Delete')

      {

      $layout = 'Family_Accounts';

      $script = 'Cash Records Delete';

      $parameter = '';

       

      //Call the script with the parameter

      $script_object = $fm->newPerformScriptCommand($layout, $script, $parameter);

       

       

      //Run the script

      $script_result = $script_object->execute();

       

      Any help anyone can provide will be greatly appreciated,

      Thank You,