how filter events by user?

hi,
i have found a sample that have 4 tabs PERSON - DAY - MONTH -YEAR
i have this in my sample:

      var sections=[
                    {key:1, label:"James Smith"},
                    {key:2, label:"John Williams"},
                    {key:3, label:"David Miller"},
                    {key:4, label:"Linda Brown"}
            ];

            scheduler.locale.labels.unit_tab = "Persons"
            scheduler.locale.labels.section_custom="Assigned to";
            scheduler.config.details_on_create=true;
            scheduler.config.details_on_dblclick=true;
            scheduler.config.xml_date="%Y-%m-%d %H:%i";
            scheduler.config.lightbox.sections=[
                    {name:"description", height:130, map_to:"text", type:"textarea" , focus:true},
                    {name:"custom", height:23, type:"select", options:sections, map_to:"section_id" },
                    {name:"time", height:72, type:"time", map_to:"auto"}
            ]

            scheduler.createUnitsView("unit","section_id",sections);

            scheduler.config.xml_date="%Y-%m-%d %H:%i";

            scheduler.config.prevent_cache = true;



            scheduler.config.lightbox.sections=[

                    {name:"description", height:130, map_to:"text", type:"textarea" , focus:true},

                    {name:"location", height:43, type:"textarea", map_to:"details" },

                    {name:"time", height:72, type:"time", map_to:"auto"}

            ]

            scheduler.config.first_hour=0;

            scheduler.locale.labels.section_location="Location";

            //scheduler.config.details_on_create=true;

            //scheduler.config.details_on_dblclick=true;







            scheduler.init('scheduler_here',new Date(2009,10,1),"month");

            scheduler.setLoadMode("month")

            scheduler.load("../includes/agenda/php/events.php");



            var dp = new dataProcessor("../includes/agenda/php/events.php");

            dp.init(scheduler);

the persons appear but not filtered,i don´t know show send the value of the persons and compare with the field person that i have created, and i need save that info too.
i looking in forum but i don´t find nothing like this
thanks for your help :slight_smile:

scheduler.createUnitsView(“unit”,“section_id”,sections);
{name:“custom”, height:23, type:“select”, options:sections, map_to:“section_id” },

in both cases “section_id” defines the name of field which will contain ID of person to which event is linked.

so you may need to rename it as actual field in DB named, and be sure to add this fields to the list of fields in the connector command.