Hi Dojo,
Is there any way to get dinamically all the keys for a parameter table in a Low-Code App?
I could use ad-hoc data but by this way I get the keys as strings, not as index types to use it as data filtering feeds (for example to filter a trend component where it can be used only the "Indices" component output).
Any idea?
Thanks in advance!
Hi Manuel
You could use GQI to fetch these indices using the built-in 'Get parameter table by ID' data source. This data source has 2 inputs: DMA ID & Element ID. When selecting a row from the query result, an 'Indices' data item should be available.
Update
since the ids need to be dynamic, an ad hoc source will be the way to go. You can add metadata to the rows returned for an ad hoc source. This will make the rows have an 'indices' data item that can be used as data/filter in the components.
var param = new ParamID(DataMinerID, ElementID, ParameterID, Index);
var paramMetadata = new ObjectRefMetadata { Object = param };
var rowMetadata = new GenIfRowMetadata(new[] { paramMetadata });var row = new GQIRow(...) { Metadata = rowMetadata }
Hi Manuel,
Since you cannot link these inputs to another component (such as a dropdown), an Ad Hoc data source will be the way to go. I have updated my answer with how to add the required metadata to make the indices available as a data item in the app.
Hi Wout, thanks for the reply.
The point here is that I need to get all the keys for a Protocol or be able to change dinamically the DMA and Element ID input in the Get parameter table by ID data source.
At the end of the day, I'll have a dropdown with two colums, keys and element and both columns linked to a line and area component.