Hi
I'm using CWS 10.5 to implement a searching feature via search service.
With the function GetFieldInfo(), I can get fieldInfo for regions.
But fieldInfo include name only.It doesn't include display name of region.
Is there any way to get a display name of region(fieldinfo)?
Thanks
var dataCollections = searchService.GetDataCollections(ref otAuth);
var dataCollection = GetStringConfig("QueryDataCollection", "LES Enterprise");
if (!dataCollections.Contains(dataCollection))
{
throw new Exception($"QueryDataCollection '{dataCollection}' is not supported.");
}
var list = new List<AttributeType>();
var fieldInfos = searchService.GetFieldInfo(ref otAuth, "\"" + dataCollection + "\"", null);
foreach (var fieldInfo in fieldInfos.Where(x => x.Name != "OTSubType"))
{
if (!fieldInfo.Searchable)
continue;
// How can get a display name for fieldInfo?