View of Settings Plugin is blank on an other Workstation.

My Plugin shoes on a new workstation a blank settings window (see pic.). On my develop PC it’s ok.

What could be the problem?

System is Corporate 2017R3

Is it the same plugin (build)? (Serialize and deserialize might depend on exact match.)

How do you store and read the settings from the server.

Yes it’s the same build.

I use in a background plugin:

MessageCommunicationManager.Start(EnvironmentManager.Instance.MasterSite.ServerId);

       \_msgCommunication = MessageCommunicationManager.Get(EnvironmentManager.Instance.MasterSite.ServerId);

       \_newAlarmList = \_msgCommunication.RegisterCommunicationFilter(

           AlarmListReceiver,

           new CommunicationIdFilter(MessageId.Server.NewAlarmIndication)

           );

       \_changeAlarmList = \_msgCommunication.RegisterCommunicationFilter(

           ChangeAlarmListReceiver,

           new CommunicationIdFilter(MessageId.Server.ChangedAlarmIndication)

           );

       \_configChanged = \_msgCommunication.RegisterCommunicationFilter(

           ConfigChangedIndication,

           new CommunicationIdFilter(MessageID\_SettingsPanel)

           );

private object ConfigChangedIndication(Message message, FQID destination, FQID sender)

   {

       Utilitys.GetPropertyList("PropertyItems", message.Data as string, out \_storePropertyList, out \_alarmMonitorFQID);

       return null;

   }

public static void GetPropertyList(string key, string propertyString, out List list, out FQID alarmMonitorFQID)

   {

       list = null;

       alarmMonitorFQID = null;

       if (propertyString != String.Empty)

       {

           XmlDocument doc = new XmlDocument

           {

               InnerXml = propertyString

           };

           list = new List<StoreProperties>();

           XmlNode selectedNode = doc.SelectSingleNode(key);

           XmlNode node = selectedNode.SelectNodes("AlarmMonitor")\[0\];

           alarmMonitorFQID = new FQID(node.SelectSingleNode("FQID"));

           foreach (XmlNode itemNode in selectedNode.SelectNodes("PropertyItem"))

           {

               string itemName = itemNode.SelectSingleNode("TreeviewModelItemName").InnerText;

               FQID itemFQID = new FQID(itemNode.SelectSingleNode("FQID"));

               bool? isChecked = itemNode.SelectSingleNode("TreeviewModelItemIsChecked").InnerText == "Yes";

               TreeviewModel item = new TreeviewModel

               {

                   Name = itemName,

                   TriggerFQID = itemFQID,

                   IsChecked = isChecked,

                   Kind = itemFQID.Kind

               };

               isChecked = itemNode.SelectSingleNode("CameraWindowIsChecked").InnerText == "Yes";

               node = itemNode.SelectNodes("RelatedCamera")\[0\];

               itemFQID = new FQID(node.SelectSingleNode("FQID"));

               StoreProperties property = new StoreProperties

               {

                   Item = item,

                   CameraWindow = isChecked,

                   RelatedCamera = itemFQID

               };

               list.Add(property);

           }

       }

   }

Maybe by question was not the best now that I have had another thought.. You control does not show at all. How was that implemented and initialized?

The Anaylytics Overlay plugin sample is a sample that implement a settings plugin, does this sample work where your plugin fails? Maybe if this works you can do a comparison of the code and see whether you can figure out if there is a difference which causes this.

I use “SettingsPanelPlugin” and the sample “PluginDefinition”.

Maybe this is the problem?

And “UserControl” instead of “OptionsDialogUserControl” but on my system it works.

Different sample then. Does Smart Client Settings Panel plugin sample work unmodified, or does this sample have the same issue when you test?

Additional question: Are the Smart Clients the same version? Which version?

On my PC both work fine. On the PC on bord test is outstanding, I hope I get this information next time.

Yes, both SC have the same version: 11.3.6406.1.

I try the Overlay Sample on the workstation on board and it is working.

Then I make the changes from UserControl to OptionsDialogUserControl in my plugin but it’s the same. On my system it’s working and on bord I can’t see the controls. No button, treeview…

Uhh, did you try the Smart Client Settings Panel plugin sample?

If that sample unmodified fails in the same way let me know..

Ok,

the Smart Client Settings Panel plugin sample (WPF) works on board.

I think it’s the way I store and load the settings made in the Settings Plugin.

Can I use for this typ of settings panel plugin (WPF & SettingsPanelPlugin) the same way of store and load settings like in SmartClientExtension sample (OptionsDialogPlugin)?