on 04-05-2016 4:45 AM
Hi,
I tried to call busy indicator on the button press and after the oData operation it should get closed.
But the problem is the "Busy indicator" is not getting loaded immediately after pressing the button.
Below is my code for loading busy indicator,
onOpenDialog: function (oEvent)
{
// instantiate dialog
if (!this._dialog)
{
this._dialog = sap.ui.xmlfragment("Travel.Create.util.BusyDialog", this);
this.getView().addDependent(this._dialog);
}
// open dialog jQuery.sap.syncStyleClass("sapUiSizeCompact", this.getView(), this._dialog); this._dialog.open(); // simulate end of operation jQuery.sap.delayedCall(2000, this, function () { this._dialog.close(); }); },
handlePressSubmit:function(Draft_flag)
{
this.onOpenDialog();
/* logic for oData operation here*/
}
did i miss anything?
-Mahi
At which position in your coding you call the "open" function for your dialog?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry i took it in wrong way...
here the formatted code part of calling open function
onOpenDialog:function(oEvent) | |||
{ | |||
if (!this._dialog) | |||
{ | |||
this._dialog = sap.ui.xmlfragment("Travel.Create.util.BusyDialog", this); | |||
this.getView().addDependent(this._dialog); | |||
} |
jQuery.sap.syncStyleClass("sapUiSizeCompact", this.getView(), this._dialog); | ||
this._dialog.open(); |
jQuery.sap.delayedCall(2000, this, function () { | |||
this._dialog.close(); | |||
}); | |||
}, |
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.