6. Oktober 2010 17:46
6. Oktober 2010 19:39
fuige hat geschrieben:Hallo Forum!
Ich habe die Artikel Tabelle undzugehörige PAGE um zwei Felder erweitert.
Keilnute (Boolean)
und
Keilnutentyp (Textfeld)
nun hänge ich daran, das ich es gerne so einrichten würde, das nur wenn Keilnute = TRUE ist, etwas in das Feld Keilnutentyp eingegeben werden kann.
Kann mir von Euch einer sagen wie ich das realisiere?
Vielen Dank!
Gruß
Fuige
Trigger: Keilnutentyp - OnValidate():
IF Keilnutentyp <> xRec.Keilnutentyp THEN
  IF Keilnute = FALSE THEN
    ERROR(TXT50000);
Keilnute - OnValidate():
IF (Keilnute <> xRec.Keilnute) AND (Keilnute = TRUE) THEN
  CurrForm.Keilnutentyp.EDITABLE:= TRUE
ELSE CurrForm.Keilnutentyp.EDITABLE := FALSE;
Form - OnAfterGetRecord():
IF Keilnute = TRUE THEN
  CurrForm.Keilnutentyp.EDITABLE := TRUE
ELSE
  CurrForm.Keilnutentyp.EDITABLE := FALSE;
7. Oktober 2010 06:46
