Hi Dojo,
I'm developing a Low-Code app and I need to get all elements that match a name filter in my ad hoc GQI script to have some additional process.
I'm looking something similiar to GetElementByNameMessage but with a element list as response. I can't find in .Net.Messages something to do that work or similar.
What could be the best way to get it?
Thanks!
Hi Manuel,
What you're looking for is GetInfoMessage with InfoType.ElementInfo.
var request = new GetInfoMessage(InfoType.ElementInfo);
var responses = dms.SendMessages(request);
var elements = responses.OfType<ElementInfoEventMessage>();
However, depending on what you're trying to do it might not be necessary to create an ad-hoc data source for this. There is also a built-in Get Elements data source which returns a list of all elements. Maybe you could join this with the data you already have.
Hi Tom,
Thanks a lot for the reply,m that's exactly what I need.
And additional question, what's the object request or method to get all the primary keys in a table?