Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
en:wiki:2.-desarrollo-app:2.3.-codigo:c.-eventos:16-sys-message:start [2018/02/28 15:34] – [SYS MESSAGE Node] patricia | en:wiki:2.-desarrollo-app:2.3.-codigo:c.-eventos:16-sys-message:start [2018/09/03 18:45] – [SYS MESSAGE Node] ejetoro | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{indexmenu_n> | ||
+ | ====== SYS MESSAGE Node ====== | ||
+ | \\ | ||
+ | The **sys-message** node is a special node of the " | ||
+ | Used to make actions when some of the events carried out by < | ||
+ | These events are numerically coded, and following we show an example of each one of them where we show a descriptive message of the action which every event code belongs to.\\ | ||
+ | \\ | ||
+ | |||
+ | <code xml> | ||
+ | < | ||
+ | <action name=" | ||
+ | <param name=" | ||
+ | <param name=" | ||
+ | <!-- Este parámetro liveResponse en iOS aún no está implementado | ||
+ | <param name=" | ||
+ | --> | ||
+ | < | ||
+ | sysMessage(codigo, | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <code javascript> | ||
+ | function sysMessage(codigo, | ||
+ | var cadena=""; | ||
+ | switch(codigo) { | ||
+ | |||
+ | case 1000: | ||
+ | cadena=" | ||
+ | break; | ||
+ | |||
+ | case 1001: | ||
+ | cadena=" | ||
+ | break; | ||
+ | |||
+ | case 1002: | ||
+ | cadena=" | ||
+ | break; | ||
+ | |||
+ | case 1003: | ||
+ | |||
+ | /* Provisionamiento seguro. */ | ||
+ | /* Declarar el nodo sys-message requiere que este caso lo controle el programador, | ||
+ | /* es responsabilidad del programador limpiar la cola de réplica y cerrar la aplicación. | ||
+ | /* ************************ */ | ||
+ | |||
+ | ui.msgBox(" | ||
+ | var bResult = replica.processReplicatorQueue(liveResponse); | ||
+ | if (bResult) { | ||
+ | // | ||
+ | appData.failWithMessage(-11888, | ||
+ | } else { | ||
+ | ui.showToast(" | ||
+ | } | ||
+ | break; | ||
+ | } | ||
+ | } | ||
+ | </ | ||