on 07-15-2016 3:33 PM
Hello, experts!
I use 2 views, and made routing there between. It work.
After that I would like use dialog on View 2. I add button and module 'sap/m/Dialog', on View2.
I have a problem, because view2 dont work after that.
view2: code:
sap.ui.define([
'jquery.sap.global',
'sap/m/MessageBox',
'sap/m/MessageToast',
'sap/m/Dialog',
// 'sap/ui/model/Filter',
'sap/ui/core/mvc/Controller'
code:
https://github.com/EvgenySemenov/sap-ui5-routing_params_dialog
Hi,
In the view2.controller.js in the first array parameter to the define function you are loading dependencies to MessageBox, MessageToast, Dialog and the Controller. But in the second parameter which is the function, you are not including these in the exact same order and also the Dialog alias is missing. Try changing the arguments in the function as below:
sap.ui.define([
'sap/ui/core/mvc/Controller',
'sap/m/MessageBox',
'sap/m/MessageToast',
'sap/m/Dialog'
], function(Controller, MessageBox, MessageToast, Dialog) {
......
Regards,
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.