> For the complete documentation index, see [llms.txt](https://gebra-it.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gebra-it.gitbook.io/wiki/client-api-reference/functions/loadanddisplayrecordbyid.md).

# loadAndDisplayRecordById

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 [loadRecordById](/wiki/client-api-reference/functions/loadrecordbyid.md) and displayRecord [displayRecord](/wiki/client-api-reference/functions/displayrecord.md)

## Example Usages

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

```javascript
let recordId = 123;
app.loadAndDisplayRecordById(recordId);

await app.loadAndDisplayRecordById(recordId);
```

### Return Values

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