- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2015
12:43 AM
getFormData prüfen ob Variable existiert
Hallo Community,
wie prüfe ich, ob eine Variable existiert?
#nav.ref.page.getFormData().get(#global.language, "pt_system")
Das wirft mir ein Fehler zurück, wenn die Variable nicht existiert.
Würde den Fehler gerne unterdrücken.
Viele Grüße
Timo
Labels
- Labels:
-
Developers
1 Solution
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2015
02:09 AM
Hallo Timo,
hier muss man ins GOM "abbiegen", um die NoSuchFormFieldException zu umgehen:
#nav.ref.page.getFormData().getForm().findEditor("pt_system")!=null
Viele Grüße
Michael
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2015
02:09 AM
Hallo Timo,
hier muss man ins GOM "abbiegen", um die NoSuchFormFieldException zu umgehen:
#nav.ref.page.getFormData().getForm().findEditor("pt_system")!=null
Viele Grüße
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2015
02:38 AM
Hallo Michael,
super!! Danke für die schnelle Antwort.
Viele Grüße
Timo

