Hi,
I'm creating Fiori-style application and when I want to use BusinessCard control I got this strange error:
Uncaught Error: Cannot add direct child without default aggregation defined for control sap.suite.ui.commons.BusinessCard
My code is:
<mvc:View controllerName="view.About" xmlns="sap.m" xmlns:suite="sap.suite.ui.commons" xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns:control="control" xmlns:h="http://www.w3.org/1999/xhtml"> <Page id="page" title="{Name}" showNavButton="false" navButtonPress="handleNavButtonPress" > <headerContent> <Button icon="sap-icon://cart" visible="{device>/isPhone}" tooltip="{i18n>TO_CART_BUTTON_TOOLTIP}" press="handleCartButtonPress" /> </headerContent> <footer> <Bar> <contentRight> <Button icon="sap-icon://add" text="{i18n>PRODUCT_ADD_BUTTON_TEXT}" tooltip="{i18n>PRODUCT_ADD_BUTTON_TOOLTIP}" press="handleAddButtonPress" /> </contentRight> </Bar> </footer> <content> <suite:BusinessCard> <firstTitle> <Label text="Test" tooltp="Test"/> </firstTitle> <content> </content> </suite:BusinessCard> </content> </Page></mvc:View>
Many thanks Jiri