foreach (var parameter in paramsNeeded)
{
var msg = new GetParameterMessage(childInfo.DataMinerID, childInfo.ElementID,
parameter.ParameterID, parameter.FilterValue, true);
reqParam.Add(msg);
}
try
{
_logger.Information("Send DMA request");
var responseMsg = _dms.SendMessages(reqParam.ToArray());
var response = responseMsg.OfType<GetParameterResponseMessage>().ToList();
paramInfo = response.FindAll(x => !string.IsNullOrEmpty(x.Value.ToString()) && !x.Value.ToString().Equals("EMPTY", StringComparison.CurrentCultureIgnoreCase)).ToList();
}
catch (Exception e)
{
_logger.Error($"Error fetching parameters: {e.Message}");
continue;
}
Here i am sending pids to DM and getting values of the table from element to display in my LCA table component. Certain DM table is coming twice in the response for the same element.
how to ignore/filter out this type of redundant response data. I cannot do this based on pid, as the application is dynamic and pids are stored in DOM. only when i access my LCA i will know which table data im gonna display.