Book Contents

Book Index

Scripts, reports

In module Administrator there is a book called Scripts, reports, where you can find all reports, scripts and forms, which are available in K2 IS. It deals with resources in database.

Standard resources have been preferred before the special ones. The same as databases scripts and reports, they have the priority before scripts in a file system upon running.

pic_1203

Picture: Scripts, reports - book

In the left part of the List of files the user can choose whether wants to see all resources or just one type. You can add new reports or scripts by means of Ins key into a book and they are signed as a special one.

Columns Description:

C

In this column it is identified by means of icons if the resources have been certified:

pic_340i - certificate is valid,

pic_339i - certificate of resources code has not been verified (verification by means of F7),

pic_344i - resource code has been changed, but has not been certified. It means the script is not able to run.

P

Icon in this column pic_342i signs the program or a report (running code, which is able to insert into print function(F9)).

R

If icon has been displayed in this column pic_343i, currently logged user has not the right to change the report or script.

Note: If the user logs by means of system password, the icon pic_343i will not be displayed and the user can change reports or script.

E

If there is the pic_345i, this standard script is protected. Resource code is not displayed and you cannot make any changes.

O

If there is no icon in "R" column in this script pic_343i, the user can delete this record. The icon will be displayed in deleted record in "O" columnPIC_062i.

Note: The record has stayed in database after deletion, but the code has been really deleted.

D

If you sign the script (by means of Shift+F4), which has the icon in column "P", the icon will be inserted into this "D" column . This icon signalises that the moment it runs the resource code will be displayed in editor of scripts. It is used usually in registered functions.

S

Icon pic_341i signs a special one (added by a customer) in this column. If icon has been displayed in this column pic_346i, it deals with special script added by a consultant.

Keyword

On the 1 st page it is possible to add a keyword, which is able to use for filtering.

Abb.

Unique identifier of resource.

File type

Identifies what type of a file it is. If it is a script, report or a form.

Note: If it is a "unit", it does not have an icon in "P" column and it is "script" as a type.

Description

Closer user-changing description of every record.

Keys Description:

F7

Verifies certificate and the icon will be added into "C" column. It verifies if it is valid, invalid or none.

Alt+F2

Saves records signing (Shift+Enter) into a user directory.

Alt+F3

Registration of resources for print reports.

Alt+F5

Opens report (also script) in editor.

Alt+F9

Makes translation of reports and scripts in selected directory and its sub-directories. Scripts signed by AS3Compatible are translates by means of AS_Developer as well. If script or report is not able to be translated, the reason is saved into a file "name_script.err" in file ReportsW. The function 712 that was described in technical guide, has been created for line translation.

Ctrl+F2

Loads saved records (see Alt+F2).

Ctrl+F5

Opens report (also script) in editor.

Ctrl+F9

Makes test of compilation (just for records that have icon in "P"column). Makes translation of resources and either the program announces the error or the test is correct.

Shift+F3

Clear cache scripts.

Shift+F4

Sign/Sign off resources for debugging and upon running of this recourse it causes opening in editor of scripts.

Ctrl+F9

Checks certificate and test of compilation will be done not just for current record, but also for signed records.

Book Contents

Book Index

Scripts, reports – 1st page

pic_1214

Picture: Scripts, reports – 1st page

Fields' Description:

Abbreviation

A unique identifier of a resource.

Licence

In this field there is entered the number of a module that has determined the number of licences (see the Modules description). The inserted scripts has defined "0" as default.

No.

An unique number.

Type

It identifies the type of the file, if it is a script, a report or a form.

Special

If this field is checked, it deals with a special resource. When inserting of a new script this field is automatically checked.

Changed

The date and name of the user who made the last change.

Description

Closer user-changing description of every record.

Created

The date and name of the user who create the record.

Keyword

Here is inserted the keyword that it is possible to use for filtering. In the Change mode you can display the code list from which you select a keyword and confirm the selection by pressing the pic_290i button.

Read only

If this field is checked, it is not possible to edit the resource.

Executable only

If this field is checked, the resource code will not be displayed the user. (It is mostly used at standard resources.)

Not registered

It is not possible to include the scripts and reports with this registering among the reports (F9).

Custom

If the user insert a new report or script, this field will be always checked (and on the 0th page in the "S" column the pic_341i).

In the lower window the preview of report or pf the resource code that is possible to edit in some cases is displayed.

Book Contents

Book Index

Functions in the Scripts and Records book

On the 0th page in the Scripts, Records book these actions can be executed:

pic_2313

Picture: Opened menu in the Scripts, Records book

Import of package

You can import the package of files of a script or of a report into the K2 system by this function. The package contains the information if it can be imported into the standard or special files. After activating this function the Import of package form opens, where you select a file that you want to import. The file has to have the *.BPK extension. Confirm selected file and load it.

Import from directory

Function is used to import files for special reports and scripts into the K2 system. By activating the function the Search folder form is opened. A selected folder has to contain files of the *.PAS, *.AM, *.DFM type.

Import of files

This function imports the same types of files like Import from directory function. These files are imported individually. After selection this function the Import from package form displays. Select here the files that you want to import.

Export of package

You can export the files of a script or of a report into the package by this function. The reports and scripts that are indicated by icon. After activating this function the Export of package from displays in that define the name of file and select a directory where the file will be exported. The file will have the *.BPK extension. Confirm selected file. The form is opened:

pic_2314

Picture: Form for export of parcel

Fields' Description:

Compile

It controls that the exported files are correct.

Certificate

Certification of exported files.

Export Deleted

The files that are indicated as deleted are also exported PIC_062iicon. When import then these files will be indicated as deleted.

Export of file

Function is used for export of files of special reports and scripts. The reports and scripts that are indicated by icon. After selection this function the Search folder form displays. Insert the file name and select a folder where you want to export.