Conditional Variablen in Salutation / Signature

Hilfe zu Znuny Problemen aller Art
Locked
siedi
Znuny newbie
Posts: 1
Joined: 11 Aug 2010, 18:13
Znuny Version: 2.4.7

Conditional Variablen in Salutation / Signature

Post by siedi »

Hi,

wir haben unser DB als Custom Backend angebunden. Dort können wir das Geschelcht auslesen (als UserSalutation-Variable). Diese ist nun entweder 0 oder 1.

In Abhängigkeit dieser Variable würde ich nun gerne in der Salutation entweder "Herr" oder "Frau" schreiben.

Wie geht das? Gibt es eine Möglichkeit sowas wie "if var=1 then Herr" in der Salutation einzubauen?

Danke
Siedi
OTRS 2.4.7 unter gentoo-linux
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Conditional Variablen in Salutation / Signature

Post by jojo »

Nein
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
sysiq
Znuny newbie
Posts: 6
Joined: 23 Dec 2010, 01:53
Znuny Version: 3.0.2

Re: Conditional Variablen in Salutation / Signature

Post by sysiq »

Is it not possible to use the # default selections part for this. Or is that for something else?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Conditional Variablen in Salutation / Signature

Post by jojo »

Der dient nur zum Ausfüllen, also für ein Drop Down in der Kunden Pflege Maske
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
sysiq
Znuny newbie
Posts: 6
Joined: 23 Dec 2010, 01:53
Znuny Version: 3.0.2

Re: Conditional Variablen in Salutation / Signature

Post by sysiq »

This works:

[ 'UserSalutation', 'Salutation', 'IF(geslacht = 1, "heer", "mevrouw") AS aanhef', 1, 0, 'var', '', 0 ],
Locked