Edukiak
Aurkibidea 🔎︎

# Gertaerak

Gertaerak fitxa-orrian, makro bat eslei diezaiekezu inprimakian gertatzen diren gertaera batzuei.

Komando hau erabiltzeko...

Ireki hautatutako inprimaki-elementuaren laster-menua - aukeratu Inprimakia - Gertaerak fitxa.

Ireki Inprimaki-kontrolak tresna-barra edo Inprimaki-diseinua tresna-barra, egin klik Inprimakia ikonoan - Gertaerak fitxa.

Gertaera bat makro batekin estekatzeko, gertaera gauzatzen denean exekutatu beharreko komando guztiak biltzen dituen makroa idatzi behar duzu lehendabizi. ... botoian klik eginez, dagokion gertaerari esleitu makro haudagokion gertaeraren ondoan. Esleitu makroa elkarrizketa-koadroa irekitzen du. Bertan makroa hauta dezakezu.

Ondorengo ekintzak indibidualki konfigura daitezke, hau da, zeure elkarrizketa-koadroak erabil ditzakezu ekintza bat deskribatzeko:

1. Errore-mezua bistaratzea,

2. Ezabatze-prozesua berrestea (datu-erregistroak direnean),

3. Parametro-kontsulta,

4. Sarrerak egiaztatzea datu-erregistroak gordetzean.

Horrek esan nahi duena da, adibidez, datu-erregistro bat ezabatzean "ezabatzea berrestea" eska dezakezula "Benetan ezabatu nahi duzu wyz bezeroa?" edo antzeko ohar batekin.

Gertaeren elkarrizketa-koadroan erakusten diren gertaerak ezin dira zuzenean editatu. Gertaera bat zerrendatik ezaba dezakezu Ezab tekla sakatuz.

Makro batekin esteka daitezkeen inprimakietako gertaerak zerrendatzen eta deskribatzen ditu:

## Bete parametroak

The Fill parameters event occurs when the form to be loaded has parameters that must be filled out. For example, the data source of the form can be the following SQL command:

SELECT * FROM address WHERE name=:name

Hemen kargatzean bete beharreko parametroa da :name. Posible bada, parametroa automatikoki beteko da inprimaki nagusitik. Parametroa ezin bada bete, gertaerari dei egiten zaio eta estekatutako makro batek bete dezake parametroa.

## Bidali aurretik

The Before submitting event occurs before the form data is sent.

## Birkargatu aurretik

The Before reloading event occurs before the form is reloaded. The data content has not yet been refreshed.

## Birkargatzean

The When reloading event occurs directly after the form has been reloaded. The data content has already been refreshed.

## Deskargatu aurretik

The Before unloading event occurs before the form is unloaded; that is, separated from its data source.

## Deskargatzean

The When unloading event occurs directly after the form has been unloaded; that is, separated from its data source.

## Eguneratu aurretik

The Before update event occurs before the control content changed by the user is written into the data source. The linked macro can, for example, prevent this action by returning "FALSE".

## Eguneratu ondoren

The After update event occurs after the control content changed by the user has been written into the data source.

## Berrezarri aurretik

The Prior to reset event occurs before a form is reset. The linked macro can, for example, prevent this action by returning "FALSE".

Inprimaki bat berrezartzen da ondorengo baldintzetako bat betetzen bada:

1. 'Reset' botoi gisa definitutako (HTML) botoi bat sakatzen du erabiltzaileak.

2. Datu-iturburu bati estekatutako formula batean erregistro berri eta huts bat sortzen da. Azken erregistroan, esaterako, Hurrengo erregistroa botoia sakatuz.

## Berrezarri ondoren

The After resetting event occurs after a form has been reset.

## Erregistro-ekintzaren aurretik

The Before record action event occurs before the current record is changed. For example, the linked macro can request confirmation in a dialog.

## Erregistro-ekintzaren ondoren

The After record action event occurs directly after the current record has been changed.

## Erregistroa aldatu aurretik

The Before record change event occurs before the current record pointer is changed. For example, the linked macro can prevent this action by returning "FALSE".

## Erregistroa aldatu ondoren

The After record change event occurs directly after the current record pointer has been changed.

## Errorea gertatzean

The Error occurred event is activated if an error occurs when accessing the data source. This applies to forms, list boxes and combo boxes.

## Ezabatzea berrestean

The Confirm deletion event occurs as soon as data has been deleted from the form. For example, the linked macro can request confirmation in a dialog.

## Kargatzean

The When loading event occurs directly after the form has been loaded.