Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1




|Views: 2,588|Likes:
Published by Sat's
horse model application development in SYNON
horse model application development in SYNON

More info:

Published by: Sat's on Jun 25, 2008
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF or read online from Scribd
See more
See less


Designing Functions
This chapter introduces the following topics:FunctionsDevice DesignsAction DiagramsFunction OptionsLinking FunctionsFunction Parameters
Introduction to Functions
This topic introduces you to COOL:2E functions.New terms introducedFunctionExternal functionInternal functionFunction typeEdit File (EDTFIL) function typeSelect Record (SELRCD) function type
COOL:2E TutorialTUT 31
New panels introducedEdit FunctionsEdit Function Details
You will design interactive panels for the four followingfunctions:
Edit the COURSE file
Select records from the COURSE file
Edit the HORSE file
Select records from the HORSE fileYou will also define two additional functions:
Select Stallions
Select Mares
Overview ofFunctions
defines a list of processes that will operateon the files and fields in your database. COOL:2Eprovides a variety of standard functions to which youcan add your own unique processing. COOL:2E usesthe information contained in your data model to provideall of the default processing for the standard functions.The set of standard functions consist of databasefunctions, device functions, and user functions. Notethat only the first two will be covered in this tutorial. Thestandard functions consist of a variety of
, each of which performs a specific process. Forexample, the Edit File (EDTFIL) function type retrievesdata from a file and lets the end user update that datausing an interactive panel. The Print File (PRTFIL)function type prints a report of the data from a file. TheCreate Object (CRTOBJ) database function creates arecord in your database.A function can be implemented either as a separateprogram or as a subroutine within a program as follows.
Introduction to FunctionsTUT 32COOL:2E Tutorial
external function
is implemented as a separatehigh level language (HLL) program. Each externalfunction is attached to an access path. In general,the standard device functions are externalfunctions; for example, the Edit File function. Theonly exception is the Print Object (PRTOBJ)function that is covered in a later chapter of thistutorial.
internal function
is implemented as sourcecode within that of the calling program; in otherwords, it is implemented as a subroutine. All thestandard database functions are internal functions;for example, the Create Object function.There need not be a one-to-one correspondencebetween a function and the program that implements it.You can link functions together to create largerprocesses that become the building blocks of yourapplications; namely, several internal functions may beimplemented as a single program. In other words, afunction is a unit of specification, not implementation.The standard functions may have the followingcomponents. Note that not all function types have allfour components.
device design
specifies the layout of the panel orreport used by the function.
action diagram
specifies the processing steps thatmake up the function. This includesdefault processing and processingthat you define.
function options
specifies default features of afunction.
specifes fields to be passed into thefunction and returned from thefunction at run time.Each of these components is discussed in this chapter.In addition to the standard functions, COOL:2Eprovides message functions, function fields, and built-infunctions, which perform low-level processing such as
Introduction to FunctionsCOOL:2E TutorialTUT 33

Activity (5)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
sgautam11 liked this
sgautam11 liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->