NGOAddGlobalIndex

This call is used to add a new Global Indexes or dData field to the sSystem. This call can also be used to check only the existence of that gGlobalIIndex. If the GlobalIndex with the same nName exist, then a wWarning code is returned and with the existing gGlobalIIndex. is returned along with. User must have pPrivilege to add gGlobal iIndex to the sSystem.

 

Input Parameter description

View sample InputXml

Output Parameter description

View sample OutputXml

Errors and Warnings

 

 

Input Parameters description

Name

Parent Tag

Description

Valid Values

Default

Values

Option

Root

Unique option for the call.

NGOAdd

GlobalIndex

 

CabinetName

Root

Name of the Cabinet to which the User wants to connect.

 

 

UserDBId

Root

UserDatabase ID, which that is returned in the NGOConnect

Cabinet call.

 

 

CheckExistence

Only

Root

Flag , whichthat specifies specifies whether to check for the existence of the Global Index. just to CheckExistence only for the global index

Y- Check existence only.

N- Do not check the existence and add the gGlobal iIndex to the sSystem.

N

Field

Root

Contains the information about a particular field.

 

N/A

IndexName

Field

Name of the dData Field.

 

N/A

IndexType

Field

Type of the Data Fielddata field.

 

I – Integer Type

T – Text Type

S – String Type

L – Long Type

D – Date Type

B – Boolean Type

F – Float Type

X – Document Index

N/A

IndexLength

Field

Length of the field. Used only in case of String field and User has to send the value

 

N/A

IndexFlag

Field

Index flag of the field.

 

“D” – Data Field

“G” – Global Index

N/A

 

Output Parameters description

Name

Parent Tag

Description

Option

Root

Unique option for the call.

Status

Root

Status of the call. If it is 0, then the call is successful.

IndexId

Root

Index of the dData field.

 

Errors returned from call

Code

Message

Comments

-50043

GlobalIndex not found.

Global iIndex not found in the sSystem. This exception is raised when checkexistenceonly flag is “Y” and gGlobal iIndex is not found in the sSystem.

-50096

Insufficient rights for the current operation.

User des not posses pPrivileges to add gGlobal iIndex to the sSystem.

-50047

Invalid Field length.

This exception is raised only in case of string and if the length specified length is > 255.

-50046

Invalid Field Type.

Field type specified in input is invalid.

-50044

GlobalIndex already exist.

This exception is raised for Index flag of type “G” when gGlobal iIndex already exists on the sSystem.

-50074

Invalid parameters.

This exception is raised when fField nName is not specified in the input.