Show / Hide Table of Contents

Class NSImportLine

Used to import data into the system. Representing one entity that will be imported.

Syntax

Constructors

NSImportLine()

Initializes a new instance of the NSImportLine class.

Introduced or updated in version: 7.5

Declaration
NSImportLine

Methods

GetExternalKey()

Introduced or updated in version: 7.5

Declaration
String GetExternalKey()
Returns
Type Description
String

Optional external primary key for the row.

Examples
NSImportLine thing;
String externalKey = thing.GetExternalKey();

GetOperation()

Introduced or updated in version: 7.5

Declaration
Integer GetOperation()
Returns
Type Description
Integer

Which operation will be used? This is a read-only property. See ImportAction.

Examples
NSImportLine thing;
Integer operation = thing.GetOperation();

GetSelected()

Introduced or updated in version: 7.5

Declaration
Bool GetSelected()
Returns
Type Description
Bool

True if the entity shall be imported, false if the entity shall be ignored.

Examples
NSImportLine thing;
Bool selected = thing.GetSelected();

GetType()

Introduced or updated in version: 7.5

Declaration
Integer GetType()
Returns
Type Description
Integer

Which entity type will be created? This is a read-only property. See ImportEntityType.

Examples
NSImportLine thing;
Integer type = thing.GetType();

GetValues()

Introduced or updated in version: 7.5

Declaration
String[] GetValues()
Returns
Type Description
String[]

An array of the values that will be imported on the entity.

Examples
NSImportLine thing;
String[] values = thing.GetValues();

SetExternalKey(String)

Introduced or updated in version: 7.5

Declaration
Void SetExternalKey(String externalKey)
Parameters
Type Name Description
String externalKey

Optional external primary key for the row.

Returns
Type Description
Void
Examples
NSImportLine thing;
String externalKey;
thing.SetExternalKey(externalKey);

SetOperation(Integer)

Introduced or updated in version: 7.5

Declaration
Void SetOperation(Integer operation)
Parameters
Type Name Description
Integer operation

Which operation will be used? This is a read-only property. See ImportAction.

Returns
Type Description
Void
Examples
NSImportLine thing;
Integer operation;
thing.SetOperation(operation);

SetSelected(Bool)

Introduced or updated in version: 7.5

Declaration
Void SetSelected(Bool selected)
Parameters
Type Name Description
Bool selected

True if the entity shall be imported, false if the entity shall be ignored.

Returns
Type Description
Void
Examples
NSImportLine thing;
Bool selected;
thing.SetSelected(selected);

SetType(Integer)

Introduced or updated in version: 7.5

Declaration
Void SetType(Integer type)
Parameters
Type Name Description
Integer type

Which entity type will be created? This is a read-only property. See ImportEntityType.

Returns
Type Description
Void
Examples
NSImportLine thing;
Integer type;
thing.SetType(type);

SetValues(String[])

Introduced or updated in version: 7.5

Declaration
Void SetValues(String[] values)
Parameters
Type Name Description
String[] values

An array of the values that will be imported on the entity.

Returns
Type Description
Void
Examples
NSImportLine thing;
String[] values;
thing.SetValues(values);
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top