AnsweredAssumed Answered

Problem with AF SDK Search Query

Question asked by JSEMINARIO on Aug 8, 2019
Latest reply on Aug 8, 2019 by Rick Davin

Hello.

I'm developing an application with PI AF SDK.

When I try to specify an attribute value for filtering an AFEventFrameSearch I receive the message:

 

string queryEM = string.Format("Template:'{0}' |Linea:='{1}' |Tipo de Intervención:<>'5' ", plantillaEM.GetPath(db), Linea);

AFEventFrameSearch busqueda = new AFEventFrameSearch(db, "EFsearch", AFSearchMode.Overlapped, inicio, fin, queryEM);

busqueda.CacheTimeout = TimeSpan.FromMinutes(10);

IEnumerable<AFEventFrame> eventos = busqueda.FindEventFrames(fullLoad: true);

The problem is the attribute "Tipo de Intervención", maybe because it has spaces between the words of the name?.

 

Appreciate your comments.

Outcomes