CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Question on Loading Events from a dataset

by Omega8 » 14 Apr 2016 09:36

with UserSession.FDEventsTable do
begin
CancelRange;
IndexFieldNames := 'StartTime';
SetRangeStart;
FieldByName('StartTime').Value := EncodeDate(2016,4,11);
SetRangeEnd;
FieldByName('StartTime').Value := EncodeDate(2016,4,17);
ApplyRange;
First;
with IWScheduler.JQSchedulerOptions do
begin
with EventItems do
begin
Clear;
while not EOF do
begin
TIWLimoPoolEvent.CreateFromDataSet(Add).Free; // This is an object which populates the newly added Event in its
// constructor.
Next;
end;
end;
Reload;
View:=svWeek;
end;
end;

This does not seem to always work. It depends on what the JQScheduler.JQSchedulerOptions.View previously was. When view changes from svMonth to svWeek or to svDay in SA version no error results and no events are shown in ISAPI version however I get "URL too Long" error message. To debug this I check to see if the SetRangeStart/ApplyRange is returning the correct number of Rows. This is working fine. Then
I also check EventItems.Count and in every case the number of Events loaded to EventItems corresponds to the number of events read from
the Table.

Can anyone see a mistake here?

Thanks
Omega8
 
Posts: 87
Joined: 18 Mar 2016 22:42

by Alexander Bulei » 14 Apr 2016 10:21

Hi,

Already answer you in your another topic about the "URL too Long" problem:

viewtopic.php?f=118&t=2809&p=14177#p14178

Please don't duplicate, or we will remove them. Thanks.

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


Return to JQScheduler

cron

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.