I am using <content> inside <button> in my Config.daml with custom element "Descr" which causes compiler message:
Could not find schema information for the attribute 'Descr'
Categories.GetComponentElements can find this ComponentElement, but I would like to have clean messages box.
What should be done?
<categories>
<insertCategory id="CatID_1"/>
</categories>
<button id="ButtonID_TS1" ... categoryRefID="CatID_1">
...
<content Descr="Test"></content>
</button>
Solved! Go to Solution.
Hi Roman
The button element cannot have a <content> child element. The schema does not allow this.
The <content> tag can be added as a child element of the <insertComponent> element only. The following gives an example of a usage for this from the ADMapping.daml.
<insertComponent id="esri_mapping_bookmarks" className="BookmarksEmbeddableControlViewModel">
<content className="BookmarksEmbeddableControlView" relatedCommand="esri_mapping_showBookmarksWindow" autoRunOnly="true"/>
</insertComponent>
Thanks
Uma
Hi Roman
The button element cannot have a <content> child element. The schema does not allow this.
The <content> tag can be added as a child element of the <insertComponent> element only. The following gives an example of a usage for this from the ADMapping.daml.
<insertComponent id="esri_mapping_bookmarks" className="BookmarksEmbeddableControlViewModel">
<content className="BookmarksEmbeddableControlView" relatedCommand="esri_mapping_showBookmarksWindow" autoRunOnly="true"/>
</insertComponent>
Thanks
Uma