I have a Delete Dialog defined as fragment. Once the Delete Dialog opened and OK is called, it did some action on server and returnValue is received. I set the oError to be visible, but is still hidden?! Can the fragment's component be updated once it is opened?
-- Delete Dialog.js
DeleteDialog.prototype.onOK = function() {
var oError = sap.ui.getCore().byId("IdError");
var oLabel = sap.ui.getCore().byId("IdLabel");
// _parentDialog is the view that apply onDelete Function. returnValue is possibly error from server.
var returnValue = this._parentDialog.getController().onRemove();
if (returnValue == null)
{
this._oDialog.close();
}
else
{
oError.setVisible(true); <-- It is accessed, but no update.
oError.setText(returnValue);
oLabel.setVisible(true);
oLabel.setText(returnValue);
}
};
return DeleteDialog;
}, /* bExport= */true);
DeleteDialog.fragment.xml attached.