This commit is contained in:
@@ -106,14 +106,14 @@ namespace AyaNova.DataList
|
||||
JObject j = JObject.Parse(cust);
|
||||
//convert field name to cust name then get value
|
||||
var InternalCustomFieldName = AyaFormFieldDefinitions.TranslateLTCustomFieldToInternalCustomFieldName(TemplateField);
|
||||
//Sometimes a custom field is specified but doesn't exist in the collection so don't assume it's there
|
||||
// AyaField.v = j[InternalCustomFieldName].Value<object>();
|
||||
//Sometimes a custom field is specified but doesn't exist in the collection so don't assume it's there
|
||||
// AyaField.v = j[InternalCustomFieldName].Value<object>();
|
||||
JToken o = j[InternalCustomFieldName];
|
||||
if (o != null)
|
||||
AyaField.v = o.Value<object>();
|
||||
else
|
||||
AyaField.v = null;
|
||||
|
||||
|
||||
row.Add(AyaField);
|
||||
}
|
||||
|
||||
@@ -141,6 +141,14 @@ dr.GetOrdinal("customfields");
|
||||
AyaFieldData AyaField = new AyaFieldData();
|
||||
AyaField.v = dr.GetValue(SelectBuild.map[f.GetSqlValueColumnName()]);
|
||||
|
||||
if (f.IsRowId)
|
||||
{
|
||||
AyaField.rid = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
AyaField.rid = null;
|
||||
}
|
||||
|
||||
if (f.SqlIdColumnName != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user