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
This value provider is registered in Startup.ConfigureServices.
Constructors
Initializes a new instance of EditedValueProvider
EditedValueProvider(BindingSource, IFormCollection, CultureInfo)
Parameters
Properties
Type |
Name |
Description |
CultureInfo |
Culture |
Gets a value with Culture specific information |
Methods
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 |
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