Ist es möglich Spalten zwei unterschiedliche Feldwerte zuzuweisen????
Felder / Spalte
- globe
- Erledigt
-
-
Ja.
-
und wie???
-
z.B. anhand der verwendeten Maske oder eines beliebigen Feldwertes
@If(Form = "1";Feld1;Feld2)
-
wie meinst du das mit der verwendeten Maske??
So ganz steig ich hier gerade nicht durch!!!
-
Aus der Notes-Designer-Hilfe:
ZitatForm fields
If the form used to create a document is not stored in the document, a field named Form is available and contains the name of the form. If the form is stored in the document, fields named $TITLE, $Info, $WindowTitle (if the design specifies a window title), and $Body are available. $TITLE contains the name of the form. The following example, which works in a button or hotspot, displays the name of the form used to create the current document.
@Prompt([OK]; "Form"; @If(@IsAvailable(Form); Form; $TITLE))
Choose File - Document Properties, and select Fields to see what fields are in a document.
You can remove a form stored in a document by deleting $TITLE, $Info, $WindowTitle, and $Body. You must then create a Form field and place in it the name of a form in the database. The following formula, which works as an agent, removes the form Travel Request stored in the current document and replaces it with the database form Travel Arrangements.
SELECT $TITLE ="Travel Request";
FIELD $TITLE := @DeleteField;
FIELD $Info := @DeleteField;
FIELD $WindowTitle := @DeleteField;
FIELD $Body := @DeleteField;
FIELD Form := "Travel Arrangements" -
so wirklich hilft mir das jetzt persönlich nicht weiter.... :(((
-
Wenn der Inhalt des Feldes Form 1 ist dann zeige Feld1 an ansonsten Feld2
-
ich probier das gerade nochma
-
Ich habe in einer Maske die beiden Felder StartDate und Startdate_1
da müsste doch dann die Formel für die Spalte so lauten:
@If(StartDate = "1"; StartDate;StartDate_1)
also hab ich das eben verstanden!!!!
-
Z.B. dann wird wenn im Feld StartDate eine 1 steht das Feld StartDate angezeigt ansonsten das andere
-
das funktioniert aber leider nicht
-
Was funktioniert nicht ?
-
Wenn ich jetzt im Feld StartDate keinen Wert eingebe, aber dafür im Feld StartDate_1, dann soll er mir das in der Spalte anzeigen, das funktioniert aber leider nicht
-
Sind beide Felder im gleichen Dokument ?