About eventdrop calendar

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
rubengg
User
Posts: 13

About eventdrop calendar

Post by rubengg »

Hi,

I have added two fields to the calendar table.

When I execute the "eventdrop" event, it moves the date of the event but does not copy the value of the two new fields.

Do you know how to fix this?

Thank you


arbei
User
Posts: 9359

Post by arbei »

rubengg wrote:

I have added two fields to the calendar table.

Make sure the fields names match (including letter case) FullCalendar's Event object.


rubengg
User
Posts: 13

Post by rubengg »

Excuse my ignorance, where is the code (file) to check if my fields are correctly included?

Thank you,


arbei
User
Posts: 9359

Post by arbei »

You may post your latest table schema (CREATE TABLE statement) for the calendar report for discussion.


rubengg
User
Posts: 13

Post by rubengg »

CREATE TABLE `Calendario` (
  `Id` int(11) NOT NULL,
  `Title` varchar(255) NOT NULL,
  `Start` datetime NOT NULL,
  `End` datetime DEFAULT NULL,
  `AllDay` tinyint(1) NOT NULL,
  `Description` longtext DEFAULT NULL,
  `GroupId` varchar(255) DEFAULT NULL,
  `Url` varchar(255) DEFAULT NULL,
  `ClassNames` varchar(255) DEFAULT NULL,
  `Display` varchar(255) DEFAULT NULL,
  `BackgroundColor` varchar(255) DEFAULT NULL,
  `idusu` int(11) DEFAULT NULL,
  `idcolor` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Thank you,


arbei
User
Posts: 9359

Post by arbei »

arbei wrote:

Make sure the fields names match (including letter case) FullCalendar's Event object.

rubengg wrote:

idusu int(11) DEFAULT NULL,
idcolor int(11) DEFAULT NULL


rubengg
User
Posts: 13

Post by rubengg »

The problem is that when I drag a calendar event from one date to another, it copies all the default calendar fields but not the two fields I created.

I don't know what file or part of code I have to modify so that it copies my fields as well.

Thank you


arbei
User
Posts: 9359

Post by arbei »

As explained the fields names MUST match (including letter case) the property names of the FullCalendar's Event object. Your "idusu" and "idcolor" do not.


Post Reply