Welcome! Log In Create A New Profile

Advanced

WB 12 Cannot get a table to refresh

Posted by Andres Sanchez 
Andres Sanchez
WB 12 Cannot get a table to refresh
October 21, 2008 10:35PM
Hi.

I am using AjaxExecute in order to add a record that is being entered via edit boxes, and i want them to appear in the table once the record is added.

The add is being done, but the tabledisplay dont. If i select the table then it is displayed.

Am i doing something wrong or am i missing something?



Browser Side

AJAXExecute(SaveRecord,EDT_Concepto,EDT_Empleado,EDT_Unidades)
ReturnToCapture(EDT_Concepto)

Server Side
HReadSeek(Periodo,MOV_MOV_PERIODO,["S",nEmpleado,nConcepto])
IF HFound(Periodo) THEN
Periodo.MOV_UNIDADES = nUnidades
HModify(Periodo)
ELSE
Periodo.MOV_TIPO = Empleados.EMP_FORMA_PAGO
Periodo.MOV_DEPTO = Empleados.EMP_DEPTO
Periodo.MOV_CONCEPTO = nConcepto
Periodo.MOV_EMPLEADO = nEmpleado
Periodo.MOV_UNIDADES = nUnidades
HAdd(Periodo)
END
HReset(Periodo)
HDeactivateFilter(Periodo)
HFilter(Periodo,MOV_CONCEPTO,nConcepto)
TableDisplay(TABLE_Periodo)



Thanks
Andres Sanchez
KenKnight
Re: WB 12 Cannot get a table to refresh
October 22, 2008 01:21AM
Hi Andres,

Out of curiosity, what mode are you in (full / awp)?

What happens if you try the parametrs taInit or taCurrentFirst?

Cheers!
Ken
Glenn Rathke
Re: WB 12 Cannot get a table to refresh
October 22, 2008 01:46AM
Hi Andres,

What a coincicence. I'm trying to do something similar in AWP and am having the same result that it is not being populated until later...

Actually I've got a loop I'm processing, and using ajaxexecute with a timer. But the table does not display the data until the loop is completely finished.

Glenn
Andres Sanchez
Re: WB 12 Cannot get a table to refresh
October 22, 2008 07:44AM
Hi Ken:

I am using the full mode, and tried everything in the tabledisplay but nothing happens.

I have to click the table control in order for the tabledisplay take effect.

Andres Sanchez
Andres Sanchez
Re: WB 12 Cannot get a table to refresh
October 22, 2008 05:00PM
Hi Glenn:

Can you post your code to see it?.

I don't suppose that could be fixed by a MultitaskRedraw? I don't know if this is possible for WebDev. Just an idea.

Thanks

Andres Sanchez
Glenn Rathke
Re: WB 12 Cannot get a table to refresh
October 23, 2008 11:57PM
Hi Andres,

Multitasak does not fix the problem. I had to move the code to a windev application that is launched from webdev.... Won't help you with your problem but it was a solutn for mine.

Glenn
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: