AnsweredAssumed Answered

Find event frames of Current AF Elements and its sub Elements

Question asked by Sasanka on Jun 8, 2020
Latest reply on Jul 8, 2020 by ddrayer

I can get all EFs of current element as below code, any  sample code/query to get get all efs of its sub elements? 

 

string query = @"Template: templateName ElementName:  elementName";

using (var search = new AFEventFrameSearch(afDatabase, "FindEventFields", (AFSearchMode)Enum.Parse(typeof(AFSearchMode), eventFrameData.EFSearchMode.ToString()), new AFTime(eventFrameData.StartTime), new AFTime(eventFrameData.EndTime), query))
{
int totol = search.GetTotalCount();
search.CacheTimeout = TimeSpan.FromMinutes(10);
foreach (AFEventFrame item in search.FindObjects(fullLoad: true, startIndex: eventFrameData.StartIndex, pageSize: eventFrameData.PageSize))
{

}

}

Outcomes