Click or drag to resize

OpsContextRequestEntry Method

This method is used to get any kind of user input.

Namespace:  Micros.Ops
Assembly:  Ops (in Ops.dll) Version: 18.2
Syntax
C#
public InputEntryResponseBase RequestEntry(
	RequestEntryParameters parameters
)

Parameters

parameters
Type: Micros.Ops.InputRequestEntryParameters
Defines the types of allowed/request input

Return Value

Type: InputEntryResponseBase
The response of the request. The type of the object is based on the request parameters. All responses derive from 'InputEntryResponseBase'.
Examples
This code shows how to request masked data from the user
var parms = new Micros.Ops.Input.RequestEntryParameters();
parms.Title = "The Title";
parms.Prompt = "The Prompt";
parms.AllowManualEntry = true;
parms.MaskEntry = true;
parms.RequestEntryType = Micros.Ops.Input.RequestEntryType.Numeric;
var response = _OpsContext.RequestEntry( parms );
if ( response.EntryMethod == Micros.Ops.Input.ResponseEntryMethod.Manual )
{
   var numericRsp = response as Micros.Ops.Input.InputResponseNumeric;
   _OpsContext.ShowMessage( string.Format( "Data entered: {0}", numericRsp.Data ) );
}
See Also