We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Save Appointment new ID

Thread ID:

Created:

Updated:

Platform:

Replies:

121336 Dec 2,2015 12:24 PM Dec 8,2015 07:50 AM JavaScript 2
loading
Tags: ejSchedule
amaro
Asked On December 2, 2015 12:24 PM

Good afternoon, my name is amaro,
And I've been studying for a while the schedule and found that in making a new record, and completing the id field value (number), this is not included on the Schedule. I wonder if it is possible to enter an ID number other than the sequence of the Schedule to register a new appointment.

Thank you

amaro
Replied On December 2, 2015 05:09 PM

Good afternoon, my name is amaro,
And I've been studying for a while the schedule and found that in making a new record, and completing the id field value (number), this is not included on the Schedule. I wonder if it is possible to enter an ID number other than the sequence of the Schedule to register a new appointment.

Thank you

Good afternoon, my name is amaro,
And I've been studying for a while the schedule and found that in making a new record, and completing the id field value (number), this is not included on the Schedule. I wonder if it is possible to enter an ID number other than the sequence of the Schedule to register a new appointment.


       var obj = {}, temp = {}, rType;
            var formelement = $("#customWindow").find("#custom").get(0);
            for (var index = 0; index < formelement.length; index++) {
                var columnName = formelement[index].name, $element = $(formelement[index]);
                if (columnName != undefined) {
                    if (columnName == "")
                        columnName = formelement[index].id.replace(this._id, "");
                    if (columnName != "" && obj[columnName] == null) {
                        var value = formelement[index].value;
                        if (columnName == "Id" && value != "")
                            value = parseInt(value);
-------
  if (columnName == "Id" && value == "")
                            value = "1000";
-------

                        if ($element.hasClass("e-datetimepicker"))
                            value = new Date(value);
                        if (formelement[index].type == "checkbox")
                            value = formelement[index].checked;
                        if (columnName == "freq") {
                            if (formelement[index].type == "select-one") {
                                rType = document.getElementById("rType");
                                temp[columnName] = rType.options[rType.selectedIndex].value;
                            }
                        }
obj[columnName] = value;
   }
                }
            }
 
Thank you

Sellakumar [Syncfusion]
Replied On December 8, 2015 07:50 AM

Hi Amaro,

Thanks for contacting Syncfusion support.

We are unable to pass the ID value to the Schedule control, because we have internally processed the automatic value generation for id field with the current appointment collection in source level, therefore it is not necessary to provide id values for each appointment while saving. If you are using the database to store the appointments details you need not to mention the id field for while saving, but you need to mention or map the id field in controller page to store the updated/deleted appointment details in database.

Please let us know if you need any further assistance.

Regards,
Sellakumar K

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;