RecordNumber (RecordLockingConflict property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (match syntax table to syntax template, tags and edits)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Template:RecordLockingConflict:RecordNumber subtitle}}
#REDIRECT [[RecordLockingConflict class#RecordNumber property|RecordNumber property]]
This readOnly property returns the numeric value of the <var class="product">Model 204</var> internal record number of the record that has the conflict.


==Syntax==
[[Category:RecordLockingConflict methods|RecordNumber property]]
{{Template:RecordLockingConflict:RecordNumber syntax}}
===Syntax terms===
<table class="syntaxTable">
<tr><th>%number</th>
<td>A numeric variable to receive the record number.
</td></tr>
<tr><th>%recordLockingConflict</th>
<td>A reference to an instance of a <var>[[RecordLockingConflict_class|RecordLockingConflict]]</var> object.
</td></tr></table>
 
==Example==
<ol><li>
The following example shows all the properties of the <var>RecordLockingConflict</var> class.  While the standard record locking conflict information is available for retrieval via the <var class="Product">User Language</var> functions $rlcfile, $rlcrec, $rlcuid, and $rlcusr, that information is also set in the exception object and retrievable via that object:
<p class="code"> %rlc  is object [[RecordLockingConflict_class|RecordLockingConflict]]
  ...
%rec = new(%recnum, none, loopLockStrength=share)
  ...
[[try]] for record %rec
    ...
    end for
[[catch]] recordLockingConflict to %rlc
    [[Audittext|auditText]] Conflict on record {%rlc:recordNumber}    -
      in file {%rlc:filename}
    auditText Conflicting user was userid {%rlc:userid}, -
      with user number:{%rlc:userNumber}
end try
</p></ol>
 
==See also==
{{Template:RecordLockingConflict:RecordNumber footer}}

Latest revision as of 19:15, 10 May 2011