This commit is contained in:
@@ -106,8 +106,8 @@ namespace AyaNova.DataList
|
|||||||
JObject j = JObject.Parse(cust);
|
JObject j = JObject.Parse(cust);
|
||||||
//convert field name to cust name then get value
|
//convert field name to cust name then get value
|
||||||
var InternalCustomFieldName = AyaFormFieldDefinitions.TranslateLTCustomFieldToInternalCustomFieldName(TemplateField);
|
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
|
//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>();
|
// AyaField.v = j[InternalCustomFieldName].Value<object>();
|
||||||
JToken o = j[InternalCustomFieldName];
|
JToken o = j[InternalCustomFieldName];
|
||||||
if (o != null)
|
if (o != null)
|
||||||
AyaField.v = o.Value<object>();
|
AyaField.v = o.Value<object>();
|
||||||
@@ -141,6 +141,14 @@ dr.GetOrdinal("customfields");
|
|||||||
AyaFieldData AyaField = new AyaFieldData();
|
AyaFieldData AyaField = new AyaFieldData();
|
||||||
AyaField.v = dr.GetValue(SelectBuild.map[f.GetSqlValueColumnName()]);
|
AyaField.v = dr.GetValue(SelectBuild.map[f.GetSqlValueColumnName()]);
|
||||||
|
|
||||||
|
if (f.IsRowId)
|
||||||
|
{
|
||||||
|
AyaField.rid = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
AyaField.rid = null;
|
||||||
|
}
|
||||||
|
|
||||||
if (f.SqlIdColumnName != null)
|
if (f.SqlIdColumnName != null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,5 +11,7 @@ namespace AyaNova.Biz
|
|||||||
public object v { get; set; }
|
public object v { get; set; }
|
||||||
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] //https://www.newtonsoft.com/json/help/html/JsonPropertyPropertyLevelSetting.htm
|
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] //https://www.newtonsoft.com/json/help/html/JsonPropertyPropertyLevelSetting.htm
|
||||||
public long? i { get; set; }
|
public long? i { get; set; }
|
||||||
|
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] //https://www.newtonsoft.com/json/help/html/JsonPropertyPropertyLevelSetting.htm
|
||||||
|
public bool? rid { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user