AmosUpdateEvent()
The AmosUpdateEvent();
rule updates the
event in the table, mojo.events
. The rule uses the
Serial number of the in-scope event to do this. The rule does not
update the in-scope record itself. The in-scope records simply goes
out of scope at the end of the operation.
Syntax
The AmosUpdateEvent();
statement
uses following syntax.
AmosUpdateEvent ( attribute nameattribute value );
Example
The following example shows how
to use the AmosUpdateEvent();
rule to update an integer
field.
int success = 0;
success = AmosUpdateEvent("NmosCauseType", 1);
This is
equivalent to the following OQL action:update mojo.events set NmosCauseType=1 where Serial=Serial;
Where Serial is
the serial number of the in-scope event.Example
The following example shows how
to use the AmosUpdateEvent();
rule to update text
string fields.
success = AmosUpdateEvent("NmosSerial", "0");
success = AmosUpdateEvent("SuppressionState", "0");
success = AmosUpdateEvent("SuppressionTime", "0");
Example
The following is a further example
of how to use the AmosUpdateEvent();
rule to update
an integer field.
int success = 0
text myname = "NmosCauseType";
int myvalue = 2;
success = AmosUpdateEvent(myname, myvalue);