# MenuItemRecord

## Overview

`MenuItemRecord` represents a single menu item within a `MenuFoundSet`, allowing access to a record’s data and its parent `foundset`. This structure enables menu items to behave as records, facilitating component interactions that treat menu items as data entries. For more information on working with menu datasources, refer to [MenuFoundSet](https://docs.servoy.com/reference/servoycore/dev-api/database-manager/menufoundset).

## **Extends**

[JSBaseRecord](https://docs.servoy.com/reference/servoycore/dev-api/database-manager/jsbaserecord)

## Properties Summarized

| Type                                                                                           | Name                  | Summary                                |
| ---------------------------------------------------------------------------------------------- | --------------------- | -------------------------------------- |
| [JSFoundSet](https://docs.servoy.com/reference/servoycore/dev-api/database-manager/jsfoundset) | [foundset](#foundset) | Returns parent foundset of the record. |

## Methods Summarized

| Type                                                                         | Name                              | Summary                                            |
| ---------------------------------------------------------------------------- | --------------------------------- | -------------------------------------------------- |
| [String](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/string) | [getDataSource()](#getdatasource) | Returns the records datasource string (menu:name). |

## Properties Detailed

### foundset

Returns parent foundset of the record.

**Type**\
[JSFoundSet](https://docs.servoy.com/reference/servoycore/dev-api/database-manager/jsfoundset) The parent foundset of the record.

**Sample**

```js
var parent = record.foundset;
```

## Methods Detailed

### getDataSource()

Returns the records datasource string (menu:name).

**Returns:** [String](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/string) The datasource string of this record.

**Sample**

```js
var ds = record.getDataSource();
```

***
