jQWidgets Forums

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: add custom control add custom control #93504

    Markk
    Participant

    Hi,

    How may I move fields of bottom to the top in dialog control?

    Thank

    in reply to: recurrencePattern recurrencePattern #90867

    Markk
    Participant

    Thank Peter,

    I found the problem.

    The solution was :

    <?php if ($row[“recurrenceRule”] !=” && $row[“recurrenceRule”] !=’ ‘) { ?>
    recurrencePattern: “<?php echo $row[“recurrenceRule”];?>”,
    <?php } ?>

    Have a good day

    in reply to: recurrencePattern recurrencePattern #90857

    Markk
    Participant

    Thank you Peter,

    I have tested with your code and that works well, but when I modify my code I have the following error:

    Loading…

    jqxscheduler.api.js:7 Uncaught TypeError: c.recurrencePattern.setFrom is not a function
    at new a.jqx.scheduler.appointment

    Do you have any idea ?

    var appointment10 = {
    id: “145389”,
    subject: “test reccurence”,
    location: “EBALI”,
    address: ” “,
    description: ” “,
    prenom: “ccc”,
    nom: “fff”,
    //status: “tentative”,
    recurrencePattern: “DTSTART=20161230T050000Z;UNTIL=99991231T050000Z;COUNT=5;FREQ=WEEKLY;BYDAY=FR;WKST=0;INTERVAL=1”,
    status: “busy”,
    IDPT_Task: “145389”,
    calendar: “test”,
    start: new Date(2016, 11, 30, 0, 0, 0),
    end: new Date(2016, 11, 30, 0, 0, 0)

    }

    // prepare the data
    var source =
    {
    dataType: ‘json’,
    dataFields: [
    { name: ‘id’, type: ‘string’ },
    { name: ‘IDPT_Task’, type: ‘string’ },
    { name: ‘status’, type: ‘string’ },
    { name: ‘address’, type: ‘string’ },
    { name: ‘Details’, type: ‘string’ },
    { name: ‘description’, type: ‘string’ },
    { name: ‘prenom’, type: ‘string’ },
    { name: ‘nom’, type: ‘string’ },
    { name: ‘TicketNumber’, type: ‘string’ },
    { name: ‘subject’, type: ‘string’ },
    { name: ‘location’, type: ‘string’ },
    { name: ‘style’, type: ‘string’ },
    { name: ‘recurrencePattern’, type: ‘string’ },
    { name: ‘calendar’, type: ‘string’ },
    { name: ‘start’, type: ‘date’ },
    { name: ‘end’, type: ‘date’ },
    ],
    id: ‘id’,
    //url: ‘data.php’,
    localData: appointments,

    appointmentDataFields:
    {
    from: “start”,
    to: “end”,
    id: “id”,
    location: “location”,
    calendar: “calendar”,
    prenom: “prenom”,
    nom: “nom”,
    subject: “subject”,
    address:”TypeTicket”,
    recurrencePattern: “recurrencePattern”,
    description: “description”,
    style: “style”,
    status: “status”,
    IDPT_Task: “IDPT_Task”,
    resourceId: “calendar”

    },


    Markk
    Participant

    i’have this, but doesn’t work, my argument is IDPT_Task but in data.php?delete=true&IDPT_Task=& =1484258406845 500 (Internal Server Error) do you have a idea ? IDPT_Task is empty and commit is not defined at Object.error

    Thank you

    $(“#scheduler”).on(‘appointmentDelete’, function (event, IDPT_Task) {
    var args = event.args;
    var appointment = args.appointment;
    var data = “delete=true&” + $.param({ IDPT_Task: IDPT_Task});
    $.ajax({
    dataType: ‘json’,
    url: ‘data.php’,
    cache: false,
    data: data,

    success: function (data, status, xhr) {
    alert(“Record successufully deleted”);
    commit(true);
    },
    error: function (jqXHR, textStatus, errorThrown) {
    alert(data);
    commit(false);
    }
    });

    $(“#log”).html(“appointmentDelete is raised”);

    });


    Markk
    Participant

    Thank you Peter
    like that ?

    $(“#scheduler”).on(‘appointmentDelete’, function (event, rowid, commit) {
    var args = event.args;
    var appointment = args.appointment;
    var data = “delete=true&” + $.param({ id: rowid });
    $.ajax({
    dataType: ‘json’,
    url: ‘data.php’,
    cache: false,
    data: data,
    success: function (data, status, xhr) {
    alert(“Record successufully deleted”);
    commit(true);
    },
    error: function (jqXHR, textStatus, errorThrown) {
    commit(false);
    }
    });

    $(“#log”).html(“appointmentDelete is raised”);

    });

Viewing 5 posts - 1 through 5 (of 5 total)