[OGo-Users] extended attributes

Sebastian Reitenbach users@opengroupware.org
Sun, 03 Dec 2006 07:17:16 -0000


Hi Adam,

users@opengroupware.org wrote: 
> > how do I define extended attributes, that are radio buttons, url fields or 
> > list boxes. for example SkyPublicExtendedPersonAttributes defines extended 
> > person attributes, type 2 is a checkbox, type 1 a text field, type 3 an 
email 
> > address. I tried to set types to 0, 4,5,6 as well, but they all seem to be 
> > text boxes too. I think I have to encode the key/value pairs for the radio 
> > buttons and list entries in a different way, than for the other fields.
> > Anyone can give me an example please?
> 
> 
> http://docs.opengroupware.org/Members/whitemice/wmogag/ Page 27
You are great, that was exactly what I was looking for, next time I'll take a 
look there before asking here. 
Well, I just only find it a bit unusual to have the multi select field at type 
9, and types 4-8 doesn't seem to be used.

something else I observed:
- I have no labels defined yet
- encoded the values: values = {key1=value1; key2=value2;};
- when I then open a contact to set a value, I choose betwen the value1, 
  value2,... but when I then only want to take a look at the person 
  attributes, the webui presents me the key1, key2...
- so to make it consistent, I have to make it: values = {key1=key1; 
  key2=key2};
Is that intended to work that way?

kind regards
Sebastian