Support Request #11367
closedNo file dialog for property available
Description
Supportanfrage
We have a question about properties of ADTF components.
Assume that we set a property to a plugin, where users can give a path as input in ADTF Configuration Editor. See Picture 1.
Abbildung 1
However this is not so user-friendly. We found that in some Plugins or services from ADTF there is better way. For example, to give media description file to ADTF Media Description Service, users can select file from menu. See Picture 2.
Abbildung 2
Also, when clicking edit the path, existence of the path will be checked. User can see the path is correct or not (green means path exists, orange means path doesn't exist). See Picture 3.
Abbildung 3
Our question: How to achieve this ? Is there any example?
Thank you for your support in advance!
Lösung
Here should be an example within the delivered examples of ADTF3 "ce_external_property_module_example".
With this example it is possible to use a filename list like the one shown in your pictures.
It can also be used as a base to write your own CE-Module(mainly in qml) to enhance the property editor with a custom editor for your own or existing property types.
If you have any further questions let me know.
I guess your property is of type cString, than it is really a string.
What you want and need is change it to cFilename, then the feature will appear. This works also for cFilenameList, depends on your use case. So please update the property type and recompile including plugin description generation. Note: update the property also in your existing Projects.
Files