CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Refresh Label 2

by etwoss » 19 Oct 2015 18:50

Hi

My main form is a TIWAppForm with a TIWCGJQRegion in which i show forms of type TIWCGJQFrame.
One of my TIWCGJQFrame forms shows the TIWCGJQScheduler

I also have a label which shows the sum of hours of the events in the scheduler.
I fire a query in the OnGetData event of the scheduler and set the Label. However the label is not refreshed as expected.

So what do i do?

i call an event which is attached by a handler on my Mainform.This event sets a timer enabled to true.
In the onTimer i call a method on the scheduler form which gets the data end refreshes the label.

What does not work?
It goes ok until i hit thge method the main form. The timer is set enabled to true but the OnTimer is not fired?

Any idea why not?

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by assapan » 20 Oct 2015 07:56

Hi,
I know its a shame but Timers doen't work on frames , they must be on Forms.

For your label , ajaxrerender doesn't works ?
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by etwoss » 21 Oct 2015 07:59

Hi

Thats true, but i have the Timer on my TIWAppForm , its enabled but does not fire.

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Alexander Bulei » 21 Oct 2015 09:36

Hi Eric,

I fire a query in the OnGetData event of the scheduler and set the Label. However the label is not refreshed as expected.


You need debug, and check the value setted on label.
Another thing, our IWCGJQLabelEx doesn't need any method or ajaxrerender to set/refresh the value.

Also check the console for js errors.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by etwoss » 21 Oct 2015 14:33

Hi

You mean that if i use a IWCGJQLabelEx it will be refreshed?

The problem now is that the Timer on the AppForm is enabled but the OnTimer does not kick in.

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Alexander Bulei » 22 Oct 2015 09:39

Hi Eric,

You mean that if i use a IWCGJQLabelEx it will be refreshed?


Yes.

The problem now is that the Timer on the AppForm is enabled but the OnTimer does not kick in.


Well, check/debug this part by yourself, since the IWTimer is intraweb component :)

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by etwoss » 22 Oct 2015 15:57

Hi

Will try the LabelEx first :-)

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by etwoss » 23 Oct 2015 08:28

Hi

Tried the LabelEx in your demo app,. Just added a labelEx between the buttons set the TextEx to 'Test', in the "OnGetData" i set

Code: Select all
IWCGJQLabelEx1.TextEx.Text := 'Etw';


No change in the text visible.

if i put the statement in the Ajax OnClick event of the first buttom it works fine

What have i missed?

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by etwoss » 27 Oct 2015 11:17

Hi

Can i have a response here

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Jorge Sousa » 27 Oct 2015 15:18

The purpose of OnGetData is solely to supply data, it will not execute any control update.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

Next

Return to JQLabelEx

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.