<Browser Synchronized> Attribut
Verfasst: 21. Oktober 2021, 15:01
Hallo zusammen,
hat hier schonmal jemand mit Variablen gearbeitet, die sowohl vom Browser Code als auch vom Server Code verwendet werden?
Ich bräuchte das ziemlich dringend in einem Projekt, aber bekomme es irgendwie nicht hin. Wahrscheinlich liegt's einfach nur an meiner Blödheit.
Ich hab die Variable einfach mal im Projekt Code (=Server Code) deklariert:
gbMyBoolean is boolean = false
Wenn ich einen Doppelklick auf eine Tabellen Zeile (=Browser Code) mache, soll der Bool auf true gesetzt werden:
gbMyBoolean = true
Hierbei "beschwert" sich dann WebDev:
"The modifications of the global variable 'gbMyBoolean' will not be applied to the server.
The variable attribute <browser synchronized> allows applying the value to the server."
Ich verstehe soweit, dass ich gbMyBoolean das Attribut <browser synchronized> verpassen muss, allerdings weiß ich nicht wie. Alles was ich bisher ausprobiert ist leider fehlgeschlagen:
gbMyBoolean is <browser synchronized> boolean = false
gbMyBoolean is browser synchronized boolean = false
gbMyBoolean is boolean <browser synchronized> = false
gbMyBoolean is boolean browser synchronized = false
Und leider finde ich keinerlei Informationen zu dem Thema...
Vielen dank im Voraus für jegliche Ideen!
hat hier schonmal jemand mit Variablen gearbeitet, die sowohl vom Browser Code als auch vom Server Code verwendet werden?
Ich bräuchte das ziemlich dringend in einem Projekt, aber bekomme es irgendwie nicht hin. Wahrscheinlich liegt's einfach nur an meiner Blödheit.
Ich hab die Variable einfach mal im Projekt Code (=Server Code) deklariert:
gbMyBoolean is boolean = false
Wenn ich einen Doppelklick auf eine Tabellen Zeile (=Browser Code) mache, soll der Bool auf true gesetzt werden:
gbMyBoolean = true
Hierbei "beschwert" sich dann WebDev:
"The modifications of the global variable 'gbMyBoolean' will not be applied to the server.
The variable attribute <browser synchronized> allows applying the value to the server."
Ich verstehe soweit, dass ich gbMyBoolean das Attribut <browser synchronized> verpassen muss, allerdings weiß ich nicht wie. Alles was ich bisher ausprobiert ist leider fehlgeschlagen:
gbMyBoolean is <browser synchronized> boolean = false
gbMyBoolean is browser synchronized boolean = false
gbMyBoolean is boolean <browser synchronized> = false
gbMyBoolean is boolean browser synchronized = false
Und leider finde ich keinerlei Informationen zu dem Thema...
Vielen dank im Voraus für jegliche Ideen!