Welcome! Log In Create A New Profile

Advanced

[WB24] [Answered] What is: Browser Synchronized Variable Attribute

Posted by dmontaine 
[WB24] [Answered] What is: Browser Synchronized Variable Attribute
March 30, 2019 02:12PM
The information message I am getting is

"The modifications of global 'gs_foo' will not be applied to the server. The <browser synchronized> variable attribute is used to apply the value to the server".

I can find no information in help about variable attributes or more specifically browser synchronized.



Edited 1 time(s). Last edit at 04/01/2019 01:45PM by dmontaine.
Re: [WB24] What is: Browser Synchronized Variable Attribute
March 30, 2019 07:44PM
Hi,

If I remember correctly from reading the brochure, in older version you could use global server variables in browser code, but not modify them.
In v24 you can declare server variables as browser synchronized, then you can modify them in browser code.

Regards,
Piet
Re: [WB24] What is: Browser Synchronized Variable Attribute
March 31, 2019 07:22PM
Does anyone know what the syntax is for declaring a browser synchronized variable?

Answer: When declaring a global varilable such as "foo is string", type a comma at the end and you will get a list of variable attributes which include:

browser synchronized
business logic
controller
critical section
mapping
page name
report name
Serialize
server only
UI
unique key
useful
window name
xmlAttribute
xsdName
zombie

These are apparently called "Extension Attributes". If you search in the help index for "Extension Attribute" there is some documentation. However the "browser synchronized" attribute is not documented yet.

TO USE THIS ATTRIBUTE, go to Project, Description, Compilation Tab, and change "Browser WLanguage" to "Version 2".

Version 2 is defined in the help as follows:

WLanguage browser: Allows you to choose the browser framework used for the project. From version 22, WEBDEV proposes a new WLanguage framework for the browser code. This new version proposes a behavior close to server code and it completes the features of browser code. Important: to use the new WLanguage framework, the generation standard of pages must be defined in "HTML 5".



Edited 6 time(s). Last edit at 03/31/2019 08:06PM by dmontaine.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: