on 09-02-2015 7:51 AM
http://jsbin.com/cecotuzace/1/edit?html,js,output
Hi Experts,
I am not able to set the selected key for the combo box. In the JSbin, it is working, but when I run it as an application, no key is set for the combo box.
Please see above link.
Could you give me some hints about solving this issue.
Regards,
Shashi
Press F12 in your browser and go to console tab.(Chrome is preferred browser)
Here you can see any error if you have made in your program.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to comment the code in your app and just copy-paste your code from the jsbin to your app's code.
If it still doesn't work, you should look for the problem elsewhere.
If it works - you have some error in your code that you missed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If the boot strap is the same and the code is EXACTLY the same (if you din't copy-paste, but only looked through the code, you could miss some tiny detail), then the problem is not in this part of the code, but somewhere else.
Also, if you use Eclipse, you may want to check for updates (I'm not sure this will help, but give it a try).
And also, you may want to clear browser cache. If you use Chrome, go to Network tab of the developer tools, check "Disable cache" check box and reload the page.
Can you check if your model is binded?
and did you have a named model, e.g. setModel(oModel, "example")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dennis,
Yes, model is binded because the drop down values are shown, but somehow the selected key is not getting bound when I run the same code as an application using my HANA studio.
In the JS Bin (See link in above post), it is working fine.
The same code as an app is not working.
Regards,
Shashi
Adding data-sap-ui-xx-bindingSyntax="complex" in you boot strap.
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 | |
9 | |
7 | |
6 | |
6 | |
5 | |
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.