I’ve seen this method being used to create dynamic views where the one used is the camera object and you feed the FQID so that it sets the camera. However, if I want to feed an Alarm object through a InsertViewItemPlugin to build a ViewItemPlugin how does it work, is it filling the public properties with the dictionary? how does it work?
I guess in my case I should serialize the Alarm into Json string format create a field in the viewItem and deserialize it then or simply feed the alarm through the constructor of the view item and ignore the properties dictionary?
I suspect you want control the Alarm List, and open it with an alarm line picked. This is not possible. the Alarm List does not take any properties.
Not really, the idea is that I’m trying to open a custom window for diferent types of alarms. That has brought me to opening a dynamic view which is premade and selected depending on other options.
However, I don’t really get how this method works, when I could feed this alarm object as a parameter of the constructor.
In order to not chase the wrong ideas and give you another answer that doesn’t fit I would like you to explain the use case scenario in detail, what you have envisioned and is trying to achieve. What does the user do? What does the integration plugin do? What should the user see then?
What I’m trying to do, is to set up an Alarm preview plugin. However, instead of showing text as the example does, I have used it as a button panel. There, if I click a button a message with an invented code should be sent with the alarm info to be received by a background plugin that matches the DynamicView example listening to this new code. So far, I’ve managed to solve the issue with the message not being received, but what I’m getting now is an error promting that the alarm object sent through the data field of the message, once converted back to an alarm is null.
I can’t manage to send the alarm within the message and receive it so that it is not null.
Then this alarm background plugin should create a floating window with the alarm contents in a custom ViewItemplugin that we made.
Nevermind, I found the problem. I was not feeding correctly the alarm into the data field. Thanks a lot!
Thank you for the good news that you solved the issue.