<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>28 Jan 2015 12:55:00 Z</lastBuildDate><pubDate>28 Jan 2015 10:17:00 Z</pubDate><description>Hi everybody,&#13;
&#13;
I need to detect whether there have been changes in some field of the form so that when leaving the page I must give a warning and allow it to update the DB if the user wants.&#13;
The actions that we perform are:&#13;
&#13;
1. Define a boolean variable as global in the page.&#13;
2. I define a field on the form and leave it as hidden.&#13;
3. Sortie avec modification (onchange) (navigateur)&#13;
a. I set the variable Boolean to TRUE&#13;
b. I set the hidden field to 1&#13;
4. Click (onclick) Output Pin (navigateur)&#13;
a. The boolean variable and kept hidden field value of 1 which I have put in point 3.&#13;
5. Click (serveur) AJAX not activated&#13;
a. Neither fields (boolean and hidden) maintain the value 1, so I can not update the DB when any of these fields is set to 1 because I detect any change with an IF statement and the fields always have value zero.&#13;
&#13;
The problem is that I can not share variables between the browser and server.&#13;
&#13;
Does anyone know how to do a process like this?&#13;
&#13;
Thanks in advance.&#13;
Jordi&#13;
&#13;
&#13;
How I can do this ?.</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server/read.awp</link><title>WB19 - Variables browser and server</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server-50147/read.awp</comments><pubDate>28 Jan 2015 12:55:00 Z</pubDate><description>Hi Jordi,&#13;
&#13;
That's correct.&#13;
You can enable AJAX in the top bar of the code window of the local (server) procedure.&#13;
&#13;
To reply…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server-50147/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server-50147/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server/read.awp">WB19 - Variables browser and server</source><title>Re: WB19 - Variables browser and server</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server-50143/read.awp</comments><pubDate>28 Jan 2015 12:07:00 Z</pubDate><description>Hi Fabrice,&#13;
&#13;
the question is that the exit button I set in my form, contains 2 blocks of code qhen the user clicks on :&#13;
&#13;
1rs…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server-50143/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server-50143/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server/read.awp">WB19 - Variables browser and server</source><title>Re: WB19 - Variables browser and server</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server-50141/read.awp</comments><pubDate>28 Jan 2015 11:56:00 Z</pubDate><description>Hi Jordi&#13;
&#13;
there is a good chance that your problem is in point "5. Click (serveur) AJAX not activated"... The fact that the hi…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server-50141/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server-50141/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server/read.awp">WB19 - Variables browser and server</source><title>Re: WB19 - Variables browser and server</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server-50140/read.awp</comments><pubDate>28 Jan 2015 11:37:00 Z</pubDate><description>Hi Piet, thanks for your answer.&#13;
I am absolutely newbie in Ajax, so let me one more question, please.&#13;
You say that set to TRUE…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server-50140/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server-50140/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server/read.awp">WB19 - Variables browser and server</source><title>Re: WB19 - Variables browser and server</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server-50138/read.awp</comments><pubDate>28 Jan 2015 11:19:00 Z</pubDate><description>Hi Jordi,&#13;
&#13;
You can communicate with the server with Ajax.&#13;
So if you want to set a global variable from browser code you need …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server-50138/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server-50138/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50135-wb19-variables-browser-and-server/read.awp">WB19 - Variables browser and server</source><title>Re: WB19 - Variables browser and server</title></item></channel></rss>
