import("system.calendars"); import("system.vars"); import("system.neon"); import("system.date"); import("system.util"); import("Context_lib"); import("Calendar_lib"); var links = [ { "OBJECT_ID":vars.get("$field.CONTACTID"), "OBJECT_TYPE":ContextUtils.getCurrentContextId() } ]; var params = { "Entry_param":JSON.stringify(CalendarUtil.createEntry("", "", links, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined)) }; neon.openContext("Appointment", "AppointmentEdit_view", null, neon.OPERATINGSTATE_NEW, params);