Declaring Entities Using the HLLAPI Connector

Declaring an Application

During capture, only the opened channels (indicated by their session ID) will be displayed and selectable.

For general information on declaring an application in Desktop Studio, see Declaring Applications.

Set Application Criteria

There are no criteria to be set on applications using Desktop Studio (see Criteria Management).

Set Application Parameters

With HLLAPI connector, provides the following application parameter is available:

App page name

When declaring an HLLAPI Application, Desktop Studio creates a technical page, whose name can be modified. This technical page is used to connect to an application session.

Declaring a Page

Set Page Criteria

NBROWS

Number of rows in the screen

NBCOLS

Number of columns in the screen

Therefore, to be able to differentiate between pages, you must use the Must Exist method.

Advanced Recognition Methods

If the targeted root component has no unique distinguishing properties, you can use the Labelled By Method.

Page-Based Events

A declared page automatically receives the following technical events:

LOAD

The page is loaded

UNLOAD

The page is closed

TA page can receive the following technical event:

UPDATE

The page is being updated

Declaring an Item

Set Item Criteria

Item criteria are used by the HLLAPI connector as follows:

X

Column position

Y

Row position

CX

Field size

TEXT

Field content

Once the page has been recognized, items will:
  • Always exist

  • Always have the size declared (CX propertz)

Items are usually declared for controlling purposes. They will:
  • Always have position criteria (X,Y, CX)

  • Occasionally have a TEXT criterion

  • Also be used for page recognition by setting MustExist parameters

You set recognition criteria using Desktop Studio (see Criteria Management ):

  • You can use the following operators on properties of type string: Full, Part, Empty, No.

  • You can set multiple criteria on the same property, which are then connected by a logical OR.

  • You must declare at least one recognition criterion.

Advanced Recognition Methods for Items

In some cases, it is not possible to recognize a targeted component merely by setting criteria on its properties. Another component is recognized by mistake. To ensure your declaration is correct, you can use one of the following recognition methods:

The Labelled By method (for details, see Labelled By Method).

The Occurs method

If you need to recognize an array in a screen, it may be useful to use the Occurs method. For multiple items, the Desktop Agent connector targets all the occurrences of the recognized components. You can then use the appropriate index value via a script to target the desired occurrence.

Unlike other connectors, occurs is managed by specific parameters on the item:

Occurs indicates the number of multiple elements beside the initial element. If Occurs is set at 8, then there will be 9 elements.

Inc X and Inc Y respectively indicate the offset between columns and rows. If Inc X is set at 1 and Inc Y is set at 0 then the multiple items will be side by side in a horizontal direction

Examples of the use of the Occurs method

  • Occurs = 8

  • Inc X = 0

  • Inc Y = 1

These parameters enable you to retrieve a horizontal array of nine elements; each element attaching to the next element .

  • Occurs = 11

  • Inc X = 2

  • Inc Y = 0

These parameters allow you to catch a vertical array of 12 elements; each element is one column away from the next.

  • Occurs = 3

  • Inc X = 2

  • Inc Y = 2

Using a non-zero value for both Inc X and Inc Y will lead to a different (and generally unintended) type of array recognition.

Item Parameters

The HLLAPI connector provides the following specific parameters:

Must exist

If set, the page will be recognized only if the item exists (for more details, see MustExist Method )

Labelled by

Indicates (if not empty) the name of the item that must be recognized as the label (see Labelled By Method

Capture auto

If set, the item value is included in each page-based event

Occurs

Indicates the number of elements beside the initial element

Inc X

Indicates the column offset between multiple elements

Inc Y

Indicates the row offset between multiple elements

Item-Based Events

Unlike most other connectors, the HLLAPI connector does not provide any technical events on items.