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
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