XRecord Class |
Namespace: Biolomics.BioCallback
The XRecord type exposes the following members.
Name | Description | |
---|---|---|
![]() | ChangeHeaderGroup |
Changes The changeHeader group.
|
![]() | DeleteGroup |
Gets or sets the delete group.
|
![]() | Details |
Gets or sets the record details.
|
![]() | Id |
Gets or sets the record Id.
|
![]() | Name |
Gets or sets the record name.
|
![]() | ReadGroup |
Gets or sets the read group.
|
![]() | UsedForWebIdentification |
Gets or sets a value indicating whether the record is used for web identification.
|
![]() | WriteGroup |
Gets or sets the write group.
|
Name | Description | |
---|---|---|
![]() | AddChangeHeaderGroup |
Adds the change header group.
|
![]() | AddDeleteGroup |
Adds the delete group.
|
![]() | AddReadGroup |
Adds a group to read group.
|
![]() | AddWriteGroup |
Adds the write group.
|
![]() | CheckPrivileges |
Controls the consistancy of the record privileges
|
![]() | Clone |
Clones this instance.
|
![]() | CreationDate |
Gets the creation date.
|
![]() | DateToExport |
Format record data for export.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Fields |
return the field map loaded for the record.
|
![]() | Fields(Int64) |
return one specific field
Gets Field by Field key
|
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IsAnyLocked |
Determines whether the record Is Locked .
|
![]() | IsAnyUnlocked |
Determines whether [is any unlocked].
|
![]() | LastChangeDate |
Gets the Last change date.
|
![]() | LastChangeUserEmail |
Gets the last change user Email.
|
![]() | Load |
Loads the record with the specified field definition map.
|
![]() | Lock |
Locks this instance.
|
![]() | Locked |
Gets Locked state of the Record.
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OwnerEmail |
Gets The owner Email.
|
![]() | Reload |
Reloads this instance.
|
![]() | Reload(Int32) |
Reloads this record. This function is non-readable-fields safe.
|
![]() | RemoveChangeHeaderGroup |
Removes the change header group.
|
![]() | RemoveDeleteGroup |
Removes the delete group.
|
![]() | RemoveReadGroup |
Removes a group from the read group.
|
![]() | RemoveWriteGroup |
Removes the write group.
|
![]() | Save |
Saves this record, without any undo. This function is safe for non-writable-fields
WARNING: There is no undo!
|
![]() | SqlCo |
Gets the Sql connection of the record.
|
![]() | SummaryOrName |
Gets the summary or the name of the record.By default it returns the record name but if the record is nothing.
|
![]() | TableKey |
Gets the record table key.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Unlock |
Unlocks this instance.
|
![]() | Unlocked |
Gets UnLocked state of the Record.
|
Name | Description | |
---|---|---|
![]() ![]() | Equality |
Implements the operator = operator.
|
![]() ![]() | Inequality |
Implements the operator <> operator.
|
Imports System Imports BioloMICS.BioCallback Imports BioloMICS.SharedClasses Public Class Program <STAThread()> Shared Sub Main() Dim c As New Program c.ChangeRecordDetails() End Sub ' Write sub functions here Public Sub ChangeRecordDetails() ' get the current connection Dim SqlCo As XConnection = Run.GetCurrentConnection() If SqlCo Is Nothing Then Return End If ' get the current layout Dim Layout As XDataLayout = Run.GetCurrentLayout() If Layout Is Nothing Then ' no current layout in a search page Return End If ' get the current table Dim TableDef As XTableDef = SqlCo.GetTableDef(Layout.TableKey) If TableDef Is Nothing Then ' should never happen Return End If ' load all records Dim Where As XWhere = XWhere.All ' use an empty FieldDefMap Dim FieldDefMap As New XFieldDefMap ' load the records Dim RecordMap As XRecordMap = Run.LoadRecords(TableDef.Key, FieldDefMap, Where) For Each Record As XRecord In RecordMap ' change the record details, located in the record header Record.Details = "This is record #" & Record.Id.ToString Record.Save(False) Next ' load the records second methode Dim newRecordMap As New XRecordMap Run.LoadRecords(newRecordMap, TableDef.Key, FieldDefMap, Where) For Each Record As XRecord In newRecordMap ' change the record details, located in the record header empty string instead of old value Record.Details = String.Empty Record.Save(False) Next End Sub End Class