Appointment Update problem

Hi, I have one problem. I have Scheduler. I have two functions:


const onPopupOpen = (args) => { if(args.type === "Editor") { console.log(args.data); }}

const onPopupClose = (args) => { if(args.type === "Editor") { console.log(args.data); }

If I create new appointment, I see in console new appo with all properties, and there is Guid and Id. This appo I push into my collection of appointments. Then I doubleclick on appo, made some change and close the Editor. In console I see my appo, but without Id. I need this Id to perform change in my collection. How can I become this Id?


here are results from console. First is new created poo, second result after some changes in Editor.


-----------

Subject: 's',

Location: undefined,

StartTime: Wed Mar 12 2025 10:00:00 GMT+0100 (stredoeurópsky štandardný čas),

EndTime: Wed Mar 12 2025 10:30:00 GMT+0100 (stredoeurópsky štandardný čas),

IsAllDay: false, …}Description: undefinedEndTime: Wed Mar 12 2025 10:30:00 GMT+0100 (stredoeurópsky štandardný čas) {}

EndTimezone: null

Guid: "28aeb694-921b-a2cf-784c-269aa8fb9d5a"

Id: 1

IsAllDay: false

Location: undefined

RecurrenceRule: null

StartTime: Wed Mar 12 2025 10:00:00 GMT+0100 (stredoeurópsky štandardný čas) {}

StartTimezone: null

Subject: "s"

Timezone: false[[Prototype]]: Object

--------------------------------------

Description: undefined

EndTime: Wed Mar 12 2025 10:30:00 GMT+0100 (stredoeurópsky štandardný čas) {}

EndTimezone: null

IsAllDay: false

Location: undefined

RecurrenceRule: null

StartTime: Wed Mar 12 2025 10:00:00 GMT+0100 (stredoeurópsky štandardný čas) {}

StartTimezone: null

Subject: "sss"


3 Replies

SR Swathi Ravi Syncfusion Team March 11, 2025 01:03 PM UTC

Hi Julo Jenis,

Thank you for reaching out to us!

We have reviewed your reported scenario and would like to inform you that the Id is internally generated. If you want to retrieve the event Id to perform some actions, you can use the actionBegin event. This event will be triggered after the popupClose event, allowing you to access the event data, including the Id field.

Here's an example:

const onactionBegin = (args) => {
    if(args.requestType == 'eventCreate' || args.requestType == 'eventChange') {
      console.log("Action begin", args.data);
    }
  };


Regards,
Swathi


JJ Julo Jenis March 11, 2025 01:51 PM UTC

Yes, this is what I need. Thanks.

Julo



SR Swathi Ravi Syncfusion Team March 12, 2025 03:41 AM UTC

You are welcome, Julo Jenis!

We are glad to hear that our provided solution was worked for you. Get back to us if you need any further assistance.


Loader.
Up arrow icon