Visual Toolkit Core Reference
Visual Toolkit Core Reference
Library Reference
Copyright © 2018 Infor
Important Notices
The material contained in this publication (including any supplementary information) constitutes and
contains confidential and proprietary information of Infor.
By gaining access to the attached, you acknowledge and agree that the material (including any
modification, translation or adaptation of the material) and all copyright, trade secrets and all other
right, title and interest therein, are the sole property of Infor and that you shall not gain right, title or
interest in the material (including any modification, translation or adaptation of the material) by virtue
of your review thereof other than the non-exclusive right to use the material solely in connection with
and the furtherance of your license and use of software made available to your company from Infor
pursuant to a separate agreement, the terms of which separate agreement shall govern your use of
this material and all supplemental related materials ("Purpose").
In addition, by accessing the enclosed material, you acknowledge and agree that you are required to
maintain such material in strict confidence and that your use of such material is limited to the
Purpose described above. Although Infor has taken due care to ensure that the material included in
this publication is accurate and complete, Infor cannot warrant that the information contained in this
publication is complete, does not contain typographical or other errors, or will meet your specific
requirements. As such, Infor does not assume and hereby disclaims all liability, consequential or
otherwise, for any loss or damage to any person or entity which is caused by or relates to errors or
omissions in this publication (including any supplementary information), whether such errors or
omissions result from negligence, accident or any other cause.
Without limitation, U.S. export control laws and other applicable export and import laws govern your
use of this material and you will neither export or re-export, directly or indirectly, this material nor any
related materials or supplemental information in violation of such laws, or use such materials for any
purpose prohibited by such laws.
Trademark Acknowledgements
The word and design marks set forth herein are trademarks and/or registered trademarks of Infor
and/or related affiliates and subsidiaries. All rights reserved. All other company, product, trade or
service names referenced may be registered trademarks or trademarks of their respective owners.
Publication Information
Release: Infor VISUAL
Publication date: November 14, 2018
About this guide
This guide describes the objects available for use in the Infor VISUAL API Core library.
NOTE: This class library exposes classes and methods that are not compatible with the VISUAL API
Toolkit. Only the classes and methods specifically described in this document are compatible. The
use of any class or method that is not described in this document is not supported.
Intended audience
The intended audience of this guide is developers who are using the API Toolkit to extend the
VISUAL solution.
Contacting Infor
If you have questions about Infor products, go to the Infor Xtreme Support portal at
www.infor.com/inforxtreme.
If we update this document after the product release, we will post the new version on this Web site.
We recommend that you check this Web site periodically for updated documentation.
If you have comments about Infor documentation, contact documentation@infor.com.
Supported languages
These languages are supported for use with the toolkit:
• Visual Basic
• C#
While it is possible to use any .NET-aware programming language with the toolkit, other languages
are not officially supported.
About this guide
Support information
The API Toolkit will be updated regularly as more class members are added to each assembly,
schema changes are made, and any reported issues are resolved. Infor Support cannot assist you
with developing customized code using the API Toolkit. For assistance with customizations, contact
Infor Consulting Services or your channel partner.
The functionality provided within the API Toolkit will not be extended beyond the standard
functionality experienced in the VISUAL application itself. Enhancement requests with compelling
business cases detailing how suggested alternatives are not viable will be evaluated and
considered.
Only the public members that are described in the API toolkit documentation are supported for use.
No other private or public members are supported.
Infor is not responsible for data incorrectly entered to the database through the use of the API
Toolkit. Customers must establish a full test environment to ensure that data created by APIs
functions in the same manner as data created through the VISUAL interface.
Lsa.Data Namespace
Classes
Class Description
Dbms Static class containing major entry points to access data in all databases.
Dbms acts more or less as the factory for all other object types in the system.
Dbms Class
Static class containing major entry points to access data in all databases. Dbms acts more or
less as the factory for all other object types in the system.
Inheritance Hierarchy
System.Object
Lsa.Data.Dbms
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Methods
Name Description
GetNextNumberAndAdvance(String,
String, String, String, String, String,
String, String, Int32, Boolean, Int16)
OpenDirect(String, String, String, String, Open the database in client (local) mode
String, String) using direct values rather than looking for
connection values in the Database.Config
file. An already open instance is not
reopened unless the user is changing.
OpenDirect does not support Single Sign
On. To connect with single sign on, use
OpenLocalSSO.
OpenDirect(String, String, String, String, Open the database in client (local) mode
String, String, String, String) using direct values rather than looking for
connection values in the Database.Config
file. An already open instance is not
reopened unless the user is changing.
OpenDirect does not support Single Sign
On. To connect with single sign on, use
OpenLocalSSO.
See Also
Lsa.Data Namespace
Dbms.Dbms Methods
The Dbms type exposes the following members.
Methods
Name Description
GetNextNumberAndAdvance(String,
String, String, String, String, String,
String, String, Int32, Boolean, Int16)
OpenDirect(String, String, String, String, Open the database in client (local) mode
String, String) using direct values rather than looking for
connection values in the Database.Config
file. An already open instance is not
reopened unless the user is changing.
OpenDirect(String, String, String, String, Open the database in client (local) mode
String, String, String, String) using direct values rather than looking for
connection values in the Database.Config
file. An already open instance is not
reopened unless the user is changing.
See Also
Dbms Class
Lsa.Data Namespace
Dbms.Close Method
Closes the named database.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of the database instance to close.
Return Value
Type: Boolean
Boolean success or failure
See Also
Dbms Class
Lsa.Data Namespace
Dbms.CloseAll Method
Closes all open databases.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
See Also
Dbms Class
Lsa.Data Namespace
Dbms.CompareDataspaceVersions Method
Compare the existing dataspace version to the argument. Existing dataspace version is the left
hand argument, and compareVersion is the right hand argument in the comparison.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
version1
Type: System.String
First version to compare
version2
Type: System.String
Second version to compare
Return Value
Type: Int32
Zero, less than zero, or greater than zero.
Remarks
Zero is returned if version 1 and version 2 are the same version. Negative 1 is returned if version
1 preceeds version 2. Positive 1 is returned if version 1 succeeds version 2.
See Also
Dbms Class
Lsa.Data Namespace
Dbms.DatabaseName Method
Gets the database name of the named instance. For Visual Manufacturing databases, this is the
second parameter in the data source.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to test.
Return Value
Type: String
Server Name/Database Name
See Also
Dbms Class
Lsa.Data Namespace
Dbms.DeleteNextNumber Method
Delete the next number control record for the specified column in the named database instance.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Instance name to process.
dataspaceName
Type: System.String
Dataspace containing table and column. Not used for VMFG databases.
tableName
Type: System.String
Table containing column.
columnName
Type: System.String
Column name. Typically a primary key.
context
Type: System.String
Context of numbering. Blank means GENERAL.
See Also
Dbms Class
Lsa.Data Namespace
Dbms.GetInstanceInfo Method
Returns instance information for the named instance.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of the instance to return
Return Value
Type: Instance
Instance information.
Remarks
Using a blank name will return the first open instance.
See Also
Dbms Class
Lsa.Data Namespace
Dbms.GetNextNumber Method
Overload List
Name Description
See Also
Dbms Class
Lsa.Data Namespace
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to process.
dataspaceName
Type: System.String
Dataspace name containing table and column. Not used for VMFG databases.
tableName
Type: System.String
Table name containing column.
columnName
Type: System.String
Column name. Typically a primary key.
context
Type: System.String
Context of numbering. Blank means GENERAL.
alphaPrefix
Type: System.String
Up to 4 character prefix on new numbers.
alphaSuffix
Type: System.String
Up to 4 character suffix on new numbers.
nextNumber
Type: System.Int32
Next available number. 4 to 9 digits long.
leadingZeros
Type: System.Boolean
True to request leading zeros on new numbers.
decimalPlaces
Type: System.Int16
Number of digits in new numbers. 4 to 9, inclusive.
Return Value
Type: String
Next number
See Also
Dbms Class
GetNextNumber Overload
Lsa.Data Namespace
Syntax
C#
VB
Parameters
instanceName
Type: System.String
dataspaceName
Type: System.String
tableName
Type: System.String
columnName
Type: System.String
context
Type: System.String
siteID
Type: System.String
alphaPrefix
Type: System.String
alphaSuffix
Type: System.String
nextNumber
Type: System.Int32
leadingZeros
Type: System.Boolean
decimalPlaces
Type: System.Int16
Return Value
Type: String
See Also
Dbms Class
GetNextNumber Overload
Lsa.Data Namespace
Dbms.GetNextNumberAndAdvance Method
Overload List
Name Description
GetNextNumberAndAdvance(String, String,
String, String, String, String, String, String,
Int32, Boolean, Int16)
See Also
Dbms Class
Lsa.Data Namespace
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to process.
dataspaceName
Type: System.String
Dataspace name containing table and column. Not used for VMFG databases.
tableName
Type: System.String
Table name containing column.
columnName
Type: System.String
Column name. Typically a primary key.
context
Type: System.String
Context of numbering. Blank means GENERAL.
alphaPrefix
Type: System.String
Up to 4 character prefix on new numbers.
alphaSuffix
Type: System.String
Up to 4 character suffix on new numbers.
nextNumber
Type: System.Int32
Next available number. 4 to 9 digits long.
leadingZeros
Type: System.Boolean
True to request leading zeros on new numbers.
decimalPlaces
Type: System.Int16
Number of digits in new numbers. 4 to 9, inclusive.
Return Value
Type: String
Next number
See Also
Dbms Class
GetNextNumberAndAdvance Overload
Lsa.Data Namespace
Syntax
C#
VB
Parameters
instanceName
Type: System.String
dataspaceName
Type: System.String
tableName
Type: System.String
columnName
Type: System.String
context
Type: System.String
siteID
Type: System.String
alphaPrefix
Type: System.String
alphaSuffix
Type: System.String
nextNumber
Type: System.Int32
leadingZeros
Type: System.Boolean
decimalPlaces
Type: System.Int16
Return Value
Type: String
See Also
Dbms Class
GetNextNumberAndAdvance Overload
Lsa.Data Namespace
Dbms.GetSetting Method
Get the value of the named setting in the named instance. Settings are like environment or
registry values except they may contain arbitrary string data up to 2GB and are stored directly in
the database.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to read from.
settingName
Type: System.String
Name of setting
Return Value
Type: String
Setting value as a string
See Also
Dbms Class
Lsa.Data Namespace
Dbms.InstanceIsOpen Method
Determines if a named database instance is currenty open.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of the database instance to check
Return Value
Type: Boolean
Boolean true if instance is open, false if it is not.
Return Value
Type: Boolean
True or false
See Also
Dbms Class
Lsa.Data Namespace
Dbms.OpenDirect Method
Overload List
Name Description
OpenDirect(String, String, Open the database in client (local) mode using direct
String, String, String, String) values rather than looking for connection values in the
Database.Config file. An already open instance is not
reopened unless the user is changing.
OpenDirect(String, String, Open the database in client (local) mode using direct
String, String, String, String, values rather than looking for connection values in the
String, String) Database.Config file. An already open instance is not
reopened unless the user is changing.
See Also
Dbms Class
Lsa.Data Namespace
Syntax
C#
VB
Parameters
instanceName
Type: System.String
The name of the database to be opened.
provider
Type: System.String
Return Value
Type: Boolean
Boolean success or failure
See Also
Dbms Class
OpenDirect Overload
Lsa.Data Namespace
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Return Value
Type:
Boolean success or failure
See Also
Dbms Class
OpenDirect Overload
Lsa.Data Namespace
Dbms.OpenLocal Method
Overload List
Name Description
See Also
Dbms Class
Lsa.Data Namespace
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to be opened.
loginUser
Type: System.String
User ID opening the database.
loginPassword
Type: System.String
Password of user opening the database.
Return Value
Type: Boolean
Boolean success or failure
See Also
Dbms Class
OpenLocal Overload
Lsa.Data Namespace
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to be opened.
loginUser
Type: System.String
User ID opening the database.
loginPassword
Type: System.String
Password of user opening the database.
databaseConfigPath
Type: System.String
Full path to the Database.Config file.
Return Value
Type: Boolean
Boolean success or failure
See Also
Dbms Class
OpenLocal Overload
Lsa.Data Namespace
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to be opened.
loginUser
Type: System.String
Return Value
Type: Boolean
Boolean success or failure
See Also
Dbms Class
OpenLocal Overload
Lsa.Data Namespace
Dbms.OpenLocalSSO Method
Overload List
Name Description
See Also
Dbms Class
Lsa.Data Namespace
Syntax
C#
VB
Parameters
instanceName
Type: System.String
loginUser
Type: System.String
loginUserSID
Type: System.String
loginDomain
Type: System.String
loginDomainSID
Type: System.String
Return Value
Type: Boolean
See Also
Dbms Class
OpenLocalSSO Overload
Lsa.Data Namespace
Syntax
C#
VB
Parameters
instanceName
Type: System.String
loginUser
Type: System.String
loginUserSID
Type: System.String
loginDomain
Type: System.String
loginDomainSID
Type: System.String
loginApplicationName
Type: System.String
Return Value
Type: Boolean
See Also
Dbms Class
OpenLocalSSO Overload
Lsa.Data Namespace
Dbms.OwnerPassword Method
Return the owner password of the named instance. You must have code authority to call this
method.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to test.
Return Value
Type: String
Password
Remarks
Note: This method is not supported for use with the Visual API Toolkit.
See Also
Dbms Class
Lsa.Data Namespace
Dbms.OwnerUserID Method
Return the owner user ID of the named instance. You must have code authority to call this
method.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to test.
Return Value
Type: String
User ID
Remarks
Note: This method is not supported for use with the Visual API Toolkit.
See Also
Dbms Class
Lsa.Data Namespace
Dbms.ServerName Method
Gets the server name of the named database instance.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of database instance to test.
Return Value
Type: String
Server name
See Also
Dbms Class
Lsa.Data Namespace
Dbms.SetNextNumber Method
Set the next number generation control values for the specified column in the named instance.
Next number generation is performed by the core classes so it is uniform for all applications.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of the database instance to write to.
dataspaceName
Type: System.String
Dataspace name containing table and column. Not used for VMFG databases
tableName
Type: System.String
Table name containing column.
columnName
Type: System.String
Column name. Typically a primary key.
context
Type: System.String
Context of numbering. Blank means GENERAL.
alphaPrefix
Type: System.String
Up to 4 character prefix on new numbers.
alphaSuffix
Type: System.String
Up to 4 character suffix on new numbers.
nextNumber
Type: System.Int32
Next available number. 4 to 9 digits long.
leadingZeros
Type: System.Boolean
True to request leading zeros on new numbers.
decimalPlaces
Type: System.Int16
Number of digits in new numbers. 4 to 9, inclusive.
See Also
Dbms Class
Lsa.Data Namespace
Dbms.SetSetting Method
Set the value of the named setting in the named instance. Settings are like environment or
registry values except they may contain arbitrary string data up to 2GB and are stored directly in
the database. Be sure the setting can be down converted from a string. If the setting value is null
or blank, the setting entry is deleted.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to write to.
settingName
Type: System.String
Name of setting.
settingValue
Type: System.String
Setting value converted to a string.
See Also
Dbms Class
Lsa.Data Namespace
Dbms.Settings Method
Collection of settings for the named instance. Settings can be large. You will typically use
GetSetting() instead.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to return.
Return Value
Type: Settings
Setting collection
See Also
Dbms Class
Lsa.Data Namespace
Dbms.UserID Method
Gets the user ID that currently has the named database instance opened.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of database instance to test.
Return Value
Type: String
User ID
See Also
Dbms Class
Lsa.Data Namespace
Lsa.Data Namespace
Classes
Class Description
Dbms Static class containing major entry points to access data in all databases.
Dbms acts more or less as the factory for all other object types in the system.
Dbms Class
Static class containing major entry points to access data in all databases. Dbms acts more or
less as the factory for all other object types in the system.
Inheritance Hierarchy
System.Object
Lsa.Data.Dbms
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Methods
Name Description
OpenDirect(String, String, String, Open the database in client (local) mode using
String, String, String) direct values rather than looking for connection
values in the Database.Config file. An already
open instance is not reopened unless the user is
changing.
OpenDirect(String, String, String, Open the database in client (local) mode using
String, String, String, String, direct values rather than looking for connection
String) values in the Database.Config file. An already
open instance is not reopened unless the user is
changing.
See Also
Lsa.Data Namespace
Dbms.Dbms Methods
The Dbms type exposes the following members.
Methods
Name Description
OpenDirect(String, String, String, Open the database in client (local) mode using
String, String, String) direct values rather than looking for connection
values in the Database.Config file. An already
open instance is not reopened unless the user is
changing.
OpenDirect(String, String, String, Open the database in client (local) mode using
String, String, String, String, direct values rather than looking for connection
String) values in the Database.Config file. An already
open instance is not reopened unless the user is
changing.
See Also
Dbms Class
Lsa.Data Namespace
Dbms.Close Method
Closes the named database.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of the database instance to close.
Return Value
Type: Boolean
Boolean success or failure
See Also
Dbms Class
Lsa.Data Namespace
Dbms.CloseAll Method
Closes all open databases.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
See Also
Dbms Class
Lsa.Data Namespace
Dbms.CompareDataspaceVersions Method
Compare the existing dataspace version to the argument. Existing dataspace version is the left
hand argument, and compareVersion is the right hand argument in the comparison.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
version1
Type: System.String
First version to compare
version2
Type: System.String
Second version to compare
Return Value
Type: Int32
Zero, less than zero, or greater than zero.
Remarks
Zero is returned if version 1 and version 2 are the same version. Negative 1 is returned if version
1 precedes version 2. Positive 1 is returned if version 1 succeeds version 2.
See Also
Dbms Class
Lsa.Data Namespace
Dbms.DatabaseName Method
Gets the database name of the named instance. For Visual Manufacturing databases, this is the
second parameter in the data source.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to test.
Return Value
Type: String
Server Name/Database Name
See Also
Dbms Class
Lsa.Data Namespace
Dbms.DeleteNextNumber Method
Delete the next number control record for the specified column in the named database instance.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Instance name to process.
dataspaceName
Type: System.String
Dataspace containing table and column. Not used for VMFG databases.
tableName
Type: System.String
Table containing column.
columnName
Type: System.String
Column name. Typically a primary key.
context
Type: System.String
Context of numbering. Blank means GENERAL.
See Also
Dbms Class
Lsa.Data Namespace
Dbms.GetInstanceInfo Method
Returns instance information for the named instance.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of the instance to return
Return Value
Type: Instance
Instance information.
Remarks
Using a blank name will return the first open instance.
See Also
Dbms Class
Lsa.Data Namespace
Dbms.GetNextNumber Method
Retrieve the next number based on the current control values. Use this when showing current
values and what the next number might be.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to process.
dataspaceName
Type: System.String
Dataspace name containing table and column. Not used for VMFG databases.
tableName
Type: System.String
Table name containing column.
columnName
Type: System.String
Column name. Typically a primary key.
context
Type: System.String
Context of numbering. Blank means GENERAL.
alphaPrefix
Type: System.String
Up to 4 character prefix on new numbers.
alphaSuffix
Type: System.String
Up to 4 character suffix on new numbers.
nextNumber
Type: System.Int32
Next available number. 4 to 9 digits long.
leadingZeros
Type: System.Boolean
True to request leading zeros on new numbers.
decimalPlaces
Type: System.Int16
Number of digits in new numbers. 4 to 9, inclusive.
Return Value
Type: String
Next number
See Also
Dbms Class
Lsa.Data Namespace
Dbms.GetNextNumberAndAdvance Method
Retrieve the next number based on the current control values. Write the next control value (next
number) back, but do not commit the change. Use with business logic when you need a new
number.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to process.
dataspaceName
Type: System.String
Dataspace name containing table and column. Not used for VMFG databases.
tableName
Type: System.String
Table name containing column.
columnName
Type: System.String
Column name. Typically a primary key.
context
Type: System.String
Context of numbering. Blank means GENERAL.
alphaPrefix
Type: System.String
Up to 4 character prefix on new numbers.
alphaSuffix
Type: System.String
Up to 4 character suffix on new numbers.
nextNumber
Type: System.Int32
Next available number. 4 to 9 digits long.
leadingZeros
Type: System.Boolean
True to request leading zeros on new numbers.
decimalPlaces
Type: System.Int16
Number of digits in new numbers. 4 to 9, inclusive.
Return Value
Type: String
Next number
Remarks
The publically accessible method Dbms.GetNextNumbertAndAdvance would not typically be
called directly by an API toolkit developer.
To simplify the auto numbering process, the toolkit accepts any primary key ID value supplied
with a character beginning with “<” and ending with “>” as an ID that should be auto numbered.
For example, the value “<AUTO>” would suffice.
The advantage of using this methodology is that the complexities of determining the scope of the
numbering context, and what parameters to pass into Dbms.GetNextNumbertAndAdvance, are
handled automatically, basically wrapping Dbms.GetNextNumbertAndAdvance.
A transaction is started when Save is executed on a toolkit object. When that save is completed,
the transaction is committed. If the save fails, the transaction is rolled back.
Using the “<AUTO>” numbering scheme as outlined above, Dbms.GetNextNumbertAndAdvance
is called during the save and thus is part of the transaction. This method holds a tight lock on the
NEXT_NUMBER_GEN table in effect acting as a semaphore so no other caller can be issued a
duplicate number. When the save is committed, the changes to the NEXT_NUMBER_GEN table
are committed as well as any other tables that may have been updated as part of the
transaction.
This example would cause an execution of Dbms.GetNextNumbertAndAdvance (internally)
Lsa.Vmfg.Sales.CustomerOrder CO = new
Lsa.Vmfg.Sales.CustomerOrder("VE900");
Lsa.Data.DataRow drHeader = null;
CO.Load("");
drHeader = CO.NewOrderRow("<AUTO>"); // Triggers a call to
Dbms.GetNextNumbertAndAdvance when saved
drHeader["CUSTOMER_ID"] = "NOCREDIT";
drHeader["SITE_ID"] = "MMC";
CO.Save();
See Also
Dbms Class
Lsa.Data Namespace
Dbms.GetSetting Method
Get the value of the named setting in the named instance. Settings are like environment or
registry values except they may contain arbitrary string data up to 2GB and are stored directly in
the database.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to read from.
settingName
Type: System.String
Name of setting
Return Value
Type: String
Setting value as a string
See Also
Dbms Class
Lsa.Data Namespace
Dbms.InstanceIsOpen Method
Determines if a named database instance is currently open.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of the database instance to check
Return Value
Type: Boolean
Boolean true if instance is open, false if it is not.
Return Value
Type: Boolean
True or false
See Also
Dbms Class
Lsa.Data Namespace
Dbms.OpenDirect Method
Overload List
Name Description
OpenDirect(String, String, Open the database in client (local) mode using direct
String, String, String, String) values rather than looking for connection values in the
Database.Config file. An already open instance is not
reopened unless the user is changing.
OpenDirect(String, String, Open the database in client (local) mode using direct
String, String, String, String, values rather than looking for connection values in the
String, String) Database.Config file. An already open instance is not
reopened unless the user is changing.
See Also
Dbms Class
Lsa.Data Namespace
Syntax
C#
VB
Parameters
instanceName
Type: System.String
The name of the database to be opened.
provider
Type: System.String
Internal name of provider. SQLSERVER and ORACLE supported.
driver
Type: System.String
Not used in this verison.
dataSource
Type: System.String
Identifies server/database combination.
ownerUser
Type: System.String
User ID of user that owns the database.
ownerPassword
Type: System.String
Password of user that owns the database.
Return Value
Type: Boolean
Boolean success or failure
See Also
Dbms Class
OpenDirect Overload
Lsa.Data Namespace
Syntax
C#
VB
Parameters
instanceName
Type: System.String
The name of the database to be opened.
provider
Type: System.String
Internal name of provider. SQLSERVER and ORACLE supported.
driver
Type: System.String
Not used in this verison.
dataSource
Type: System.String
Identifies server/database combination.
ownerUser
Type: System.String
User ID of user that owns the database.User ID of user opening the database.
ownerPassword
Type: System.String
Password of user that owns the database.Password of user opening the database.
loginUser
Type: System.String
loginPassword
Type: System.String
Return Value
Type:
Boolean success or failure
See Also
Dbms Class
OpenDirect Overload
Lsa.Data Namespace
Dbms.OpenLocal Method
Overload List
Name Description
See Also
Dbms Class
Lsa.Data Namespace
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to be opened.
loginUser
Type: System.String
User ID opening the database.
loginPassword
Type: System.String
Password of user opening the database.
Return Value
Type: Boolean
Boolean success or failure
See Also
Dbms Class
OpenLocal Overload
Lsa.Data Namespace
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to be opened.
loginUser
Type: System.String
User ID opening the database.
loginPassword
Type: System.String
Password of user opening the database.
databaseConfigPath
Type: System.String
Full path to the Database.Config file.
Return Value
Type: Boolean
Boolean success or failure
See Also
Dbms Class
OpenLocal Overload
Lsa.Data Namespace
Dbms.OwnerPassword Method
Return the owner password of the named instance. You must have code authority to call this
method.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to test.
Return Value
Type: String
Password
Remarks
Note: This method is not supported for use with the Visual API Toolkit.
See Also
Dbms Class
Lsa.Data Namespace
Dbms.OwnerUserID Method
Return the owner user ID of the named instance. You must have code authority to call this
method.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to test.
Return Value
Type: String
User ID
Remarks
Note: This method is not supported for use with the Visual API Toolkit.
See Also
Dbms Class
Lsa.Data Namespace
Dbms.ServerName Method
Gets the server name of the named database instance.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of database instance to test.
Return Value
Type: String
Server name
See Also
Dbms Class
Lsa.Data Namespace
Dbms.SetNextNumber Method
Set the next number generation control values for the specified column in the named instance.
Next number generation is performed by the core classes so it is uniform for all applications.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of the database instance to write to.
dataspaceName
Type: System.String
Dataspace name containing table and column. Not used for VMFG databases
tableName
Type: System.String
Table name containing column.
columnName
Type: System.String
Column name. Typically a primary key.
context
Type: System.String
Context of numbering. Blank means GENERAL.
alphaPrefix
Type: System.String
Up to 4 character prefix on new numbers.
alphaSuffix
Type: System.String
Up to 4 character suffix on new numbers.
nextNumber
Type: System.Int32
Next available number. 4 to 9 digits long.
leadingZeros
Type: System.Boolean
True to request leading zeros on new numbers.
decimalPlaces
Type: System.Int16
Number of digits in new numbers. 4 to 9, inclusive.
See Also
Dbms Class
Lsa.Data Namespace
Dbms.SetSetting Method
Set the value of the named setting in the named instance. Settings are like environment or
registry values except they may contain arbitrary string data up to 2GB and are stored directly in
the database. Be sure the setting can be down converted from a string. If the setting value is null
or blank, the setting entry is deleted.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to write to.
settingName
Type: System.String
Name of setting.
settingValue
Type: System.String
Setting value converted to a string.
See Also
Dbms Class
Lsa.Data Namespace
Dbms.Settings Method
Collection of settings for the named instance. Settings can be large. You will typically use
GetSetting() instead.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of instance to return.
Return Value
Type: Settings
Setting collection
See Also
Dbms Class
Lsa.Data Namespace
Dbms.UserID Method
Gets the user ID that currently has the named database instance opened.
Namespace: Lsa.Data
Assembly: LsaCore (in LsaCore.dll) Version: 8.1.0.0 (8.1.0.0)
Syntax
C#
VB
Parameters
instanceName
Type: System.String
Name of database instance to test.
Return Value
Type: String
User ID
See Also
Dbms Class
Lsa.Data Namespace