For cameras it is working! Why not for Monitors and Layouts?
private static List CreateList(Item item, string key)
{
if (item.Properties.ContainsKey(key))
{
String selectedList = item.Properties\[key\];
XmlDocument doc = new XmlDocument
{
InnerXml = selectedList
};
List<Item> list = new List<Item>();
XmlNode selectedNode = doc.SelectSingleNode(key);
foreach (XmlNode itemNode in selectedNode.SelectNodes("Item"))
{
FQID fqidItem = new FQID(itemNode.SelectSingleNode("FQID"));
Item \_serverItem = Configuration.Instance.GetItem(fqidItem);
if (\_serverItem != null)
{
list.Add(\_serverItem);
}
}
return list;
}
return null;
}
For Monitors and Layouts “Item _serverItem = Configuration.Instance.GetItem(fqidItem);” gets null.