Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
4
Erster Beitrag:
vor 1 Jahr, 8 Monaten
Letzter Beitrag:
vor 1 Jahr, 8 Monaten
Beteiligte Autoren:
Steven Sitas, Danny Lauwers, Allard

WEBDEV 21 - Ajax Tables

Startbeitrag von Steven Sitas am 21.09.2016 14:20

Hi,
In ajax tables:
Code for Row Selection of table ...[server]... -> is ALWAYS Ajax enabled and cannot be changed.

Now say you want to run from here/or call code that must NOT be Ajax Enabled.
If you use the button technique - calling a Button with NON Ajax code - with ExecuteProcess it will not work ...

WB seems to remember that it all started from a AJAX Area and code in the NON Ajax Area( the button) will not work - if it is not compatible with AJAX !!!

Any Ideas ?

* hope my message makes sense

Steven Sitas
www.alpha360.biz

Antworten:

Hi

Yes thaty is true. I tried adding going to another row with keyboard arrows. That was a nightmare . Got it working but with an ajax server call so verry slow.

This is problably a drawback form the one click ajax stuff. Better use looper and build a table that way. Then there are lots of things you can change and have control over.

regards

Allard.

von Allard - am 21.09.2016 17:41
Hi,

You can use a timer function to trigger the Non Ajaxbutton. When you click your row, you start a timer in Java code (150ms).

In that piece of code that is called about 150ms later you can Execute the click of the non-ajax button.

Uncle Pete had explained this in some post I think ?

PCSoft should build this kind of call into the framework and add more different event to the controls in Windev. Maybe in the next version ?

Danny

von Danny Lauwers - am 22.09.2016 07:31
Hi,
thanks everybody for the suggestions.
I finally changed the way "I was working/thinking" and moved on ...
If I had a debugger that would work with browser code also and inspect the values of GLOBAL variables in browser code, I would have found the problem a lot sooner.

To say it in a few words - you must be careful with Global variables that you change in server code, because "the same variable" may have not been changed in the Browser.

This is something WELL known _and_ I thought that the technique with the Button and Execute would solve the problem. This is actually what Uncle Pete describes in his post.

But this is wrong (or at least it is NOT the complete story).
What showed me the problem, is a post by Piet Van Zanten.
You can find it here: http://27130.foren.mysnip.de/read.php?27131,514905,514908#msg-514908

It actually talks about hidden fields, but there are other places also affected with this Server/Browser Duality. So always use Ajaxecute ...

Steven Sitas
www.alpha360.biz

von Steven Sitas - am 22.09.2016 08:55
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.