📚 SAP Business One SDK Help

UserKeysMD Object Members
See Also  Overview 

Public Methods

Public Method AddAdds a key to a row of a user defined table.

See sample, Adding a Private Key.

Public Method GetAsXMLReturns the object from XML data, which is stored as string in a buffer.
Public Method GetByKeyRetrieves and sets the values of the object's properties by the object's absolute key from the Company database.
Public Method RemoveDeletes a key from an existing table.
Public Method SaveToFileSave the object to a file as XML data.
Public Method SaveXMLSaves the object data to XML formatted data.

Public Properties

Public Property BrowserReturns the DataBrowser object.
Public Property ElementsReturns the UserKeysMD_Elements child object that contains the list of fields in the database used for adding the key.
Public Property KeyIndexReturns the serial number that uniquely identifies the key in the user table. This serial number is automatically assigned by SAP Business One (starting from 0).

Field name: KeyId.

Public Property KeyNameSets or returns the unique key name used for identification.

Field name: KeyName.

Length: 10 characters.

Public Property TableNameSets or returns the name of the required table in the database.

Field name: TableName.

Length: 20 characters.

Public Property UniqueSets or returns a valid value of BoYesNoEnum type that specifies whether or not the key is unique. Unique keys prevents the end-user from adding new keys with the same key combination.

Field name: UniqueKey.

See Also