<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: CustomData attribute (data-) not working as documente... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/customdata-attribute-data-not-working-as-documented-on-xml/qaa-p/13880657#M4885893</link>
    <description>&lt;P&gt;The reason is that Shorthand for customdata does not write those attributes to DOM.&lt;/P&gt;&lt;P&gt;&lt;A href="https://ui5.sap.com/#/topic/1ef9fefa2a574735957dcf52502ab8d0" target="_self"&gt;https://ui5.sap.com/#/topic/1ef9fefa2a574735957dcf52502ab8d0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;To set the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#993300"&gt;writeToDom&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;flag in XML views, the aggregation has to be written in expanded notation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also looking for a solution to this.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 27 Sep 2024 14:24:52 GMT</pubDate>
    <dc:creator>TrusPatel</dc:creator>
    <dc:date>2024-09-27T14:24:52Z</dc:date>
    <item>
      <title>CustomData attribute (data-) not working as documented on XML</title>
      <link>https://community.sap.com/t5/technology-q-a/customdata-attribute-data-not-working-as-documented-on-xml/qaq-p/13878602</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm finding some trouble in &lt;LI-PRODUCT title="SAPUI5" id="500983881501772639608291559920477"&gt;&lt;/LI-PRODUCT&gt; to get `data-` attributes written to DOM. I need a simple implementation as I will need to manually add in several XML elements this data attribute&lt;/P&gt;&lt;P&gt;I'm aware that I could use `&amp;lt;CustomData /&amp;gt;`, but the perfect implementation for my need is to create a new XML namespace for &lt;A href="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1`" target="_blank"&gt;http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1&lt;/A&gt; and then evoke it on the element, as in:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Button namespace:testid="foobar" /&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The problem is that it's not rendering on DOM and I just can't find any more ways to tackle this on the documentation, and even here.&lt;/P&gt;&lt;P&gt;This is a short example of my implementation, and the problem: &lt;A href="https://jsfiddle.net/kpvnw760/4/" target="_blank"&gt;https://jsfiddle.net/kpvnw760/4/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you notice, once you run the code linked above, and if you do:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;document.querySelector("button").dataset&lt;/LI-CODE&gt;&lt;P&gt;It will only list "&lt;STRONG&gt;sapUI"&lt;/STRONG&gt; and "&lt;STRONG&gt;ui5Accesskey&lt;/STRONG&gt;", never "&lt;STRONG&gt;testId&lt;/STRONG&gt;" nor "&lt;STRONG&gt;foobar&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;The documentation reference I'm using is: &lt;A href="https://ui5.sap.com/#/topic/91f0c3ee6f4d1014b6dd926db0e91070" target="_blank"&gt;https://ui5.sap.com/#/topic/91f0c3ee6f4d1014b6dd926db0e91070&lt;/A&gt; (section: "&lt;STRONG&gt;Use in XML Views&lt;/STRONG&gt;").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you a lot, in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 09:38:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/customdata-attribute-data-not-working-as-documented-on-xml/qaq-p/13878602</guid>
      <dc:creator>DanFilho</dc:creator>
      <dc:date>2024-09-26T09:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: CustomData attribute (data-) not working as documente...</title>
      <link>https://community.sap.com/t5/technology-q-a/customdata-attribute-data-not-working-as-documented-on-xml/qaa-p/13880657#M4885893</link>
      <description>&lt;P&gt;The reason is that Shorthand for customdata does not write those attributes to DOM.&lt;/P&gt;&lt;P&gt;&lt;A href="https://ui5.sap.com/#/topic/1ef9fefa2a574735957dcf52502ab8d0" target="_self"&gt;https://ui5.sap.com/#/topic/1ef9fefa2a574735957dcf52502ab8d0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;To set the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#993300"&gt;writeToDom&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;flag in XML views, the aggregation has to be written in expanded notation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also looking for a solution to this.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Sep 2024 14:24:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/customdata-attribute-data-not-working-as-documented-on-xml/qaa-p/13880657#M4885893</guid>
      <dc:creator>TrusPatel</dc:creator>
      <dc:date>2024-09-27T14:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: CustomData attribute (data-) not working as documente...</title>
      <link>https://community.sap.com/t5/technology-q-a/customdata-attribute-data-not-working-as-documented-on-xml/qaa-p/13881843#M4886020</link>
      <description>I'm happy to file a formal request or even to try to implement this. Do you know where I can suggest/open suggestion issues for UI5 in an effective way?</description>
      <pubDate>Sun, 29 Sep 2024 08:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/customdata-attribute-data-not-working-as-documented-on-xml/qaa-p/13881843#M4886020</guid>
      <dc:creator>DanFilho</dc:creator>
      <dc:date>2024-09-29T08:49:42Z</dc:date>
    </item>
  </channel>
</rss>

