BenSelect Documentation
ReportEvent Class
Example  See Also  Send Feedback
ETI.Report Namespace : ReportEvent Class
Conceptually the Event object represents the state of an event that has occurred. During the processing of a report record set, the Event object is initialized for each field in each successive record in the record set.

Object Model

ReportEvent ClassApplicationView ClassCaseView ClassCoverageView ClassPersonView ClassIEDIParams InterfaceEmployeeView ClassProductEngineView ClassCoverageView ClassPayerView ClassPayrollCompanyView ClassCaseProductView ClassPersonView ClassPayerProductView ClassBenefitAgentRecordBase ClassUserView ClassSoftwareVersion ClassUserView Class

Public Fields

 NameDescription
public FieldCSVOutputCSVFile Helper  
public FieldDetailDetail configuration  
public FieldExcelOutputExcel helper.  
public FieldExportExport configuration  
public FieldFirstCaseRecordFirst case record  
public FieldFirstEmployeeRecordFirst employee record  
public FieldFirstGroupRecordFirst group record  
public FieldFirstKeyRecordFirst data sub-section record in employee section. Like coverage  
public FieldFirstRecordFirst record in dataset  
public FieldHtmlOutputHtmlFile Helper  
public FieldLastCaseRecordLast case record.  
public FieldLastEmployeeRecordLast employee record.  
public FieldLastGroupRecordLast group record.  
public FieldLastKeyRecordLast data sub-section record  
public FieldLastRecordLast record in dataset  
public FieldMDBOutputMDBFile Helper  
public FieldParametersList of report parameters (Inherited from Selerix.BenSelect.Server.Report.ReportParametersEvent)
public FieldPDFPrintFilterOnly print the pages from the PDF template which match this filter.  
public FieldSkipLineInsert empty line in output file  
public FieldStartOverRepeat employee section processing  
public FieldTableTable configuration  
public FieldTextOutputTextFile Helper  
public FieldXmlOutputXmlFile Helper  
Top

Public Properties

 NameDescription
public PropertyAnswersCollection of answers indexed by question name.  
public PropertyApplicationGets the application.  
public PropertyCasePortfolio dataset created for (Inherited from Selerix.BenSelect.Server.Report.ReportParametersEvent)
public PropertyColumnNumberCollection of answers indexed by question name.  
public PropertyConfigGets or sets the config.  
public PropertyContextThe context of report. Can be used to pass some data to child reports.  
public PropertyCoverageGets the coverage.  
public PropertyCurrentPersonGets the current person.  
public PropertyCustomCollection of custom field values indexed by name.  
public PropertyEDIParamsGets the edi parameters.  
public PropertyEmployeeGets the employee.  
public PropertyEmployeeRecordsList of records that associated with Event.Employee  
public PropertyEngineGets the engine.  
public PropertyFieldNameName of the column.  
public PropertyFormFileNameGets or sets the name of the form file.  
public PropertyFormSequenceNumGets or sets the form sequence num.  
public PropertyGlobalsList of Global variables  
public PropertyGroupKeyGets or sets the group key.  
public PropertyOldAnswersCollection of answers indexed by question name from last year application.  
public PropertyOldCoverageGets the old coverage.  
public PropertyOldRidersList of old riders  
public PropertyPayerGets the payer.  
public PropertyPayrollCompanyGets the payroll company.  
public PropertyPlanGets the plan.  
public PropertyPlanConfigGets the plan configuration.  
public PropertyPrimaryInsuredGets the primary insured.  
public PropertyProductGets the product.  
public PropertyRecordGets the record in report data set.  
public PropertyReportParentGets the report parent.  
public PropertyReportUserUser, who scheduled report.  
public PropertyRidersCollection of riders indexed by rider name.  
public PropertyScriptScript (Inherited from Selerix.Foundation.Interfaces.Services.Event)
public PropertySkipRecordSkip record in output  
public PropertySoftwareVersionApplication software version (Inherited from Selerix.Foundation.Interfaces.Services.Event)
public PropertyTotalGets or sets the total.  
public PropertyTotalsGets the totals.  
public PropertyUserGets the user.  
public PropertyValueValue of report cell (Inherited from Selerix.BenSelect.Server.Report.ReportParametersEvent)
public PropertyValueListGets the value list. (Inherited from Selerix.BenSelect.Server.Report.ReportParametersEvent)
Top

Public Methods

 NameDescription
public MethodConvertToAddressThis is the Event.ConvertToAddress Method  
public MethodDebugOverloaded. Prints the specified message into debug window. (Inherited from Selerix.Foundation.Interfaces.Services.Event)
public MethodFormatReplaces the format item in a specified string with the string representation of a corresponding object in a specified array. (Inherited from Selerix.Foundation.Interfaces.Services.Event)
public MethodFormatEINFormats EIN as ##-#######  
public MethodFormatPhoneFormats the phone.  
public MethodFormatSSNFormats the SSN.  
public MethodGetEligiblePlansByDateGets the eligible plans by date.  
public MethodGetEligibleProductsByDateGets the eligible products by date.  
public MethodGetEngineGets the engine for specific rate group.  
public MethodGetEngineByDateGets the engine.  
public MethodGetNamePartsGets the name parts.  
public MethodGetPlanConfigGets the plan configuration.  
public MethodGetPlanConfigByDateGets the plan configuration by date.  
public MethodGetProductDeductionCodesGets the list of a product deduction codes for specified payrollCompany, location and product  
public MethodGetProductGroupNumbersGets the list of a product group numbers for specified payer, location, product, planYear  
public MethodLeftStr  
public MethodLoadDataSetFromFileLoads DataSet from file. (Inherited from Selerix.BenSelect.Server.Report.ReportParametersEvent)
public MethodLoadHashtableFromFileLoads hashtable from file. (Inherited from Selerix.BenSelect.Server.Report.ReportParametersEvent)
public MethodStripNonAlphaNumStrips the non alpha number.  
public MethodStripNonAlphaNumWhitespaceStrips the non alpha number whitespace.  
public MethodStripNonNumericStrips the non numeric.  
public MethodThrowErrorOverloaded. Throws a JScript exception with a customizable error message. (Inherited from Selerix.Foundation.Interfaces.Services.Event)
public MethodWriteLineGenerates a line containing the provided values.  
Top

Example

JScriptCopy Code
// Example 1: convert GenderMale field to 'M' or 'F' (male/female)
if(Event.Value)
    Event.Value = 'M';
else
    Event.Value = 'F';
            
// Example 2: skip records for dependents
Event.SkipRecord = Event.Record[DependentRelationshipID] != 0;

Remarks

When generating a report, the system first executes a database query or some other process that provides a record set for the report. Then for each successive row in the record set, the system selects the desired columns, executing any JScript code associated with each column. Records are processed from top-to-bottom, with each column in the record being processed left-to-right. At the start of processing a given column in the current row, the system defines an Event object. The current value of the column is represented by Event.Value. Assigning a different value to Event.Value will change the value emitted for the current column. You may skip the current row (thereby suppressing the output of any columns in the row) by setting the value of Event.SkipRecord to true. You may repeat the processing of the current group of records comprising the current key records by setting Event.StartOver to true. The boolean properties Event.FirstKeyRecord, Event.LastKeyRecord, Event.FirstRecord, Event.LastRecord, Event.FirstEmployeeRecord, and Event.LastEmployeeRecord may be used determine the current position within the record set. Values that must be saved from one record to the next may be saved in the Event.Globals collection. The values stored in other fields may be examined or changed through the Event.Record collection.

Inheritance Hierarchy

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2024 All Rights Reserved.