blog.atwork.at

news and know-how about microsoft, technology, cloud and more.

Project: Formeln mit Datumsfeldern in mehrsprachiger Umgebung / Formulas with Date Fields in Multilanguage Environment

  1. Deutsch
  2. English

Deutsch

Formeln mit einem Datumsfeld lassen sich in Project leicht erstellen. Wenn dabei ein Datumsfeld geprüft werden soll, das potentiell keinen Wert enthält, lässt sich das in der deutschen Version mit einer Prüfung auf "NV" (Nicht verfügbar) abprüfen. Das kann zum Beispiel bei einem Vergleich mit einem Basisplandatum wie Geplantes Ende der Fall sein. Folgende Formel zeigt im Feld Text1 "Kein Basisplan" an, wenn für den Vorgang noch kein Basisplan festgelegt wurde. Dabei wird "NV" mit "ProjDateValue("NV")=[Geplantes Ende]" in ein Project-Datumfeld konvertiert, um mit dem Wert in Geplantes Ende vergleichen zu können.

Formel mit ";" als Listentrennzeichen: IIf(ProjDateValue("NV")=[Geplantes Ende];"Kein Basisplan";[Geplantes Ende])
Formel mit "," als Listentrennzeichen: IIf(ProjDateValue("NV")=[Geplantes Ende],"Kein Basisplan",[Geplantes Ende])


image


Damit ist das Problem gelöst, bis das Projekt wird mit einer anderen Sprachversion von Project geöffnet wird. Dann wird ein Fehler dargestellt, da eine andere Sprachversion einen anderen Text für nicht gesetzte Datumsfelder anzeigt. In der englischen Sprachversion steht hier ein "NA" für "Not available".


image


Wenn ein Projekt möglicherweise in verschiedenen Sprachversionen bearbeitet werden soll, ist es daher sinnvoll potentiell leere Datumsfelder wie folgt zu prüfen: ProjDateValue([Geplantes Ende])=4294967295. 4294967295 ist dabei der interne Wert für "leere" Datumsfelder. Obige Formel stellt sich so dar:
Formel mit ";" als Listentrennzeichen: IIf(ProjDateValue([Geplantes Ende])=4294967295;"Kein Basisplan";[Geplantes Ende])
Formel mit "," als Listentrennzeichen: IIf(ProjDateValue([Geplantes Ende])=4294967295,"Kein Basisplan",[Geplantes Ende])
Mit dieser Variante gibt es keine Probleme beim Öffnen eines Projekts in verschiedenen Sprachversionen.

image

Anmerkung: Unterschiedliche Listentrennzeichen in der Formel werden automatisch auf Basis der Ländereinstellung des Rechners umgesetzt. Ein ";" in vielen Ländern in Europa wird automatisch in ein "," in Ländern mit diesem Zeichen als Listentrennzeichen übersetzt. Ebesno werden Feldnamen automatisch angepasst.

English

Formulas with a date field can be easily created in Project. If you want to check a date field that has potentially no value, you can check this in the English version with a check for "NA" (Not available). This can be the case, for example, when comparing a Baseline date such as Baseline Finish. The following formula displays "No baseline" in the field Text1 if a baseline has not yet been set for the task. "NA" is converted to a project date field using "ProjDateValue ("NA") = [Baseline Finish]" to compare with the value in "Baseline Finish".

Formula with ";" as list separator: IIf (ProjDateValue ("NA") = [Baseline Finish]; "No Baseline"; [Baseline Finish])
Formula with "," as list separator: IIf (ProjDateValue ("NA") = [Baseline Finish], "No Baseline". [Baseline Finish])

image

This resolves the problem until the project is opened with a different language version of Project. In this case an error is displayed because another language versions display a different text for non-set date fields. In German version, for example, "NV" is displayed for "Nicht verfügbar".

image

Therefore, if you want to edit a project in different language versions, it may be useful to check potentially blank date fields as follows: ProjDateValue ([Baseline Finish]) = 4294967295. 4294967295 is the internal value for "empty" date fields. The above formula is as follows:

Formula with ";" as list separator: IIf (ProjDateValue ([Baseline Finish]) = 4294967295; "No Baseline"; [Baseline Finish])
Formula with "," as list separator: IIf (ProjDateValue ([Baseline Finish]) = 4294967295, "No Baseline", [Baseline Finish])

image

With this variant, there are no problems opening a project in different language versions.

Note: Different list separators in the formula are automatically converted based on the Regional Settings on the computer. A ";" in many countries in Europe is automatically translated into a "," in countries with this character as a list separator.

Pingbacks and trackbacks (1)+

Loading