What I want is to be able to set through the SDK, but I wasn’t able to, for now.
This is what I’ve tried but it doesn’t work.
//This gets the Cameras
List<Item> oItems = Configuration.Instance.GetItems(ItemHierarchy.SystemDefined);
List<Item> cameraItems = GetCameras(oItems[0]);
//I tried converting from Item to Camera, so I could use the Save().
Camera test = new Camera(cameraItems[0].FQID);
test.SetProperty("GisPoint", "POINT(88 33)");
test.Save();
But, after I get the Cameras again, the location remains the old one and not the updated version.
When I update the GisPoint property in the same way as your example, it works fine on my end and I can see the updated coordinates after refreshing the Management Client.
Does the Config API Client sample allow you to successfully change the value?
Not sure if you need to do this in C# or not, but if a PowerShell-based approach would work for you, you might be interested in this sample/demo:
But since you appear to be changing the property the right way and it is not being updated for you in Management Client, it might be that neither the Config API Client sample or PowerShell work for you either. Let us know.
List<Item> oItems2 = Configuration.Instance.GetItems(ItemHierarchy.SystemDefined);
List<Item> cameraItems2 = GetCameras(oItems[0]); <--- OLD LIST :(
I was getting the items from the old item list instead the new one (oItems instead should be oItems2)… I’m can’t believe I had this for so long and didn’t notice…
Well, happens I guess. Thank you very much for all your answers
I noticed the changes don’t go through immediately , how do I refresh the Management Client so the changes are made in the same session? Right now I have to close and open the Client for the changes to update.
What’s the command to use so this refresh is made on the instant?
It turns out that my advise was not good. The RefreshConfiguration is only working for MIP items, not for the camera items or other regular built-in items.
Currently the only way to refresh this is for the user to do a refresh (Action → Refresh or press F5). The refresh is total and the Management Client takes time doing this while re-displaying the full UI. You cannot initiate this full refresh from code.
To be able to do this refresh from code is on the wish-list for future development but it has not been prioritized yet.