EditedValueProvider class | QSYS API Reference Guide

Estimated reading time: 3 minutes

Provides support for Posted form validation for fields with Edit Code or Edit Word. (This value provider is registered in Startup.ConfigureServices)

Namespace: ASNA.QSys.Expo.Model Assembly: ASNA.QSys.Expo.Model.dll

Inheritance: Object –> BindingSourceValueProvider

Remarks

This value provider is registered in Startup.ConfigureServices.

Constructors

Name Description
EditedValueProvider(BindingSource, IFormCollection, CultureInfo) Initializes a new instance of EditedValueProvider

EditedValueProvider(BindingSource, IFormCollection, CultureInfo)

Initializes a new instance of EditedValueProvider

EditedValueProvider(BindingSource, IFormCollection, CultureInfo)

Parameters

Type Parameter name Description
BindingSource bindingSource BindingSource for model binding
IFormCollection values Parsed form request
CultureInfo culture Information about specific Culture

Properties

Type Name Description
CultureInfo Culture Gets a value with Culture specific information

Methods

Signature Description
ContainsPrefix(String) Overrides ContainsPrefix from the base
GetFieldTemplateName(String) Produce a field’s name which is either the original name or if a subfile field then without the actual subfile RRN.
GetKeysFromPrefix(String) Gets a Dictionary withe the keys from a given prefix
GetValue(String) Gets a ValueProviderResult given a dictionary key

bool ContainsPrefix(string prefix)

Overrides ContainsPrefix from the base

bool ContainsPrefix(string prefix)

Parameters

Type Parameter name Description
String prefix prefix sub-string

Returns

Type Description
Boolean true if string contains the given prefix

string GetFieldTemplateName(string originalFieldName)

Produce a field’s name which is either the original name or if a subfile field then without the actual subfile RRN.

string GetFieldTemplateName(string originalFieldName)

Parameters

Type Parameter name Description
String originalFieldName Original qualified field name.

Returns

Type Description
String Return field’s name without an actual subfile RRN.

IDictionary<string, string> GetKeysFromPrefix(string prefix)

Gets a Dictionary withe the keys from a given prefix

IDictionary<string, string> GetKeysFromPrefix(string prefix)

Parameters

Type Parameter name Description
String prefix input prefix

Returns

Type Description
IDictionary`2 A Dictionary with a string key with string elements

ValueProviderResult GetValue(string key)

Gets a ValueProviderResult given a dictionary key

ValueProviderResult GetValue(string key)

Parameters

Type Parameter name Description
String key input dictionary key

Returns

Type Description
ValueProviderResult the value provider result