# ActionImportData

## Content

# Class: ActionImportData

Represents an action that imports FDF data into a document's interactive form from a specified file.

## Extends

- [`ActionBase`](ActionBase)

## Constructors

### Constructor

```ts
new ActionImportData(om): ActionImportData;
```

Creates a new ActionImportData.

#### Parameters

##### om

[`ObjectManager`](ObjectManager)

[ObjectManager](ObjectManager) that controls the lifetime of the ActionImportData.

#### Returns

`ActionImportData`

#### Overrides

```ts
ActionBase.constructor
```

### Constructor

```ts
new ActionImportData(): ActionImportData;
```

Creates a new ActionImportData.

#### Returns

`ActionImportData`

#### Overrides

```ts
ActionBase.constructor
```

## Accessors

### file

#### Get Signature

```ts
get file(): FileSpecification;
```

Gets or sets the FDF file from which to import the data.

##### See

 - [FileSpecification](FileSpecification)
 - [FileSpecificationProperties](../type-aliases/FileSpecificationProperties)

##### Returns

[`FileSpecification`](FileSpecification)

***

### id

#### Get Signature

```ts
get id(): number;
```

Gets the reference to the object.

##### Returns

`number`

#### Inherited from

[`ActionBase`](ActionBase).[`id`](ActionBase#id)

***

### om

#### Get Signature

```ts
get om(): ObjectManager;
```

Gets the owner [ObjectManager](ObjectManager) instance.

##### Returns

[`ObjectManager`](ObjectManager)

#### Inherited from

[`ActionBase`](ActionBase).[`om`](ActionBase#om)

## Methods

### free()

```ts
free(): void;
```

Detaches the object from the [ObjectManager](ObjectManager) and deallocates its memory, if possible.

#### Returns

`void`

#### Inherited from

[`ActionBase`](ActionBase).[`free`](ActionBase#free)

***

### rebind()

```ts
rebind(omTo): void;
```

Rebinds the object from the current [ObjectManager](ObjectManager) to the specified one.

#### Parameters

##### omTo

[`ObjectManager`](ObjectManager)

The new [ObjectManager](ObjectManager) for the object.

#### Returns

`void`

#### Inherited from

[`ActionBase`](ActionBase).[`rebind`](ActionBase#rebind)
