TITRE

Description

This action is called before the opening of the entry window linked to the OBJect.

OBJect type

Simple, Grid, Combined

Transaction

No

Use

It is used to reposition on a tab other than the first. The tab number for the new tab will need to be specified. The hidden or inactive tabs are not considered by the numbering. The variable AFOLDEF must be loaded by the tab number, but the tab number is not indicted is "fixed", because the tabs can become inactive or hidden and the specific/custom can insert its own tabs. This method can be used to find the tab number. Example for the tab POH1 :

I=find("POH1",[F:AWI]NOMMSK)-1 

It is used to assign the texts according to the context, for :

Text

Variable

window title TIT
tab title TITFOLD (1..)
title of the standard left list TITLIS
title of each column in the left list TITSEL 1..)
title of each column of the last read list TITSEL9 (1..)

Example :  SUBFAS   Fixed asset record

Requirement to assign titles to the tabs from the 3rd tab. The titles are parameterized in miscellaneous table 312.

$TITRES
I = 0
For [ADI]CODE Where NUMTAB=312
  I += 1
  Call LECTURE(TITFOLD(3+I),[F:ADI]DESSHO) From TEXTE
Next
Return

Definition of the OBJect

TITRE1.bmp (722154 bytes)

Value in miscellaneous table 312

TITRE2.bmp (357402 bytes)

The result

TITRE3.bmp (715446 bytes)