on 04-05-2013 11:54 AM
Hi All,
When i am using message box in ui 5 , i am facing issue if i call a function from call back function and display return value of that function it displays null
Please help me to fix this issue
Hi Arvind
Without seeing the code its hard to diagnose.
If you are using MessageBox in an MVC application it may be a scope "this" issue.
One quick fix would be to ensure the correct context is used
sap.ui.commons.MessageBox.alert("Hello World!", $.proxy(fnCallback,this));
see http://api.jquery.com/jQuery.proxy/
Another would be
this.msg = 'Hello World";
var that = this;
..
function fnCallback(){
alert(that.msg);
}
Again without seeing code, i am guessing
JSP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's pretty hard to answer your question without more information. Can you share a small code example that demonstrates the problem?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.