¡Esta es una revisión vieja del documento!
Nodo ONCHANGE
En este nodo se describen los campos cuyos cambios se quieren monitorear y las acciones que se desea que se ejecuten cuando ocurran los cambios.
Cuando ocurre un cambio de valor en una propiedad, se buscan las acciones descritas de la siguiente forma.
<onchange> <field name="campo"> <action atributos> ... </action> </field> <field name="campo"> <action ....> ... </action> </field> ...... </onchange>
Ejemplo de uso
<onchange> <field name="MAP_HOMBRE"> <action name="runscript"> <script language="VBScript"> if this("MAP_HOMBRE") = "1" then this("MAP_MUJER") = "0" this("SEXO") = "H" else if this("MAP_MUJER") = "0" then this("MAP_HOMBRE") = "1" this("SEXO") = "H" end if end if </script> </action> </field> <field name="MAP_MUJER"> <action name="runscript"> <script language="VBScript"> if this("MAP_MUJER") = "1" then this("MAP_HOMBRE") = "0" this("SEXO") = "M" else if this("MAP_HOMBRE") = "0" then this("MAP_MUJER") = "1" end if end if </script> </action> </field> </onchange>