Home Forum Allgemeines Allgemeines zu Nuclos Modale Dialoge möglich? Modale Dialoge möglich?

#7441
Ramin Goettlich
Teilnehmer

Ersteres (Nuclos API, Server-Regel):
z.B. mit

throw new BusinessException("Dies ist eine Fehlermeldung mit OK-Knopf");

Zweiteres z.B. mit

if (InputContext.getInstance().isSupported()) {
Object value = InputContext.getInstance().get("org.nuclet.dialogantwort");
if (value == null) {
InputSpecification spec;
spec = new InputSpecification(InputSpecification.CONFIRM_YES_NO, "org.nuclet.dialogantwort", "Sind Sie sicher?");
throw new InputRequiredException(spec);
} else {
if (InputSpecification.YES != ((Integer)value).intValue()) {
throw new BusinessException("Dann eben nicht.");
}
}
}