• <GetStart>
  • CSPro User's Guide
    • The CSPro System
    • Data Dictionary Module
    • The CSPro Language
    • Data Entry Module
    • Batch Editing Applications
      • Introduction to Batch Editing
      • Create a Batch Edit Application
      • Order of Editing
        • Order of Executing Batch Edit Events
        • Batch Edit Order
        • Change Edit Order
      • Correcting Errors
      • How to ...
      • Steps in Developing a Batch Editing Program
    • Tabulation Applications
    • Data Sources
    • CSPro Statements and Functions
    • Templated Reporting System
    • HTML and JavaScript Integration
    • Action Invoker
    • Appendix
  • <CSEntry>
  • <CSBatch>
  • <CSTab>
  • <DataViewer>
  • <TextView>
  • <TblView>
  • <CSFreq>
  • <CSDeploy>
  • <CSPack>
  • <CSDiff>
  • <CSConcat>
  • <Excel2CSPro>
  • <CSExport>
  • <CSIndex>
  • <CSReFmt>
  • <CSSort>
  • <ParadataConcat>
  • <ParadataViewer>
  • <CSCode>
  • <CSDocument>
  • <CSView>
  • <CSWeb>

Order of Executing Batch Edit Events

CSPro executes the procedures in an application one case at a time. There are two main procedures for each element: a preproc and a postproc. If the type of procedure is not named, postproc is assumed. (There are three additional procedures that are not common in batch applications: onfocus, killfocus, and onoccchange.)
The following diagram illustrates the order of operations for a two-level batch edit application. Level 1 has two records (1 and 2) and level 2 has one record (3).
Application File preproc
    Level 1 (case) preproc
        Record 1 preproc
            Item 11 preproc
            Item 11 postproc
            ...
            Item 19 preproc
            Item 19 postproc
        Record 1 postproc
        Record 2 preproc
            Item 21 preproc
            Item 21 postproc
            ...
            Item 29 preproc
            Item 29 postproc
        Record 2 postproc
    Level 2 preproc
        Record 3 preproc
            Item 31 preproc
            Item 31 postproc
            ...
            Item 39 preproc
            Item 39 postproc
        Record 3 postproc
    Level 2 postproc
    (repeat level 2 procedures for other level 2 nodes)
    Level 1 (case) postproc
Application File postproc
See also: Batch Edit Order, CSPro Program Structure, Order of Executing Data Entry Events