Hello,

how can i access the Userdata on a selectbox?
i use he following code and get the Label but the 2 Userdata values are 
empty or undefined


                            item = new qx.ui.form.ListItem("Bitte 
auswählen");
                            item.setUserData("name", "Auswählen");
                            item.setUserData("USERID", "0");
                            
this.toolbarbuttons["Zugriffsrechte"]["userauswahl"].add(item);
                            if(j["data"]) {
                                for(var row in j["data"]) {
                                    item = new 
qx.ui.form.ListItem(j["data"][row]["name"]);
                                    item.setUserData("name", 
j["data"][row]["name"]);
                                    item.setUserData("USERID", 
j["data"][row]["USERID"]);
                                    
this.toolbarbuttons["Zugriffsrechte"]["userauswahl"].add(item);
                                    }
                                alert("AA: " + 
this.toolbarbuttons["Zugriffsrechte"]["userauswahl"].getSelection()[0].getUserData["name"]);
                                }   

What is the problem ?

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to