No validation for dynamic update

Any tips and tricks that has to with the ADDT that doesn't fit into one of the other categories
iKollect
Posts: 7
Joined: 2011-05-22 19:09

No validation for dynamic update

Post by iKollect » 2011-06-03 13:02

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

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: No validation for dynamic update

Post by Fred » 2011-06-03 22:52

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

Post Reply