Page 1 of 1

No validation for dynamic update

Posted: 2011-06-03 13:02
by iKollect
I have a dynamic list and a dynamic form with custom validation. Data insertion and validation works perfect on insert, but not on update. It just updates the data into the table no matter what I put into the fields.

What i've tried: Double click on the Validate Form (formValidation) server behavior, click on the Advanced tab and in the Transactions table both insert and update transactions are listed with priority of "10" and type "BEFORE". I haven't changed anything it's the default.

---------------------------------
I'm using DW CS4 with ADDT

Re: No validation for dynamic update

Posted: 2011-06-03 22:52
by Fred
If you look at the actual code and compare it to a page that works, any difference?

Here is an example line

Code: Select all

// Make an update transaction instance
$upd_content = new tNG_multipleUpdate($conn_siteConn);
$tNGs->addTransaction($upd_content);
// Register triggers
$upd_content->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Update1");
$upd_content->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);
$upd_content->registerTrigger("END", "Trigger_Default_Redirect", 99, "........
Note this is kollection pro. version