Formularowe tšojenja datoweje banki

Rejtarik Tšojenja wam zmóžnja, wěstym tšojenjam, kótarež se we formularje datoweje banki wótměwaju, makro pśipokazaś.

Pśistup k toś tomu pśikazoju …

Wócyńśo kontekstowy meni wubranego formularowego elementa a wubjeŕśo Formularowe kakosći… – rejtarik: Tšojenja.

Wócyńśo symbolowu rědku Formularowe nacerjenje a klikniśo na symbol Formularowe kakosći – rejtarik: Tšojenja.


Aby tšojenje z makrom zwězał, pišćo nejpjerwjej makro, kótarež wšykne pśikaze wopśimujo, kótarež se maju wuwjasć, gaž se tšojenje wótměwa. Klikniśo pón na tłocašk pódla danego tšojenja, aby wótpowědnemu tšojenjeju toś to makro pśipokazał. Dialog Makro pśipokazaś se wócynijo, źož móžośo makro wubraś.

Slědujuce akcije daju se jadnotliwje konfigurěrowaś, to groni, až móžośo swójske dialogi wužywaś, aby akciju pśedstajił:

  1. Zmólkowu powěźeńku pokazaś,

  2. Proces lašowanja wobkšuśiś (za datowe sajźby),

  3. Parametry wótpšašowaś,

  4. Zapódaśe pśeglědowaś, gaž se datowa sajźba składujo,

Móžośo na pśikład napšašowanje „wulašowanje wobkšuśiś“ wudaś, ako na pśikład „Wužywarja xyz napšawdu lašowaś?“, gaž se datowa sajźba wulašujo.

note

Tšojenja, kótarež se w dialogu Tšojenja pokazuju, njedaju se direktnje wobźěłaś. Móžośo tšojenje z lisćiny wótwónoźeś, gaž tastu Entf tłocyśo.


Slědujuca lisćina wšykne tšojenja we formularje nalicyjo a wopisujo, kótarež daju se z makrom zwězaś:

After record action

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

After record change

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

Before record action

The Before record action event occurs before the current record or record set are changed. Return True when changing is allowed, otherwise False. For example, the linked macro can request confirmation in a dialog.

Before record change

The Before record change event occurs before the current record pointer - SQL cursor - is changed. Return True when moving is allowed, otherwise False.

Confirm deletion

The Confirm deletion event occurs as soon as data has been deleted from the form. Return True to allow row deletion, False otherwise. For example, the linked macro can request confirmation in a dialog.

Error occurred

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

Fill parameters

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

Here :name is a parameter that must be filled out when loading. The parameter is automatically filled out from the parent form if possible. If the parameter cannot be filled out, this event is called and a linked macro can fill out the parameter. Return True when the execution of the parametrized statement should continue, False otherwise.

Pśed aktualizaciju

Tšojenje Pśed aktualizaciju se wótměwa, nježli až se wopśimjeśe wóźeńskego elementa, kótarež jo se změniło wót wužywarja, do datowego žrědła pišo. Zwězane makro na pśikład móžo toś tej akciji zajźowaś, gaž WOPAK wrośa.

Pó aktualizaciji

Tšojenje Pó aktualizaciji se wótměwa, za tym až jo wopśimjeśe wóźeńskego elementa, kótarež jo se změniło wót wužywarja, do datowego žrědła napisane.

Pśed slědkstajenim

Tšojenje Pśed slědkstajenim se wótměwa, nježli až se formular slědk staja. Gaž se Wěrno wrośa, se slědkstajenje pśizwólijo, gaž se Wopak wrośa, se operacija pśetergnjo.

Formular se wrośijo, jolic jadno ze slědujucych wuměnjenjow jo docynjone:

  1. Wužywaŕ na HTML-tłocašk klika, kótaryž jo ako tłocašk slědkstajenja definěrowane.

  2. Nowa a prozna datowa sajźba se w formularje napórajo, kótaraž jo z datowym žrědłom zwězana. W slědnej datowej sajźbje na pśikład se tłocašk Nowa datowa sajźba tłocy.

Pó slědkstajenju

Tšojenje Pó slědkstajenju se wótměwa, za tym až jo se stajił formular slědk.

Pśed wuproznjenim

Tšojenje Pśed wótdźělenim se wótměwa, nježli až se formular wótźělujo, pótakem se wót swójogo datowego žrědła źěli.

Pśed wóspjetowanym zacytanim

Tšojenje Pśed wóspjetowanym zacytanim se wótměwa, nježli až se znowego zacytajo. Datowe wopśimjeśe hyšći njejo zaktualizěrowane.

Pśed wótpósćełanim

Tšojenje Pśed wótpósćełanim se wótměwa, nježli až se formularowe daty sćelu. Gaž se Wěrno wrośa, se wótpósłanje wobkšuśijo, gaž se Wopak wrośa, se wótpósłanje pśetergnjo.

Pśi wuproznjenju

Tšojenje Pśi wótźělenju se direktnje wótměwa, za tym až formular jo se wótźělił, pótakem se wót swójogo datowego žrědła źěli.

Pśi wóspjetowanem zacytanju

Tšojenje Pśi wóspjetowanym zacytanju se direktnje wótměwa, za tym až formular jo znowego zacytany. Datowe wopśimjeśe jo se južo zaktualizěrował.

Pśi zacytowanju

Tšojenje Pśi zacytowanju se direktnje pó zacytowanju formulara wótměwa.

Vetoable events

tip

Macros can interrupt event execution when they return a boolean value: True allows the execution of the event to continue and False stops the event execution.


The following events are interruptable by returning False: