Note |
---|
|
As of July 25th, 2023, there is a content freeze on this page. |
This API fetches the record specified by the search argument from the file.
...
search argument
The value can be a number
, string
, or array
value specifying a relative record number
(RRN
), key value
, or list of key values
(array
of number
/string
).
don't lock (optional)
A boolean
true
can be passed to avoid locking the record if the file is open for update
/delete
. If this parameter is set to boolean
false
or omitted records will be locked for update
/delete
files.
record format name (optional)
A string
value specifying the record format name can be passed.
input data structure (optional)
A Profound.js data structure reference
can be passed.
If specified, the referenced data structure will be populated with the record data. If the data structure is not qualified, you must wrap the parameter with the pjs.ds() API.
Section |
---|
Column |
---|
| RPG Equivalent
CHAIN
|
Column |
---|
| Exception Handling
An Error instance will be thrown with the following properties: - message - The message text.
- error - The message id.
- help - The message help text.
|
|
...
Code Block |
---|
language | javascript |
---|
title | Retrieve record with first key key equal to 101 |
---|
|
pjs.defineTable("myfile", { keyed: true, read: true });
myfile.getRecord(101);
if (myfile.found())
doSomething(); |
Video Tutorial
Widget Connector |
---|
width | 640 |
---|
url | https://www.youtube.com/watch?v=1Dgl8yP2b2Q |
---|
height | 360 |
---|
|