OpsContextRequestEntry Method |
This method is used to get any kind of user input.
Namespace: Micros.OpsAssembly: Ops (in Ops.dll) Version: 19.9
Syntaxpublic InputEntryResponseBase RequestEntry(
RequestEntryParameters parameters
)
Parameters
- parameters RequestEntryParameters
- Defines the types of allowed/request input
Return Value
InputEntryResponseBase
The response of the request. The type of the object is based on the request parameters.
All responses derive from 'InputEntryResponseBase'.
Example
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