Class SY_Form

Inherits

SY_Report

Properties

LOCAL cDefaultTypeROLE$="R"  

local constant for default type being role based

LOCAL cDefaultTypeUSER$="U"  

local constant for default type being user based

LOCAL cReportTypeFORM$="F"  

local constant for report type of default for form

PROPERTY KeepOpenPrint$  

Value of Keep Window Open After Print checkbox on form dialog, if it exists

PROPERTY KeepOpenPreview$  

Value of Keep Window Open After Preview checkbox on form dialog, if it exists

PROPERTY ChainedDocAvail  

Set by .rpt to isTRUE if chaining is available for this form

PROPERTY PostPrintProcessed  

PostPrintProcessed

PROPERTY TemplateExists  
PROPERTY QuickPrint$ ! set from SY_FormUI, used in _rpt class  
PROPERTY cModuleCode$  
PROPERTY EmailSelected  
PROPERTY FaxSelected  
PROPERTY PrintPreview$  

Desitination of report, whether Print or Preview selected

Methods

FUNCTION Alignment(destination$)  
FUNCTION CheckSaveMultiPartFormSettings(ReportSetting$)  
FUNCTION GetDefaultForm$(getLastForm, lockDefault$)  

Logic to return the default form for this session from SY_ReportDefault or if no defaults exists returns last used form

ParameterDescription
getLastForm [input, boolean] when set to true will return last used form if no default exist
lockDefault$ [output, string] Y/N flag to indicate whether the default form is to be locked for this user/form
Returns [string] Default form for this session
FUNCTION GetLastForm$()  
FUNCTION GetTemplateList(templateList$)  

Get a list of template descriptions

ParameterDescription
templateList$ [output, string] a list of template descriptions separated by SEP
Returns [boolean]
FUNCTION PrinterSetup()  
FUNCTION ProcessReport(destination$)  
FUNCTION ResetWorktables()  
FUNCTION SetTemplateDesc(desc$)  

Set template description for a form. Used when doing form printing via business object interface.

ParameterDescription
desc$ [input, string] template description (eg. "Plain", "Marbled", etc)
Returns [numeric] Warning (-1) if TemplateDesc$ has already been set, Failure (0) if desc$ is not an on-file template, or SUCCESS (1)
FUNCTION LOCAL AlignmentOverrideLength(colName$, colLength)  

Override the data length to use for the specified column for alignment test

ParameterDescription
colName$ [input, string] name of column
colLength [in/out, int] length to use for data value, current length is passed in
Returns [boolean] always returns retSUCCESS (1)
Info

The report class can override this method to set new data lengths for columns

FUNCTION LOCAL PERFORM PreWorkTableWriteForPaperlessOffice()  
FUNCTION LOCAL SetDeliveryProperties()  
FUNCTION LOCAL PERFORM SetReportFile()  
FUNCTION LOCAL PERFORM SetReportFile(rpt$, template$)  
FUNCTION LOCAL PERFORM SetReportFile(rpt$, template$, devCode$)  
FUNCTION LOCAL SetStdFormulas(destination$)  
FUNCTION LOCAL UpdateLastForm()  

Properties inherited from: SY_Report

cMainTable$, cIsSysDB, cCommonElements$, CurrentFiscalYear$, CurrentPeriod$, ReportID$, UseWorkstationDfltPntrStdRpt$, UseWorkstationDfltPntrStdForm$, ReportSettingPrinterName$, RecordSet

Methods inherited from: SY_Report

AppendReportOptions(), BuildExtendedSort(), CreateStandardSetting(), GetCurrentClause(), GetFiscal(), GetLocal(), GetOptions(), GetRecordSettings(), OpenRecordSet(), ParseOptionsGrid(), ProcessReport(), ProcessReportWorkTable(), ReplaceDefault(), ResetWorkTables(), SelectReportSetting(), SetDefaults(), SetOptions(), SetRecordSettings(), SetReportObjectPrinterProps(), SetReportWhereClause(), This function will set the value of the variable cReportWhereClause$. This value is used by SY_Selection'GetWhereClause(), GetOperandStartEnd(), GetSelectCriteria(), GetSelectOperandValues(), SetChildColl(), WriteWorkstationPrinter()