LOCAL cMainTable$="SY_ConversionDriver" [String] Contains the table to maintain, used to open table in SY_Service |
LOCAL cIsSysDB=isTRUE [Boolean] Indicates whether cMainTable$ is found in the system data base (MAS_SYSTEM) or not. Set to true for SY_ConversionDriver |
LOCAL cLineIncr=100000000 [Integer] Integer indicating amount to increment the ExecutionOrder$ variable by each time a new record is written for the current Version$+Module$ combination |
LOCAL cVersionSegLen=2 [Integer] Dictionary Length of each segment in the version, currently hard-coded. To match format of 00.00.00.00 |
PROPERTY DefaultVersion$ * Read Only * [String] Contains the current default version from the SY_System table, for use in the UI as a default |
PROPERTY ValidColumn * Read Only * [Boolean] Indicates whether current ColumnName$ was found in the dictionary |
PROPERTY ValidTable * Read Only * [Boolean] Indicates whether current TableName$ was found in the dictionary |
FUNCTION ClearSetFiles() Override of the ClearSetFiles() in SY_MaintSet class. This is overridden to create the mirror memory table with the filtered data. See cSortFH | ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
FUNCTION CommitRow() Override of CommitRow() in the SY_MaintSet class. This is overridden to renumber the execution order of the filtered data for the Sage developer code only. | ||||||||||||||||
| ||||||||||||||||
FUNCTION Delete(key$) Override of the Delete() in SY_Maint class. This is overridden to remove record from the mirror memory table, as well as to properly put the deleted record into the cDeleteFH for use with cancelling. This was necessary because of being filtered on a different index. | ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
FUNCTION FindTable(vers$, cnvType$, table$, tableCount, tableFirstRow, tableLastRow, tableLastKey$) This method will find if the table sent in is already being converted for this version+conversion combination. If so, will send back the number of records for the table, the first and last row, and the key value for the last row. To be used when adding or inserting new records. | ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
FUNCTION GetBrowseFilter(browseDir$, filterRec$, filterCols$) This function will return the variables and filter values to browse to the next set of records based on the browse direction and the current position in the physical table. This function only will work if the business object is in "SET" mode. | ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
FUNCTION GetNextConversionID(nextID$) Function to return the value of the nextID$ number based on Version, ConversionType, and TableName. This function will fail if the aforementioned columns are not populated. This function reads the physical table and if an existing record is found the ConversionID variable will be incremented by 1 and returned | ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
FUNCTION GetNextExecutionSeq(nextSeq$) | ||||||||||||||||
FUNCTION GetNextExecutionSeq(nextSeq$, insertBefore$) Function to return the value of the nextSeq$ number based on Version, ModuleCode, ModuleConversionOrder, and ConversionType. This function will fail if the aforementioned columns are not populated. This function reads the physical table and if an existing record is found the ExecutionOrder variable will be incremented by the amount of cLineIncr | ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
FUNCTION ResequenceLine(keyToMove$, newSeq$, newKey$) Will re-write the row specificed in the keyToMove$ with the given newSeq$ and return the new key value. This is used from the BT_MoveUp/Down functions in MD_ConversionDriver_ui class. | ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
FUNCTION ResetRow(key$) This function will recall the data from the physical table for the given key. This totally overrides the base class function in SY_Maint as it needs to protect the line sequencing in the ExecutionOrder variable. If the record does not exist in the physical table it will be removed from the working table, as it does in line entry. | ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
FUNCTION SetNewSequences(insertBefore$) Function is to set the values of ExecutionOrder and ConversionID for new records. If a value is given in the insertBefore$ arguement, locate an execution order prior to the execution order passed in. This will do SetValue() on both the ExecutionOrder$ and ConversionID$ | ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
FUNCTION Write() Function is overridden from the original found in SY_Maint, to add the ability to set DateUpdated,TimeUpdated,WorkstationUpdated,DateCreated,TimeCreated and WorkstationCreated. The date and time fields would normally be populated, but that is dependent on a UserKey. | ||||||||||||||||
|
cnvtagCOLDROP$, cnvtagIDXDROP$, cnvtagSETDEFAULT$, cnvtagSETINVALID$, cnvtagSETVALUE$, cnvtagTBLCOPY$, cnvtagTBLUPDATE$, cnvtagTBLDROP$, cnvtagRECDROP$, cnvtypDATA$, cnvtypDICTIONARY$, cnvtypREMOVEDATA$, cnvtypINFORMATION$, vertokenSYSTEM$, vertokenPAYROLL$, devcodeSAGE$, versionSELECTLENGTH |
cActionWrite, cActionDelete, cActivityLogFilePrefix$, DocDateWarnDisplayed, DocDateWarnStatus, EditState, RecordChanged, FirstFailure$, DocumentTotal, ReadOnlyReason$, UDTValidation$, ViewOnly, CurrentPrecision, DocDateWarnForceOff, DocDateWarnObject, ScriptObject, ImportTest |
FileChanged |
ClassValidateDeveloperCode() |
ClassValidateModuleCode() |
GetValidCnvTags$(), GetValidCnvTypes$(), FormatVersion$(), GetConstantValues(), IsPvxToSQLConversion(), IsPvxToSQLTable() |
ChangedRecordCompare(), ChangedRecordInfo(), Clear(), ClearRecord(), ConfirmDelete(), CopyFrom(), ExportToCSV(), GetColumnInfo(), GetColumnProperties$(), GetDefaults(), GetOrigRecord$(), GetPropertyValue(), GetValidationGroups$(), ResetDocDateWarnState(), SetCopyKeyValue(), SetDocDateWarnDisplayed(), SetDocDateWarnOff(), SetKey(), SetKeyValue(), SetPartialRecord(), SetRecord(), SetToReadOnly(), SetValue(), SetValues(), Write(), ActivityLogCreateFile(), ActivityLogPrepare(), ActivityLogSetMessage$(), ActivityLogWrite(), CallScript(), CheckForAdvancedFieldSettings(), CheckForScripts(), CheckNullRequiredField(), PERFORM ChildValidate(), ClassValidateDate(), ClassValidateTelephoneNo(), ClearSetFiles(), ColInfoInitAll(), ColInfoInitDefaults(), CommitRow(), GetPropertyCommon(), InitColInfo(), InitScriptEngine(), InitWorkTable(), IsColInIOList(), IsValid(), LoadColInfo(), OpenMainTable(), ParseExtField(), RemoveColToSkip(), ResetRow(), RetrieveColInfo(), SetDefaults(), SetFilter(), SetMode(), SetParentHandle(), SetValueNoValidate(), StoreColToSkip(), ValidateAll(), ValidateAllRecord(), ValidateColInfo(), ValidateRule() |
ClearSetFiles(), CommitRow(), QuickRowLoad(), ResetRow(), SeedDetailRow(), SetFilter(), SetMode() |