Skip to Content
-1
Jul 18, 2020 at 05:49 PM

i got Cannot read property 'navTo' of undefined error . whats wrong with my code !!!

94 Views Last edit Jul 18, 2020 at 05:50 PM 2 rev

hello everyone,

I tried the following code but it's not working.

fragment

AddProductHierarchySet.fragment.xml

<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns:tnt="sap.tnt" xmlns:l="sap.ui.layout">

<Dialog title="PRODUCT HIERARCHY SET INFORMATION" contentHeight="70%" contentWidth="70%">

<content>

<mvc:XMLView viewName="Rmanagement.FRebateManagement.view.CollectionGroupDetails"/>

</content>

<endButton>

<Button text="Close" press="onCloseFragment"/>

</endButton>

</Dialog>

</core:FragmentDefinition>

manifest.json:

view

collectionGroupDetails.view.xml:

collectionGroupDetails.controller.js

Attachments

view-code.jpg (24.8 kB)