DHTMLX Multisource problem

I’d like to use 4 differents connector to load my datas,
i use multisource extension but it is not working maybe i do it the wrong way

here’s my connector :
require_once(‘codebase/scheduler_connector.php’);
include(‘config.php’);$conn = new SchedulerConnector($res);
$conn->render_table(“events”. $_GET[‘id’] ,“id”,“start_date,end_date,text,rec_type,event_length,event_pid”);

my view


<script src="{{ asset('dhtmlx/codebase/dhtmlxscheduler.js') }}"></script>
<script src="{{ asset('dhtmlx/sources/locale/locale_fr.js') }}"></script>
<script src="{{ asset('dhtmlx/codebase/ext/dhtmlxscheduler_recurring.js') }}"></script>
<script src="{{ asset('dhtmlx/sources/locale/recurring/locale_recurring_fr.js') }}" type="text/javascript" ></script>

<script src="{{ asset('dhtmlx/sources/ext/dhtmlxscheduler_minical.js') }}"></script>
<script src="{{ asset('dhtmlx/codebase/ext/dhtmlxscheduler_agenda_view.js') }}"></script>
<script src="{{ asset('dhtmlx/codebase/ext/dhtmlxscheduler_pdf.js') }}"></script>
<script src="{{ asset('dhtmlx/codebase/ext/ext/dhtmlxscheduler_multisource.js') }}"></script>
 
 

//some scheduler config

scheduler.load(["{{asset(‘connector/connector’.php’)}}?id=1")}}"),"{{asset(‘connector/connector’.php’)}}?id=2")]);

pb : no events are displayed

sorry i’ve just seen my path to dhtmlxscheduler_multisource.js was not correct

the path to dhtmlxscheduler_multisource.js is now correct

but only events from connector.php?id=1 are loaded
events from connector.php?id=2 are not visible

any idea?

Hello,
propably it happens due to duplicated id’s between events from different sources.

It may be similar to the issue discussed in this topic viewtopic.php?f=6&t=32467&start=0

Try adding a prefixes to event ids from the different sources. The connector code:

[code]function add_prefix($row){
$row->set_id(‘tbl_name_’ . $row->get_id());
}

$scheduler->event->attach(“beforeRender”,“add_prefix”);

$scheduler->render_table(…);[/code]