define PropertyType for DataSource to use dropped list and get value from it
In tutorial, metadata.editor = "BrowseFileTextEditor" usually used to set data file(eg. .xml) in data source window of kanzi. so the name of selected file could be gotton by calling "getProperty(name of property)" in xxxdatasource.cpp.
but in my case, I want to select file name in list like dropbox in data source window of kanzi studio, and get selected file name like using getProperty(name of property).
In order to do that, I tried to use metadata.valueProvider with key "Enum" and I can see list defined by enum in datasource window. but when I select one item, I cannot get selected string or data using getProperty(name of property)" in xxxdatasource.cpp.
so my question is how to use list to select item as a value of propertyType in datasource window and how to get selected item in xxxdatasource.cpp.
I searched about that but I cannot find helpful document.
-
Studio Enum property types work only with engine <PropertyType<int> (or PropertyType<MyEnum> for some c++ enum MyEnum {...}).
There is no editor that would allow selecting a PropertyType<string> from a predefined set of strings. Instead of a dropdown just a plain PropertyType<string> allows typing anything0
Please sign in to leave a comment.
Comments
1 comment