User Tools

Site Tools


en:wiki:2.-desarrollo-app:2.3.-codigo:c.-eventos:12.-replica-ok:start



REPLICA-OK Node


This node serves to capture the replica event of any database table.

If we want to monitorize the replica operations of the gen_visitas table, we would have to use the replica-ok-gen_visitas node, and if we want to monitor the oprations of the gen_sms table we would have to use the replica-ok-gen_sms node.


This node has to be specified INSIDE the companies collection and must be written in lowercase.

Example of Code:

<replica-ok-gen_sms>
	<action name="runscript">
		<script language="javascript">
 
			// El primer parámetro es el ID de la notificación por si hay que modificarla luego
			ui.showNotification(1, “Título”, “Mensaje”);
 
		</script>
	</action>
</replica-ok-gen_sms>
 
<replica-ok-gen_avisos>
	<action name="runscript">
		<script language="VBScript">
			'Aqui hacemos lo que corresponda cuando se reciban operaciones de réplica de la tabla gen_avisos
		</script>
	</action>
</replica-ok-gen_avisos>
en/wiki/2.-desarrollo-app/2.3.-codigo/c.-eventos/12.-replica-ok/start.txt · Last modified: 2017/12/01 09:54 by patricia