Fórumok

expando, setattribute, group of values

Jan Agermose, módosítva 10 év-val korábban

expando, setattribute, group of values

Junior Member Bejegyzések: 64 Csatlakozás dátuma: 2010.04.09. Legújabb bejegyzések
I created a custom attribute for "user" (more actually) and one is a "Group of Text Values " so its a dropdown and Im trying to set its value from code using "setAttribute" just like the others. This does not work giving me an exception

java.lang.String cannot be cast to [Ljava.lang.String;

(casting string to array of string I think)

how should I set the value?
Jan Agermose, módosítva 10 év-val korábban

RE: expando, setattribute, group of values

Junior Member Bejegyzések: 64 Csatlakozás dátuma: 2010.04.09. Legújabb bejegyzések
awnser:

user.getExpandoBridge().setAttribute("key", new String[] {"value"});