on 11-04-2015 6:00 AM
I am using a js view, in which when I am clicking on an inputfield for thr first time a dialog box pops up, but when second time I do the same it gives an error saying adding element with duplicate id, I have tried using this.createId(), but its not working. Please share some solutions
Check out this link.
Uncaught Error: Error: adding element with dupl... | SCN
otherwise destroy your dialog after processing by writing oDialog.destroy();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tanya,
var oDialog = new sap.ui.commons.Dialog({closed:function(){oDialog.destroy();}})
Regards,
Sai Vellanki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Will this help: JS Bin - Collaborative JavaScript Debugging
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
inside your method.
if(!this.dialog){
this.dialog = new sap.m.Dialog(this.createId())
}
this.dialog.open();
could you please use this approach.
Thanks,
Karthik A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.