Class PM_WorkTicketAttachments_bus

Properties

LOCAL cMainTable$="PM_WorkTicketAttachments"  

[string] Main table for class

LOCAL cIsSysDB=isFALSE  

[boolean] Value denoting whether the main table is a system table

PROPERTY PaddedKey$   * Read Only *

[string] Padded key value of current Work Ticket

PROPERTY HeaderBusObj=coHeaderBus  

[object handle] Object handle to the header business object that instantiated this class

Methods

FUNCTION CopyTemplateAttachments(tmpWorkTicketKey$, tmpTemplateNo$, tmpTemplateRevNo$)  
FUNCTION CopyTemplateAttachments(tmpWorkTicketKey$, tmpTemplateNo$, tmpTemplateRevNo$, tmpStepNo$)  

Copy Template Attachments

ParameterDescription
tmpWorkTicketKey$ [input,string] Work Ticket Key to copy attachment records into
tmpTemplateNo$ [input,string] Template number to copy attachments from
tmpTemplateRevNo$ [input,string] Template revision number to copy attachments from
tmpStepNo$ {optional} [input,string] Template step number to copy attachments from
Returns [boolean] True, always returns success
FUNCTION DeleteAll()  

Delete All attachment records for the current work ticket

Returns [boolean] True if successful, False if an error occurs during deleting
FUNCTION GetContext$(destTable$)  

Get the contexts available for a table

ParameterDescription
destTable$ [input,string] table name
Returns [string] all contexts available for a given table
FUNCTION GetContextSourceTables$(context$)  

Get the source table for a context

ParameterDescription
context$ [input,string] context
Returns [string] source table for a given context
FUNCTION GetNextSequence(partialKey$, chan, sequenceLength, sequence$)  

Override to expose local base class function found in SY_Common to UI class

ParameterDescription
partialKey$ [input, string] primary key column (WorkTicketKey) to obtain next attachment LineKey sequence number for
chan [input, filehandle] File handle to PM_WorkTicketAttachments table
sequenceLength [input, integer] length of sequence number (LineKey) to return
sequence$ [output, string] next sequence number
Returns [boolean] value from the execution of calling the base function.
FUNCTION InitAttachmentObj()  

Initialize Attachment Object for the current work ticket

Returns [boolean] True, always returns success
FUNCTION RemoveStepAttachments(delStepLineKey$)  

Remove Attachments for a Step, when deleting a step remove all attachments assigned to that step

ParameterDescription
delStepLineKey$ [input,string] step line key being deleted
Returns [boolean] True, always returns success
FUNCTION ResetStepAttachments(tmpOldSteps$, tmpNewSteps$)  

Reset Materials For Steps, when resetting all rows on the Steps folder this method resets the attachments assigned to those steps For deleted steps, the attachments will be removed. For deleted steps that were restored by a Reset All, the attachments will be restored.

ParameterDescription
tmpOldSteps$ [input,string] delimited list of step line keys before reset all
tmpNewSteps$ [input,string] delimited list of step line keys after reset all
Returns [boolean] True, always returns success
FUNCTION SetHeaderBusObj(value)  

Sets the connection between the attachment and work ticket header business object

ParameterDescription
value [input, numeric] handle of an instance of PM_WorkTicket_bus
Returns [boolean] True if successful, False if method fails

Properties inherited from: SY_Customization

cDummyIol$

Properties inherited from: SY_Maint

cActionWrite, cActionDelete, cActivityLogFilePrefix$, DocDateWarnDisplayed, DocDateWarnStatus, EditState, RecordChanged, FirstFailure$, DocumentTotal, ReadOnlyReason$, UDTValidation$, ViewOnly, CurrentPrecision, DocDateWarnForceOff, DocDateWarnObject, ScriptObject, ImportTest, SkipNullCheck$, AFSRequiredFields$

Properties inherited from: SY_MaintSet

FileChanged

Methods inherited from: SY_Customization

GetCustomizations(), PostTableRead(), PreNextRecord(), PreTableWrite()

Methods inherited from: SY_Maint

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(), InitSearchForUpdate(), InitWorkTable(), IsColInIOList(), IsValid(), LoadColInfo(), OpenMainTable(), ParseExtField(), PreWriteScripts(), RemoveColToSkip(), ResetRow(), RetrieveColInfo(), SetDefaults(), SetFilter(), SetMode(), SetParentHandle(), SetValueNoValidate(), StoreColToSkip(), ValidateAll(), ValidateAllRecord(), ValidateColInfo(), ValidateRule()

Methods inherited from: SY_MaintSet

ClearSetFiles(), CommitRow(), QuickRowLoad(), ResetRow(), SeedDetailRow(), SetFilter(), SetMode()