I am trying to execute a query using the IQuery interface (ClearScada.Client.Advanced.IQuery). I can see using the Visual Studio object browser that the IQuerySource interface provides a method to do this:
IQuery PrepareQuery(string query, QueryParseParameters parameters);
However this is not a static method and so I need to find the method that returns an IQuerySource object and I have searched high and low but cannot find one.
Does anyone have any ideas?
@sbeadle do you have an examples to share of querying the Geo SCADA Expert DB using the Geo SCADA Expert Client API?
I know how to do this using ODBC but I want to understand and use the Geo SCADA Expert Client API.
Solved! Go to Solution.
Not to worry, having thought a little harder and dug a little deeper it seemed obvious that the interface must be implemented by the server node or server itself. The IServer interface implements the IQuerySource interface and so the server interface object obtained from the ServerNode.Connect method exposes the PrepareQuery method, got it? Thanks for looking anyway (o:
Not to worry, having thought a little harder and dug a little deeper it seemed obvious that the interface must be implemented by the server node or server itself. The IServer interface implements the IQuerySource interface and so the server interface object obtained from the ServerNode.Connect method exposes the PrepareQuery method, got it? Thanks for looking anyway (o:
Discuss challenges in energy and automation with 30,000+ experts and peers.
Find answers in 10,000+ support articles to help solve your product and business challenges.
Find peer based solutions to your questions. Provide answers for fellow community members!