title: How can I use typeInstance instead of type in p13n dialog?
body: <p>I already asked a question <a href="https://stackoverflow.com/questions/63248828/sapui5-does-not-use-the-correct-type-for-custom-columns-in-smart-table">here</a> regarding ignoring of type of a custom column by smart table in new version of SAPUI5.</p>
  <p>In the work around I discovered in the <a href="https://ui5.sap.com/#/api/sap.m.P13nItem%23controlProperties" rel="nofollow noreferrer">API</a> that I can use a new property called <code>typeInstance</code> instead of <code>type</code>:</p>
  <p><a href="https://i.stack.imgur.com/xNWHJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xNWHJ.png" alt="enter image description here" /></a></p>
  <p>Now the question is how can I pass a <code>typeInstance</code> object instead of <code>type</code> in smart table xml definition:</p>
  <pre><code>&lt;Column visible=&quot;true&quot;&gt;
      &lt;customData&gt;
          &lt;core:CustomData key=&quot;p13nData&quot; 
              value='{
                  &quot;columnKey&quot;: &quot;Datum&quot;, 
                  &quot;leadingProperty&quot;: &quot;Datum&quot;, 
                  &quot;sortProperty&quot;: &quot;Datum&quot;, 
                  &quot;filterProperty&quot;: &quot;Datum&quot;, 
                  &quot;columnIndex&quot;:&quot;3&quot;, 
                  &quot;type&quot;: &quot;date&quot;, 
                  &quot;typeInstance&quot;: {???} 
              }'/&gt;
          &lt;/customData&gt;
      &lt;Text text=&quot;{/#Meldungen/Datum/@sap:label}&quot;/&gt;
  &lt;/Column&gt;
  </code></pre>
  <p>What do I have to write instead of <code>???</code>?</p>
  <p>I discovered the <code>typeInstance</code> must represent the <a href="https://openui5.hana.ondemand.com/api/sap.ui.model.type.Date" rel="nofollow noreferrer"><code>sap.ui.model.type.Date</code></a> based on the code that I extracted from <code>P13nConditionPanel.js</code> in SAPUI5 library:</p>
  <p><a href="https://i.stack.imgur.com/zv99M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zv99M.png" alt="enter image description here" /></a></p>
  <p>Also when I define it like this:</p>
  <pre><code>&lt;Column visible=&quot;true&quot;&gt;
      &lt;customData&gt;
          &lt;core:CustomData key=&quot;p13nData&quot;
              value='{
                  &quot;columnKey&quot;: &quot;Datum&quot;, 
                  &quot;leadingProperty&quot;: &quot;Datum&quot;, 
                  &quot;sortProperty&quot;: &quot;Datum&quot;, 
                  &quot;filterProperty&quot;: &quot;Datum&quot;, 
                  &quot;columnIndex&quot;:&quot;3&quot;, 
                  &quot;type&quot;: &quot;numeric&quot;, 
                  &quot;typeInstance&quot;: {
                      &quot;type&quot;:&quot;sap.ui.model.type.Date&quot;
                  } 
             }'/&gt;
      &lt;/customData&gt;
      &lt;Text text=&quot;{/#Meldungen/Datum/@sap:label}&quot;/&gt;
  &lt;/Column&gt;
  </code></pre>
  <p>Then it will take the value from <code>typeInstance</code> and ignore the <code>type</code> property:</p>
  <p><a href="https://i.stack.imgur.com/AXA6e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AXA6e.png" alt="enter image description here" /></a></p>