Post on 29-Nov-2014
DOC1 Overview
An Introduction for Programmers
Goal
You will be able to answer questions like -What is DOC1?What are the Components of DOC1?How to code using these components?What are Inputs & Outputs for DOC1?How DOC1 works?
At the end of this session…
DOC1 Development Environment
DOC1 Workstations To format the statements Typically windows NT environment
DOC1 HOST To run the statements for production Typically AIX, IBM Mainframe, VMS
environments
What is DOC1?
DOC1 is an Electronic Document Generation ToolUsed widely in large scale business and finance applications for client communicationProduct of Group1 Software UK Ltd
DOC1 Installation
Begin setup from setup.exeAgree to License AgreementSelect “Workstation” and “Production Engine” componentsSelect Production Engine Components – PCE & EMFEEnter Licensing Information for EMFEEnter Licensing Information for PCEChoose Destination directoryClick Next>>…Click Finish.
Installing DOC1 is easy.
Components of DOC1
Data Format EditorDocument Library Manager/ Document Object EditorApplication Layout Editor
Build and Release
Building an application file (x.lar) produces the following set of files: X.ear X.eol X.edf
Using Resources in DOC1
Windows Resources True type Fonts Image files- bmp, jpeg, tiff, etc.
Native Resources Need to be converted to DOC1 format (LarMeta) using
conversion utilities
Fonts and Images are common Resources. They can be categorized as :
Thank You
Data Format Editor
Defines the structure of input data to form the basis of your applicationAccepts data in following formats: Keyed Records (identified by a key field) XML SAP
Input File extension is x.svd and formatted file extension is x.ldf
Defining Keyed Records
Identify Key Field for the data documentGive Description to each Record TypeIdentify Record Attributes: Indicates Start Of Document Single Iterated Key Non Compulsory Begins a range iteration Ends a range iteration
Record Attributes
Select Start of Document if the record represents the beginning of a new data document.Data for a single data document ends just before the next Start of Document or the end of file.
Start of Document
Record Attributes (contd.)
Select Single Iteration if there may be multiple instances of the same record consecutivelyThese repeated records will have the same key valueIn short, number of records for this record type can be 1 or many
Single Iteration
Record Attributes (contd.)
Mark those records as Non compulsory which may or may not exist in the data documentHowever, while defining the record structure, these records should exist in the sample data fileIn short, number of records for this record type can be 0 or 1
Non- Compulsory
Record Attributes (contd.)
Select a record type as Begins a range iteration when a range of records following this record is repeatedSelect a record type as Ends a range iteration when the repetition of a range of records endsThe number of times that the range of records may occur is 1 or many.
Range iteration
Record Attributes (contd.)
Start Of Document
Range Iteration
Back To Components
Document Library Manager
Also known as Firm Data EditorDLM is the tool used to create/ maintain document objectsDocument Objects contain the text displayed on your documentsA document object can be a single line to a complex full page designFiles created by DLM are called as Document Object Libraries having extension x.lfl
Document Object Library
Sections
Document Objects
contain
Document Object Editor (contd.)
Symbolic Links These links need to be resolved in the ALE immediately
after the Document Object by populating the Place Holders.
Global Symbolic Links No hassle of populating the Place Holders Can be resolved anytime before the Document Object is
printed using a single Action object. Stored in Global Symbolic Link Definition Files (x.lgl)
URL links To create hyperlinks to online resources when DOC1
generates web based output.
Document Objects can contain variable data (links). Links are required when the contents are resolved at runtime.
Back To Components
Application Layout Editor
ALE holds the processing logic for the documentIntegrates the Data Format and Document Objects into the application logicALE can also create sub documents which can be used in multiple documentsFile extensions are :– x.lar for application file and x.lsd for sub documentTwo of its most important sections are:
Document view Logic Map
Application Layout Editor (contd.)
Displays the contents of your document single page at a timeShows physical placement of fixed objects on the document page
Document View
Application Layout Editor (contd.)
Shows the sequence of events while DOC1 application executesDisplays the conditions on which various objects are printed/ hiddenResolves the links of all Document Objects
Logic Map
Logic Map
ActionBundleCaseConcatenationConditionConstantDocument ObjectIterationJournalKeyed Document Object
LoopRetainerRelative PositioningStealthSub Document ReferenceSubPage ControlText Substitution
It is evident that the Logic Map forms the core of DOC1 application. To understand it better, let’s explore its features:
Back To Components