pc.index.remote

Processing Code/Restore Processor, Releases: AP

Defines remote b-tree index.

Syntax

ifile.reference;a.code

Description

is used as an input-conversion and indicates that this attribute is based on data indexed in another file.

When editing data in this attribute, the user can cruise both forward and backward through the index in the specified secondary file. '<ctrl>+y' accesses the previous attribute value based on the index. '<ctrl>+u' accesses the next attribute value in the secondary file.

Data displayed is subject to the conversion codes in the primary file dictionary. If 'a.code' is other than the item-id of the secondary file, a translation ('tfile') processing code must be specified to allow cruising through the secondary file index.

'file.reference' is the name of the secondary file to which the primary file is indexed.

'a.code' indicates the attribute count indexed to in the secondary file.

In the Update processor (UP), the index code allows 'zooming'. By by pressing <ctrl>+g when the cursor is at the end of the attribute, the user accesses the item addressed by the value of the attribute. A file exit command returns the user to the previous screen. The view displayed is subject to the processing codes in the dictionary of the secondary file. The secondary file attributes to be displayed when zooming can be specified in attribute 15 of the attribute-defining item of the primary file. If they are not specified, the default is to display the attributes defined on the macro dictionary of the remote file-defining item.

Both an 'i' ('local index') and an 'ifile.reference;a.code' ('remote index') processing code can be specified in an input-conversion. When these two processing codes are specified in the same attribute-defining item, <ctrl>+d and <ctrl>+f function differently depending on the order. If the 'ifile.reference;a.code' code is specified before the 'i' code, and if either <ctrl>+d or <ctrl>+f is pressed, UP accesses the index specified by the first code in the secondary file and gets the previous or next attribute value for the specified index key. UP uses the index in the secondary file as it would use an index in the primary file. If the 'i' code is specified first, the index in the primary file is used when <ctrl>+d or <ctrl>+f is pressed.

See Also

Command Name Type Description
pc.translate Processing Code Translate function.
up.g Command Positions the cursor to the end of the paragraph or 'zooms' to related file.
up.u Command In data-entry mode, searches forward on a remote index or moves the cursor forward one word in text-entry mode.
output-conversion Attribute Defining Item References attribute 14 of a dictionary.
pc.index.fdi Processing Code Maintains the root.fid of the index.
index.remote Processing Code
processing.codes Definition Overview of processing codes.
up.input-conversion.adi Processing Code Processing codes available from UP after input.
cruising Definition Searches local and/or remote indexes.
zooming Definition Zooms through a doorway to another file.
up.y Command In data-entry mode, searches backward on a remote index or moves cursor backward one word in text-entry mode.
pc.index.local Processing Code Defines local b-tree index.
double.clutching Definition Searches through remote file.
pc Introductory
up.macro Definition Identifies the default attribute-defining items used for input and output processing of the item.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.