You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! The API is beautiful. It's really light and simple to use.
I would just like to point out that there is a Xml render issue when Value doesn't need to include time value. In this case, the Value tag isn't rendered:
internal string GetCaml()
{
var sb = new StringBuilder();
if (IncludeTimeValue.HasValue)
{
sb.AppendLine($"<Value Type='{Type}' IncludeTimeValue='{(IncludeTimeValue.Value ? "TRUE" : "FALSE")}'>");
}
sb.AppendLine(GetCamlValue());
sb.AppendLine("</Value>");
return sb.ToString();
}
I've a workaround the issue. It's an ad-hoc solution for queries that not involve a datetime field as part of where clause. Here is it:
var value = Value.ObjectValue(ValueType.Text, true, filterValue);
var viewXml = Query
.Build(Operator.Equal("fieldName", value))
.GetCaml()
.Replace(" IncludeTimeValue='TRUE'", string.Empty);
It would be great if you can fix it, perhaps just by adding:
else
{
sb.AppendLine($"<Value Type='{Type}'>");
}
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi! The API is beautiful. It's really light and simple to use.
I would just like to point out that there is a Xml render issue when Value doesn't need to include time value. In this case, the Value tag isn't rendered:
I've a workaround the issue. It's an ad-hoc solution for queries that not involve a datetime field as part of where clause. Here is it:
It would be great if you can fix it, perhaps just by adding:
Thanks in advance!
The text was updated successfully, but these errors were encountered: