Class SY_ReportDefault_bus

Properties

LOCAL cActivityLogDelete$="D"  

[string] Constant to indicate activity log delete

LOCAL cActivityLogDtlLevel$="L"  

[string] Constant to indicate the level of tracking for the activity log

LOCAL cAllUserLogon$=""  

logon used to select all users

LOCAL cDefaultTypeROLE$="R"  

local constant for default type type being role based

LOCAL cDefaultTypeUSER$="U"  

local constant for default type type being user based

LOCAL cIsSysDB=isTRUE  

boolean value denoting whether the main table is a system table

LOCAL cMainTable$="SY_ReportDefault"  

main table for class

LOCAL cReportTypeFORM$="F"  

local constant for report type of default for form

PROPERTY DefaultCompanyFormSettingsExist   * Read Only *
PROPERTY DefaultFormSettingsExist   * Read Only *
PROPERTY ReportSettingsExist   * Read Only *

flag to indicate report settings exists for report

PROPERTY ReportSettingsList$   * Read Only *

list of available report settings

PROPERTY RoleKeyLength   * Read Only *

length of role key

PROPERTY StandardTemplateExists   * Read Only *

flag to indicate STANDARD report setting with a form template exists

PROPERTY TemplateDescList$   * Read Only *

list of templates for Role Setting

PROPERTY UserKeyLength   * Read Only *

length of user key

Methods

FUNCTION CheckCopyFromRoleName(copyRoleName$, copyRoleKey$)  

logic to check role name has defaults for current company

ParameterDescription
copyRoleName$ [input, string] role name to copy from
copyRoleKey$ [output, string] role key to copy from
Returns [boolean] True if successful, false if method fails
FUNCTION CheckCopyFromUserLogon(copyUserLogon$, copyUserKey$)  

logic to check user logon has defults for current company

ParameterDescription
copyUserLogon$ [input, string] user logon to copy from
copyUserKey$ [output, string] user key to copy from
Returns [boolean] True if successful, false if method fails
FUNCTION CommitRow()  

Override of base class CommitRow()

Returns [boolean] True = success, False = failure
FUNCTION CopyDefaultForms(copyRoleKey$, copyUserKey$)  

Copy default forms from another user or role in the same company

ParameterDescription
copyRoleKey$ [input, string] role key to copy default forms from
copyUserKey$ [input, string] user key to copy default forms from
Returns [boolean] True if successful, false if method fails
FUNCTION GetReportSettingsList$()  

Logic to return a list of defined report settings for the currently selected module, company and report ID. If no setting exist STANDARD setting is returned

Returns [string] List of report settings for selected module, company and report ID separated by /
FUNCTION GetTemplateDescList$()  

Logic to return a list of defined report templates for the currently selected module, company and report ID

Returns [string] List of report templates for selected module, company and report ID separated by /
FUNCTION ResetRow(tmpKey$)  

Reset detail records to their original state

ParameterDescription
tmpKey$ {optional}[input,string] key of record to reset, if none specified all records are reset
Returns [boolean] True if successful, false if reset of row fails
FUNCTION SetCurrentKey(key$)  

Set current key logic for class

ParameterDescription
key$ [input, string] key value being set
Returns [boolean] True if successful, false if method fails
FUNCTION SetupSystemDefaultFormsMemoryFH()  

Logic to setup a memory file of all Sage 100 forms

Returns [boolean] True, always returns success
FUNCTION ValidateCopyFrom(copyFrom$)  

Validate Copy From value

ParameterDescription
copyFrom$ [input, string] copy from source.
Returns [boolean] True if successful, false if value fails validation
FUNCTION Write()  

Write record, override of SY_Maint method

Returns [boolean] True if successful, False if not

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_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()