CodeJock Calendar Control

CodeJock Calendar Control

Postby reinaldocrespo » Fri Feb 06, 2015 10:26 pm

Hi.

Has anybody had any luck adding multiple resources to a CodeJock Calendar control? Multiple resources is a way to have multiple schedules for multiple people. I was successful creating it, but it doesn't show appointments. It's all blank. Here is my code:

Code: Select all  Expand view

   IF !EMPTY( ::aSchedules )

      ::oSchedules := ::oCalex:DataProvider:Schedules()

      aEval( ::aSchedules, { |e, n| ;
               ::oSchedules:AddNewSchedule( e ),;
               oResDesc := ::CreateScheduleResource(),;
               oResDesc:SetDataProvider( ::oCalex:DataProvider, .F. ),;
               oResDesc:Name( e ),;
               oResDesc:ScheduleIDs:Add( ::oSchedules:Item( n-1 ):Id() ),;
               ::oCalexResources:Add( oResDesc ) } )


      ::oCalex:SetMultipleResources( ::oCalexResources )

   ENDIF

   ::oCalex:Populate()
   ::oCalex:RedrawControl()
 


[img]
http://ssfl.dynalias.com/temp_files/CJ_CalendarScreenShot.png
[/img]

Reinaldo.
User avatar
reinaldocrespo
 
Posts: 972
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Re: CodeJock Calendar Control

Postby Antonio Linares » Sat Feb 07, 2015 2:44 am

Reinaldo,

Tim Stone is a master with Codejock Calendar, surely he may be able to help you :-)

Or you may email him
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41436
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Antonio Linares and 38 guests