⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Callback_before_update not fired



John Ophof
  • profile picture
  • Member

Posted 01 March 2015 - 10:44 AM

I have a page working fine with the grid and showing a form editing page the complete code can be seen here http://pastebin.com/fVHPcEkX the page is generated by a form generator which I love to share with you.

 

The callback_before_update function _update_record is never fired.

 

Here is the table structure of the tables concerned

http://pastebin.com/ge3y8Pax

 

What is wrong? When I don't use the callback_before_update the page is never updated after I do Update changes (keep circling around with the message Loading updating changes).

 

Help greatly wanted I have upcoming demo's and I love to give credits to Grocerycrud.

 

Here is my view code I set the value of the select down boxes.

 

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <?php foreach ($output->css_files as $file): ?>
      <link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
    <?php endforeach; ?>
    <?php foreach ($output->js_files as $file): ?>
      <script src="<?php echo $file; ?>"></script>
    <?php endforeach; ?>
    <style type='text/css'>
      body
      {
          font-family: Arial;
          font-size: 14px;
      }
      a {
          color: blue;
          text-decoration: none;
          font-size: 14px;
      }
      a:hover
      {
          text-decoration: underline;
      }
    </style>
    <script type="text/javascript">
      $(document).ready(function () {
        $('#field-CEA_codeID').val('<?php if (isset($CEA_codeID)) echo $CEA_codeID ?>');
$('#field-CEA_codeID').trigger("chosen:updated");
$('#field-destination_codeID').val('<?php if (isset($destination_codeID)) echo $destination_codeID ?>');
$('#field-destination_codeID').trigger("chosen:updated");

      });
    </script>

  </head>
  <body>
    <div>

    </div>
    <div style='height:20px;'></div>
    <div>
        <?php echo $output->output; ?>
    </div>
  </body>
</html>

 

 

John