Class Record
Represents a client-side "Form" an analogue of WAVE.RecordModel.Record on C# server-side.
The class is initialized from schema obtained from the server via JSON.
The JSON is generated by RecordModelGenerator class.
This class is usually used for API consumers that need to have the JS/client-like functionality on the server
Inheritance
System.Object
Record
Implements
System.Collections.Generic.IEnumerable<System.Object>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: NFX.Wave.dll
Syntax
public class Record : DynamicRow, IConfigurable, IConfigurationPersistent, IEquatable<Row>, IEnumerable<object>, IEnumerable, IValidatable, IJSONWritable
Constructors
Record(JSONDataMap)
Declaration
public Record(JSONDataMap init)
Parameters
Record(String)
Declaration
public Record(string init)
Parameters
Type |
Name |
Description |
System.String |
init |
|
Fields
m_Errors
Declaration
protected List<Record.ServerError> m_Errors
Field Value
m_Init
Declaration
protected JSONDataMap m_Init
Field Value
Properties
CSRFToken
Declaration
public string CSRFToken { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public string FormMode { get; }
Property Value
Type |
Description |
System.String |
|
ID
Declaration
Property Value
Type |
Description |
System.Nullable<System.Guid> |
|
Init
Declaration
public JSONDataMap Init { get; }
Property Value
ISOLang
Declaration
public string ISOLang { get; }
Property Value
Type |
Description |
System.String |
|
JSONData
Returns JSON representation of the Record including MODE, CSRF token and Roundtrip metafields
Declaration
public JSONDataMap JSONData { get; }
Property Value
OK
Declaration
public bool ? OK { get; }
Property Value
Type |
Description |
System.Nullable<System.Boolean> |
|
Roundtrip
Declaration
public JSONDataMap Roundtrip { get; }
Property Value
ServerErrors
Declaration
public IEnumerable<Record.ServerError> ServerErrors { get; }
Property Value
Methods
ClearErrors()
Declaration
public virtual void ClearErrors()
GetFieldDefFromJSON(JSONDataMap)
Declaration
protected virtual Schema.FieldDef GetFieldDefFromJSON(JSONDataMap def)
Parameters
Returns
LoadData()
Declaration
protected virtual void LoadData()
MapInitToSchema()
Declaration
protected virtual Schema MapInitToSchema()
Returns
MapJSToCLRCharCase(String)
Declaration
protected virtual CharCase MapJSToCLRCharCase(string kind)
Parameters
Type |
Name |
Description |
System.String |
kind |
|
Returns
MapJSToCLRKind(String)
Declaration
protected virtual DataKind MapJSToCLRKind(string kind)
Parameters
Type |
Name |
Description |
System.String |
kind |
|
Returns
MapJSToCLRType(String)
Declaration
protected virtual Type MapJSToCLRType(string tp)
Parameters
Type |
Name |
Description |
System.String |
tp |
|
Returns
Type |
Description |
System.Type |
|
Implements
System.IEquatable<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Extension Methods