Google Calendar & external button to add form

Hi,

  1. Is it possible for mobile scheduler to synchronize with Google Calendar now?
    blog/?p=1759

  2. I would like to do the exactly same thing in this thread (viewtopic.php?f=6&t=27543). To create an event by clicking on a external button, what method should I use in mobile scheduler?
    I tried this (scheduler.addEventNow():wink: but seems mobile scheduler is different from normal one.

In proper format

Hi,

  1. Is it possible for mobile scheduler to synchronize with Google Calendar now?
    http://www.dhtmlx.com/blog/?p=1759

  2. I would like to do the exactly same thing in this thread (http://forum.dhtmlx.com/viewtopic.php?f=6&t=27543).
    To create an event by clicking on a external button, what method should I use in mobile scheduler?
    I tried this (scheduler.addEventNow():wink: but seems mobile scheduler is different from normal one.

Hi,

Is it possible for mobile scheduler to synchronize with Google Calendar now?

Yes, it is possible. The server-side the same for bot desktop and mobile versions.

I would like to do the exactly same thing in this thread (viewtopic.php?f=6&t=27543).

Desktop and mobile scheduler have different API. You need to apply add() method to add an event:

var id = …, startDate = …, endDate = …;
$$(“scheduler”).add({id:id, start_date:startDate, end_date:endDate,… });

Sorry, maybe I have to state it more detail.

I have an external button outside the scheduler but on the same page. I would like to know is there is a method let me to open the form(view) below through clicking the external button.

You can emulate “add” click like so:

var id = $$(“scheduler”).$$(“add”).config.id;
$$(“scheduler”).callEvent(“onItemClick”,[id]);

Great!! It makes my application more flexible. Thanks!

A follow up question
can it also emulates “clicked selected item” and show the details form (the form with this template: scheduler.templates.selected_event). How to do it ? What parameters are needed?

Sorry, any idea? I am sound eager to have this answer

Try the following:

$$(“scheduler”).setCursor(eventId);
$$(“scheduler”).$$(‘event’).show();

The first line is necessary if you want to show “event” view for an event that is not selected.

Thanks!