Hallo zusammen,
ich möchte mit folgendem Script das eine oder andere Objekt ausblenden lassen, was aber so als ODER-Funktion nicht funktioniert:
if (Servicereport.Technician.Datum_U.rawValue = F_Start_Day_tx.rawValue); {
this.resolveNode("F_End_Time_tx").presence = "visible";
this.resolveNode("F_End_Day_tx").presence = "invisible";
}
or
if (Servicereport.Technician.Datum_U.rawValue != F_Start_Day_tx.rawValue); {
this.resolveNode("F_End_Time_tx").presence = "invisible"
this.resolveNode("F_End_Day_tx").presence = "visible";
}
Wer kann mir hierzu weiterhelfen?
Objekt ausblenden
Re: Objekt ausblenden
Try this:
Code: Alles auswählen
if (Servicereport.Technician.Datum_U.rawValue == F_Start_Day_tx.rawValue); {
this.resolveNode("F_End_Time_tx").presence = "visible";
this.resolveNode("F_End_Day_tx").presence = "invisible";
} else {
this.resolveNode("F_End_Time_tx").presence = "invisible"
this.resolveNode("F_End_Day_tx").presence = "visible";
}
-
- Beiträge: 90
- Registriert: 02.04.2013, 11:17
Re: Objekt ausblenden
Hello BAlheit,
leider bekomme ich hier beim Syntax prüfen einen Fehler cin Zeile 4 bei " } else{ "gemeldet:
Unfortunately I get an error when checking the syntax in line 4:
if (Servicereport.Technician.Datum_U.rawValue == F_Start_Day_tx.rawValue); {
this.resolveNode("F_End_Time_tx").presence = "visible";
this.resolveNode("F_End_Day_tx").presence = "invisible";
} else {
this.resolveNode("F_End_Time_tx").presence = "invisible"
this.resolveNode("F_End_Day_tx").presence = "visible";
}
Welche Ursache könnte hier vorliegen?
What could cause this error?
leider bekomme ich hier beim Syntax prüfen einen Fehler cin Zeile 4 bei " } else{ "gemeldet:
Unfortunately I get an error when checking the syntax in line 4:
if (Servicereport.Technician.Datum_U.rawValue == F_Start_Day_tx.rawValue); {
this.resolveNode("F_End_Time_tx").presence = "visible";
this.resolveNode("F_End_Day_tx").presence = "invisible";
} else {
this.resolveNode("F_End_Time_tx").presence = "invisible"
this.resolveNode("F_End_Day_tx").presence = "visible";
}
Welche Ursache könnte hier vorliegen?
What could cause this error?
Re: Objekt ausblenden
Das Semikolon nach der geschwungenen Klammer entfernen, sollte den Fehler beheben;
Code: Alles auswählen
if (Servicereport.Technician.Datum_U.rawValue == F_Start_Day_tx.rawValue); {