# 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](loadrecord) and [displayRecord](displayrecord)

## Example Usages

Simple (pay attention to the **await** keyword)

```javascript
app.loadAndDisplayRecord(keyFieldID);
```

```javascript
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.
