loadAndDisplayRecord

Loads a record, based on the value in the control, given as a parameter in the first argument and displays it. This function just combines loadRecord and displayRecord

Example Usages

Simple (pay attention to the await keyword)

app.loadAndDisplayRecord(keyFieldID);
await app.loadAndDisplayRecord(keyFieldID);

Return Values

The loadAndDisplayRecord function returns a promise that resolves to the loaded record. The resolved value of the promise is the loaded record. If the record cannot be loaded, the promise will resolve to null.

Last updated