im using vObject to create a vCard. Everything works well except I can't add multiple phone numbers.
Right now i'm doing this:
v.add('tel')
v.tel.type_param = 'WORK'
v.tel.value = employee.office_phone
v.add('tel')
v.tel.type_param = 'FAX'
v.tel.value = employee.fax
As it's working as a key value, the work phone is overwritten by the fax number.
Any idea on who to do it right?
Thanks!
v.tel
needs to accessed like a list or an array, likev.tel[0].type_param = 'WORK'
. Or maybev.add()
returns an object, which is what you should assign the type_param and value to, liketel = v.add('tel'); tel.type_param = 'WORK'
– Londonderry