[OGo-Users] Print the location address instead of mail address in formletters

Torsten Becker users@opengroupware.org
Thu, 24 Jan 2008 22:04:50 +0100


>
>   LSPersonFormLetter =3D {
>    person_formletter_test =3D (
>       { key =3D "mailing.name1";      suffix =3D "\n";             },
>       { key =3D "mailing.name2";      suffix =3D "\n";             },
>       { key =3D "mailing.name3";      suffix =3D "\n";             },
>       { key =3D "degree";             suffix =3D " ";              },
>       { key =3D "firstname";          suffix =3D " ";              },
>       { key =3D "name";               suffix =3D "\n\n";           },
>       { key =3D "mailing.street";     suffix =3D "\n";             },
>       { key =3D "mailing.zip";        suffix =3D " ";              },
>       { key =3D "mailing.city";       suffix =3D "\n\n\n\n\n\n";   },
>       { key =3D "salutation";         suffix =3D " ";              },
>       { key =3D "name";               suffix =3D ",\n\n";          },
>       // next test...
>       { key =3D "location.name1";     suffix =3D "\n";             },
>       { key =3D "location.name2";     suffix =3D "\n";             },
>       { key =3D "location.name3";     suffix =3D "\n";             },
>       { key =3D "degree";             suffix =3D " ";              },
>       { key =3D "firstname";          suffix =3D " ";              },
>       { key =3D "name";               suffix =3D "\n\n";           },
>       { key =3D "location.street";    suffix =3D "\n";             },
>       { key =3D "location.zip";       suffix =3D " ";              },
>       { key =3D "location.city";      suffix =3D "\n\n\n\n\n\n";   },
>       { key =3D "salutation";         suffix =3D " ";              },
>       { key =3D "name";               suffix =3D ",\n\n";          },
>
>
>   LSEnterpriseFormLetter =3D {
>     enterprise_formletter_test =3D (
>       { key =3D "toAddress.name1";      suffix =3D "\n";             },
>       { key =3D "toAddress.name2";      suffix =3D "\n";             },
>       { key =3D "toAddress.name3";      suffix =3D "\n";             },
>       { key =3D "toAddress.street";     suffix =3D "\n";             },
>       { key =3D "toAddress.zip";        suffix =3D " ";              },
>       { key =3D "toAddress.city";       suffix =3D "\n\n\n\n\n\n\n"; },
>       { key =3D "toPerson.salutation";  suffix =3D " ";              },
>       { key =3D "toPerson.name";        suffix =3D ",\n\n";          }
>     );
>   };
>
>
>
>  =20
I tested several combinations of the above, but recieved no addresses=20
until I use the default parameter toAddress.
For a fast result I now get the contacts combined with=20
location-addresses directly from the database.
Sorry, but I do not have the time to search for a solution within the=20
code of ogo...

Torsten

--=20
---

net-concept T. Becker
Goethestrasse 7
55288 Udenheim

Tel:    +49 6732 9339 761
Fax:    +49 6732 9339 767
Mobil:  +49  178 4589 296

eMail:	t.becker@nc-world.de
Web:	http://www-nc-world.de

Steuernummer:	03/009/4264/8



Diese E-Mail enth=E4lt vertrauliche und/oder rechtlich gesch=FCtzte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mai=
l
irrt=FCmlich erhalten haben, informieren Sie bitte sofort den Absender un=
d
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.
=20
This e-mail may contain confidential and/or privileged information. If yo=
u
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and delete this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.