PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WEBDEV 2024 → [URGENT] on change field value execute server code
[URGENT] on change field value execute server code
Started by Niccolò, Jan., 14 2009 12:33 PM - 3 replies
Posted on January, 14 2009 - 12:33 PM
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
Posted on January, 14 2009 - 2:09 PM
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
Posted on January, 14 2009 - 3:39 PM
thank you for all
rlly useful
Posted on April, 07 2010 - 4:42 PM
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