I've been looking through various DAML references but can't seem to find esri_geodatabase_folderConnectionContainer and alternative values for placeswith when defining a custom project item container in Config.DAML. I'm following the "ProConcepts Custom Items" document. I'm developing an add-in that needs to store private data in the project and am thinking a custom project item is the way to do it. If possible I'd prefer the project item not be visible to the use.
This Pro Guide might help: ProGuide-Custom-settings
Note that OnReadSettingsAsync is called only if you _have_ settings in a given aprx (and the module is already loaded). It is called when the project is opened. OnWriteSettingsAsync will be called on project save.
HI Alan,
You can use BackStage_PropertyPage ArcGIS Pro sample to store private data in the project. More info here:
https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/BackStage_PropertyPage
Thanks, Gintautas, I'd discovered that after posting this question. This approach seems to require creating a property sheet that is displayed in the backstage, which is undesirable in my case. It's also limited to string representations, not a big deal, but less than ideal. I really want to store complex data, preferably without it being visible to the user.
It looks like it might be possible to do a property page that displays only a minimal number of properties but actually store many more behind the scene. I'm implementing an experiment today.
In ArcObjects our application stored private custom data by storing a custom object as a PageLayoutExtension.
Hi Alan,
You can use project settings without user interface. You can find implementation in module class. All complex settings you can serialize and store as strings
Get Outlook for Android<https://aka.ms/ghei36>
I tried that yesterday. The debugger shows that OnReadSettingsAsync() and OnWriteSettingsAsync() are never being called. That's why it appears to me a property page is necessary.
Unless it's possible to instantiate ModuleSettingsReader and ModuleSettingsWriter in my module and make those calls form within the module?
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.