PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → [URGENT] on change field value execute server code
[URGENT] on change field value execute server code
Débuté par Niccolò, 14 jan. 2009 12:33 - 3 réponses
Posté le 14 janvier 2009 - 12:33
hi all,
i need to execute a server code when user change content of a field.
how can i do that?
tnx for all
nico
Posté le 14 janvier 2009 - 14:09
Hi Niccolò,

Look at the codes that are possible in the control (depends of the type
of control)... In an edit control, you ahve a section called Exit with
change (onchange), in which you can put some code... it is a BROWSER
section, so you can:
- do a executeProcess of a button (and put your code in the server
section of the button)
- Use ajaxexecute or ajaxexecuteasynchronous directly in your code

In both cases, be careful that talking to the server takes time, and if
you do that each time the user enter one character, it may quickly
become unusable

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

More information on http://www.fabriceharari.com


Niccolò wrote:
hi all,
i need to execute a server code when user change content of a field.
how can i do that?
tnx for all
nico
Posté le 14 janvier 2009 - 15:39
thank you for all
rlly useful
Posté le 07 avril 2010 - 16:42
Hi Niccolò

- either do a ExecuteProcess of a button (will execute first the browser
then the server code of the button)
- or use AjaxExecute

Best regards


--
Fabrice Harari
Consultant WinDev, WebDev et WinDev Mobile International

Plus d'information sur http://fabriceharari.com/index_FR.html


On 1/14/2009 6:33 AM, Niccolò wrote:
hi all,
i need to execute a server code when user change content of a field.
how can i do that?
tnx for all
nico