on 03-30-2016 3:13 PM
Hi,
We're using Approve Leave Requests (Version 1) in Fiori.
When we press cancel button in approve dialog, busy dialog is opening. My problem is that busy dialog does not closed.
Our component's support package for this application
Back-End/Front-End Server | Back-End/Front-End Component | Technical Name of Software Component | Support Package Level |
Back-end server | Back-end component | GBHCM003 600 | 12 |
Front-end server | Front-end component | UIX01HCM 100 | 7 |
1) Press cancel button
2) After cancel button
Discussion successfully moved from SAPUI5 Developer Center to SAP Fiori
as the more appropriate community for this topic.
Regards, Mike (Moderator)
SAP Technology RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you check the browser console for errors? Your message should be in the Fiori space, I requested it to be moved.
Regards,
Jamie
SAP - Technology RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I opened network tab, then press cancel button. But no change in network tab.
I looked application code in front-end server. When I press button, _handleApprove function is called.
Then _handleApproveRejectExecute is called. In this function busy dialog open but there is no closed method for busy dialog in this function.
I search note, but i did not find anything.
************************************************************************************************
_handleApprove: function() {
"use strict";
var oDataObj = this.oView.getModel().getProperty(this.oView.getBindingContext().getPath()),
bApprove = true,
fnClose = function(oResult) {
this._handleApproveRejectExecute(oResult, bApprove, oDataObj);
},
}
_handleApproveRejectExecute: function(oResult, bApprove, oDataObj) {
"use strict";
this.oBusyDialog.open();
sap.ui.getCore().lock();
if (oResult.isConfirmed) {
var oEntry = {}, sDecision, sURL;
if (oResult.sNote) {
oEntry.Comment = oResult.sNote;
} else {
oEntry.Comment = "";
}
oEntry.RequestId = oDataObj.RequestId;
oEntry.Version = oDataObj.Version;
if (bApprove) {
sDecision = "PREPARE_APPROVE";
this.sTextKey = "dialog.success.approve";
} else {
sDecision = "PREPARE_REJECT";
this.sTextKey = "dialog.success.reject";
}
oEntry.Decision = sDecision;
oEntry.SAP__Origin = oDataObj.SAP__Origin;
sURL = "ApplyLeaveRequestDecision?SAP__Origin='" + oDataObj.SAP__Origin + "'&RequestId='" + oDataObj.RequestId + "'&Version=" + oDataObj.Version + "&Comment='" + oResult.sNote + "'&Decision='" + sDecision + "'";
this.oDataModel.setRefreshAfterChange(false);
this.oDataModel.create(sURL, oEntry, null, jQuery.proxy(this._handleApproveRejectSuccess, this), jQuery.proxy(this._handleApproveRejectFailure, this));
}
},
*********************************************************************************************************
Hi Hakan,
Please check the version 2. Ehp5 is listed.
https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/#/detail/Apps('F1315')
Regards,
Masa / SAP Technology RIG
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.