Skip to Content
author's profile photo Former Member
Former Member

Custom Control with multiple aggregation doesn't render anything

Hi all,

I am working on creating a custom control. The control accepts an aggregation called "documents" with cardinality 0..n.

var TagTab = Control.extend("sap.ui.demo.DocTab", { metadata: { library: "sap.m", properties: { expandable : {type : "boolean", group : "Misc", defaultValue : true}, expanded : {type : "boolean", group : "Misc", defaultValue : true} }, defaultAggregation: "documents", aggregations: { documents: {type: "sap.m.IconTabFilter", multiple: true, singularName: "item"} } } });

Now I am using this control in XML view like this:

<DocTab items="{/docs}">

<m:IconTabFilter text="{docName}" ></m:IconTabFilter>


But nothing gets rendered on the screen. I tried checking the binding in render function of the control using : console.log(oControl.getDocuments()) but this returns null.

What else do we need to implement in order to get the multiple aggregation working ? Currently I don't have anything apart from control metadata and render fucntion.



Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Posted on Mar 09, 2017 at 07:13 PM

    have you tested the UI control with hardcoded data?, if not then test that once...

    Add comment
    10|10000 characters needed characters exceeded