CreateIspec

The CreateIspec method creates a new instance of an Ispec. Note that it does this by effectively making a Page 2 recall to the Ispec to create the new instance. If your application does not support Page 2 recalls, this method does not work correctly.

This feature allows multiple concurrent Ispecs to be held at the client level. A local Ispec can be submitted to the host by making it the current Ispec. The standard properties and methods can then be used to set the data values and send the Ispec to the host system.

Note: Not all Agile Business Suite Systems accept Ispecs in any order. Some systems use Glb.Work to maintain state, and Ispecs can only be submitted in a specified sequence.

Syntax

Object.CreateIspec(IspecName)

<Object> is an expression that evaluates to an instance of a Component Enabler connection object.

<IspecName> is a string value that evaluates to an Ispec name.

Returns

An object of type LINCIspec containing the Ispec data.

Example

’Create new instance of two Ispec objects
Dim objCustIspec as LINCIspec
Dim objPRODIspec as LINCIspec

’Create a local instance of a CUST and a PROD Ispec
Set objCustIspec = LINCAPP.CreateIspec("CUST")
Set objPRODIspec = LINCAPP.CreateIspec("PROD")

’Get next product name
Set LINCAPP.CurrentIspec = objPRODIspec
LINCAPP![MAINT] = "NEX"
LINCAPP.Transmit MsgBox LINCAPP![NAME]

’Get next customer name
Set LINCAPP.CurrentIspec = objCUSTIspec
LINCAPP![MAINT] = "NEX"
LINCAPP.Transmit MsgBox LINCAPP![NAME]