<interceptors> <interceptor className= "interceptors.global_test"/>
</interceptors>
I configured both a table and global interceptor and it appears in the log that the table is called first and the global second with changes made in the first interceptor (table) being passed to the second (global). The final value then was what I set in the global interceptor.
<interceptors> <interceptor className= "interceptors.global_test"/>
</interceptors>
<table name="AUTHOR"> <field name="AUTHOR_ID" fieldType="int" isKey="true" autoInc="true"/> <field name="NAME" fieldType="varchar" sortable="true"/> <field name="ORGANISATION" fieldType="varchar" sortable="true"/> <interceptor className = "interceptors.global_test2"/> </table>
LOG RESULTS:
value submitted to form -->organisation 123456789
Global2 preUpdate called ORGANISATION field [ORGANISATION] has value, oldvalue [organisation 123456789, organisation 12345678] Used in Global2: this.setValue(table, fieldValues, "ORGANISATION", "set in Global2");
Global preUpdate called ORGANISATION field [ORGANISATION] has value, oldvalue [set in Global2, organisation 12345678] Used in Global1: this.setValue(table, fieldValues, "ORGANISATION", "set in Global1");
Final Value appearing in form --> set in Global1 -- Shawn
Karma is immutable, so act accordingly!
------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ DbForms Mailing List
http://www.wap-force.net/dbforms