The SetCursorRequest event is triggered when the runtime system sets the focus on a field in the current DataModel.
Namespace – ABSuite.AccessLayer.Connector.Core
Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)
Syntax
event EventHandler<ConnectionEventArgs> SetCursorRequest
Using the IConnection Interface for the SetCursorRequest Event
The following code is an example of using the SetCursorRequest event:
// Register for the SetCursorRequest event ABSConnection.SetCursorRequest += HandleCursorRequest; // HandleCursorRequest is the handler for processing the // SetCursorRequest event when the Host application sets the cursor // to a specific field in the DataModel. public void HandleCursorRequest(object sender, ConnectionEventArgs args) { // Retrieve the cursor information string cursorField = args.FocusField; // Field name to set the focus int cursorCopy = args.ColumnIndex; // Copy row number if it is a Copy.From ispec ApplicationLogger.LogInfo(() => string.Format("Cursor Field is set to: {0}. ColumnIndex is {1}", cursorField, cursorCopy)); }