JayEdgar
Posts: 77
|
| Posted: 02/10/2011, 8:37 AM |
|
Add a hidden field. When any value on the row changes, update the hidden field. Then, when processing, check and see if the hidden value is changed. if not, don't execute update.
The javascript:
<script language="JavaScript" type="text/javascript">
function SetChanged(RowName) {
document.getElementById(RowName).value = 1;
}
</script>
In the controls:
<input type="checkbox" value="1" name="{Deleted_Name}" onclick="SetChanged('{Row_Name}')" {Deleted}>
<input type="hidden" value="{Row}" name="{Row_Name}" id="{Row_Name}">
Before build update, insert and delete:
global $Form_Name;
if ($Form_Name->Row->GetValue() == null)
$Form_Name->Row->SetValue(0)
Then before execute update, insert and delete:
global $Form_Name;
$Form_Name->ds->CmdExecution = $Form_Name->Row->GetValue();
Cheers!
Jay
|