RecordNumber (RecordLockingConflict property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with " <span class="pageSubtitle"><section begin=dpl_desc/>Record number of the record that has the conflict<section end=dpl_desc/></span> [[Category:RecordLockingConflict methods|Reco...")
 
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
#REDIRECT [[RecordLockingConflict class#RecordNumber property|RecordNumber property]]


<span class="pageSubtitle"><section begin=dpl_desc/>Record number of the record that has the conflict<section end=dpl_desc/></span>
[[Category:RecordLockingConflict methods|RecordNumber property]]
[[Category:RecordLockingConflict methods|RecordNumber property]]
<p>
RecordNumber is a member of the [[RecordLockingConflict class]].
</p>
==Syntax==
<p class="syntax">%num = %rlc:RecordNumber
</p>
===Syntax terms===
<table class="syntaxTable">
<tr><th>%num</th>
<td>A numeric variable to receive the record number.
</td></tr>
<tr><th>%rlc</th>
<td>A reference to an instance of a RecordLockingConflict object.
</td></tr></table>
==Example==
The following example shows all the properties of the RecordLockingConflict class.
While the standard record locking conflict information is available for
retrieval via the User Language 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
  ...
%rec = new(%recnum, none, loopLockStrength=share)
  ...
try for record %rec
    ...
    end for
catch recordLockingConflict to %rlc
    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>

Latest revision as of 19:15, 10 May 2011