Friday, 17 March 2017


Gen GUI logic allows you to invoke an event handler via a USE of a dummy action block called TIREVENT. For example, to invoke the event handler called "CLICK_LOGIC" you could define an event called "CLICK" in the window and then invoke it as follows:

SET temp_tirevent.ief_supplied.command TO "CLICK"
USE tirevent
       WHICH IMPORTS: temp_tirevent.ief_supplied TO Work View in.ief_supplied

This use of a dummy action block TIREVENT has always seemed a bit strange and unnecessary, so for a Rapide application, you can now invoke the event via an API call:

INVOKE temp.rapide.object . postEventToSelf( "CLICK" )

However you would still need to create the event in the window design, which again seems unnecessary, so you can now also just directly post an event to invoke the event handler by its name:

INVOKE temp.rapide.object . postEventByName( "CLICK_LOGIC" )


Auto Suggest Fields

A new feature in Rapide allows you to define an auto-suggest field.

In the example below, the entry field for a country is supported by an auto-suggest list that shows the list of countries that start with the current value of the field.

Unlike a drop-down selection which has to contain a fixed set of data and which, if triggered by a keypress event, would slow down typing in the field, the population of the auto-suggest can be handled by an asynchronous thread in the client p-step and hence the data could be retrieved from a much larger dataset (for example from a database table via a server or web service) without affecting the user's ability to continue to type in the desired value.