CurrentRecordIsUpdated (System function): Difference between revisions
m (1 revision) |
(Automatically generated page update) |
||
(16 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{Template:System:CurrentRecordIsUpdated subtitle}} | {{Template:System:CurrentRecordIsUpdated subtitle}} | ||
The <var>CurrentRecordIsUpdated</var> is shared function which returns a | The <var>CurrentRecordIsUpdated</var> is shared function which returns a Boolean value that indicates whether the current record in the current record-oriented loop has been updated in the current transaction. | ||
==Syntax== | ==Syntax== | ||
{{Template:System:CurrentRecordIsUpdated syntax}} | {{Template:System:CurrentRecordIsUpdated syntax}} | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>%boolean</th><td>A <var>[[Boolean enumeration]]</var> value indicating whether the current record has been updated | <tr><th>%boolean</th><td>A <var>[[Boolean enumeration]]</var> value indicating whether the current record has been updated.</td></tr> | ||
<tr><th><var>%(System)</var></th><td>The class name in parentheses denotes a shared method.</td></tr> | |||
<tr><th><var class="nobr">%(System)</var></th><td>The class name in parentheses denotes a [[Notation conventions for methods#Shared methods|shared]] method.</td></tr> | |||
</table> | </table> | ||
==Usage Notes== | ==Usage Notes== | ||
<ul> | <ul> | ||
<li><var>CurrentRecordIsUpdated</var> is available in <var class="product">[[Sirius Mods| | <li><var>CurrentRecordIsUpdated</var> is available in <var class="product">[[Sirius Mods|Sirius Mods]]</var> Version 7.7 and later. | ||
</ul> | </ul> | ||
==Example== | ==Example== | ||
The following request fragment sketches a record updating loop that reports to the audit trail if this is an initial update for each record in the transaction: | |||
<p class="code">%recs is object recordset in file myfile | <p class="code">%recs is object recordset in file myfile | ||
%rec is object record in file myfile | %rec is object record in file myfile | ||
Line 29: | Line 31: | ||
... | ... | ||
end for | end for | ||
</p | </p> | ||
==See also== | ==See also== | ||
<ul> | <ul> | ||
<li><var>[[RecordIsUpdated (System function)|RecordIsUpdated]]</var> reports whether a record you identify by filename and record number has been updated within the current transaction. | <li><var>[[RecordIsUpdated (System function)|RecordIsUpdated]]</var> reports whether a record you identify by filename and record number has been updated within the current transaction. | ||
<li><var>[[IsUpdated (Record function)|IsUpdated]]</var> reports whether a record referenced by a <var>[[Record class|Record]]</var> object has been updated within the current transaction. | |||
</ul> | </ul> | ||
{{Template:System:CurrentRecordIsUpdated footer}} | {{Template:System:CurrentRecordIsUpdated footer}} |
Latest revision as of 00:26, 16 February 2014
Is the current record updated? (System class)
[Introduced in Sirius Mods 7.7]
The CurrentRecordIsUpdated is shared function which returns a Boolean value that indicates whether the current record in the current record-oriented loop has been updated in the current transaction.
Syntax
%boolean = %(System):CurrentRecordIsUpdated
Syntax terms
%boolean | A Boolean enumeration value indicating whether the current record has been updated. |
---|---|
%(System) | The class name in parentheses denotes a shared method. |
Usage Notes
- CurrentRecordIsUpdated is available in Sirius Mods Version 7.7 and later.
Example
The following request fragment sketches a record updating loop that reports to the audit trail if this is an initial update for each record in the transaction:
%recs is object recordset in file myfile %rec is object record in file myfile fd to %recs end find for each record in %recs %rec = CurrentRecord if %(system):currentRecordIsUpdated ne true then audit 'First update of Record num: ' %rec:RecordNumber end if ... end for
See also
- RecordIsUpdated reports whether a record you identify by filename and record number has been updated within the current transaction.
- IsUpdated reports whether a record referenced by a Record object has been updated within the current transaction.