Events

Field events are linked to and executed by individual data entry prompts in a RFgen form. Form events are global in nature. For example, the form event (i.e. Form load event) occurs immediately before the corresponding field event). Using these events, the developer can choose a respond to the user's actions. For example, when the user swipes the iOS screen on an RFgen client while in a Login Screen, the developer can choose what happens in response to this action while on this page after or before a login.

To add an event, select the desired event from the application form Control Properties list. The Script view displays the corresponding module for the selected event.

The device-related actions supported by RFgen are: Initialize, InRange, OnConnect, OnDisconnect, OnLocale, OnSwipe, OutOfRange, and Terminate.

The Applicationrelated events are:

AfterCellEdit, Click, ClickInline, GotFocus, Load, LostFocus, OnBackup, OnChar, OnDisconnect, OnEnter, OnEscape, OnFkey, OnKeyDown, OnMenu, OnPage, OnProgress, OnReadData, OnRefresh, OnReturn, OnRowColChange, OnRowColClick, OnScan, OnSearch, OnSendComplete, OnSendProgress, OnTimer, OnUpdate, OnVocollect, and Unload.

Events that are global to the form are: GotFocus, Load, LostFocus, OnBackup, OnEnter, OnFKey, OnMenu, OnPage, OnProgress, OnRefresh, OnReturn, OnScan, OnTimer, OnUpdate, and Unload.

If you are working with an event that is associated with an object (also called a prompt), you can script a prompt to default to a data value (i.e. set a string to equal '1000') or data format (date/time format or truncate text strings).

For additional information on available parameters, see Setting Default Values in the RFgen Developers Reference Guide.