Showing one event to multiple users

Hello Team,

Here is my json of event that i am using

$data = ‘{“id”:“242”,“start_date”:“2013-07-26 01:20”,“end_date”:“2013-07-26 01:20”,“text”:“finaltest”,“unit”:"",“section_id”:“4_u”,“sections”:""},{“id”:“242”,“start_date”:“2013-07-26 01:20”,“end_date”:“2013-07-26 01:20”,“text”:“finaltest”,“unit”:"",“section_id”:“37_u”,“sections”:""},{“id”:“242”,“start_date”:“2013-07-26 01:20”,“end_date”:“2013-07-26 01:20”,“text”:“finaltest”,“unit”:"",“section_id”:“38_u”,“sections”:""}’;

scheduler.parse([<?php echo $data;?>], “json”);

now if you notice all event is same id is 242 for all but section_id is different
i want to show the same event to all section_id user’s,how can i do this?
if i use above json it only displys for last user section_id=38_u.

if i remove id from json then it displays fine in all section_id but it creates problem during edit
Pls suggest

Thanks

You need to have unique ids for each event, it is mandatory rule
You can make a fake ids, like

$data = '{"id":"242-1","start_date":"2013-07-26 01:20","end_date":"2013-07-26 01:20","text":"finaltest","unit":"","section_id":"4_u","sections":""},{"id":"242-2","start_date":"2013-07-26 01:20","end_date":"2013-07-26 01:20","text":"finaltest","unit":"","section_id":"37_u","sections":""},{"id":"242-3","start_date":"2013-07-26 01:20","end_date":"2013-07-26 01:20","text":"finaltest","unit":"","section_id":"38_u","sections":""}';

Now, on server side you can add a custom code, which will change ID back to the correct one, before data saving.