How to correct DAML categories content

63
1
Jump to solution
10-04-2018 10:26 AM
Highlighted
New Contributor II

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>

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Esri Regular Contributor

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

View solution in original post

1 Reply
Highlighted
Esri Regular Contributor

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

View solution in original post