Table of contents



Official Content

Web User Interfaces are context-sensitive. This means that, while the end user is moving the cursor (through attributes, variables, etc.), the TrackContext event can be triggered (depending on the received parameters) and you can take actions. 

Syntax

Event TrackContext (parameters)
      Event_code
EndEvent

Where:

Event_code
    Code associated with the event.

parameters
    They can only be variables.

Scope

Objects: Transaction, Web Panel
Generators: .NET Framework, .NET, Java

Description

It is possible to trigger events and take actions while the end user moves the cursor in a Web User Interface.

The TrackContext event is qualified by the parameters it receives. That is, you can have any number of TrackContext Events in the same object, that are differentiated by the parameters they receive.

Sample

Suppose a Web Panel object that is made up of several Web Components.

You can trigger an event in one of the web components as soon as the end user changes his/her context information in another component (changes the focus to a control, or selects a grid line).

Basically, the web controls that you want to track changes on "subscribe" to an event which listens to the context changes of any other control.

Defining a TrackContext event, allows you to retrieve the context information and take the desired actions.

i36_jpg

 

i35_jpg

See also

Context Sensitive User Interfaces 

  

  

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant