Skip to Content
0

How do I add custom sap.ui.core.html in a table cell of a xml view?

Dec 11, 2017 at 01:17 PM

38

avatar image
Former Member

Hi,

I want to add a custom div like this inside a cell of a table in sapui5 table (i am using xml views)

However when i try to add html under <cells> it fails , i am guessing the aggregation of cells does not allow. The namespace for html in my view is also present

xmlns:html="http://www.w3.org/1999/xhtml"
<items>   
  <ColumnListItem counter="0" id="item1">     
     <cells>        
       <html:div>a</html:div>     
     </cells> 
 </ColumnListItem> 
</items>
This throws an error : Neither view name/content nor an XML node is given

Could you please let me know how to achieve this.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Sergio Guerrero Dec 11, 2017 at 01:35 PM
0
Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Sergio,

It works when i render it directly inside <content> tag with the correct namespace but it fails inside a cells tag of a table with the error. So wanted to know how specifically use it inside a cells tag

0