Hi! I’m new to Milestone SDK and I need to create a custom view layout to using with SmartWall functionality.
I already understand how to create a custom view for SmartClient using SDK. But now I need to create custom view on server side.
Actualy I did this with SQL database direct access and create Custom folder within built-in viewgroups, but I think there is another solution with SDK.
Unfortunately there is currently no support for adding custom view layouts on the server side. We have this on our backlog and hope to be able to prioritize it in a not so distant future.
Also be careful then doing direct editing of the database - this is totally unsupported and the layout of the database might be changed without notice in future versions.
Hi, Peter. Thanks for your answer. Sometime in SmartCilent I saw a folder named “Custom” in a context menu of creating new view. I’m not sure, but I think it was from Transact plugin.
May be there is another way to create new ViewLayout in BuiltIn Folders (4:3, 16:9, or Custom) from SmartClient Environment?
You can implement new view layouts that will be available in the local Smart Client (under the Custom section), but there is unfortunately no way you can add global view layouts to the system using the SDK. Views created in the Smart Client using the custom layout will be available globally, though.
You do this by adding a class derived from ViewLayout to a Smart Client plugin and then add an instance of it to the PluginDefinition.ViewLayouts Property.