Recurrence Appoitnment: When creating a child event, the parent id passed to the child is not reliable

Hello,

I am trying to reliable capture the parent ID when opening a series.

The series of events:

0) Setup:

                                                   fields: {
                                                            Id: { name: "id" },
                                                            subject: { name: "subject" },
                                                            isAllDay: { name: "is_all_day" },
                                                            startTime: { name: "start" },
                                                            endTime: { name: "end" },
                                                            isBlock: { name: "is_block" },
                                                            recurrenceRule: { name: "reoccurence_rule" },
                                                            recurrenceID: { name: "parent_id" },
                                                            recurrenceException: {
                                                                name: "reoccurence_exception",
                                                            },
                                                        },
                                                    }}
....

    function editorTemplate(props) {
        console.log(props.parent_id);
...
   

1) User clicks on a series appointment

2) User is presented with a prompt to edit the series (or event)

3) User selects edit appointment

4) In the editor template, the parent_id is set to the number of recurring events series in the data source.

Sometimes the parent_id of the series is indeed set correctly, but this is not reliable.

Possible solutions:

Is there a way to capture the dialog boxes value (2)?


Thanks



1 Reply

RV Ravikumar Venkatesan Syncfusion Team August 26, 2022 10:32 AM UTC

Hi Z,


Greetings from Syncfusion support.


Q1: When creating a child event, the parent id passed to the child is not reliable

We have validated your query at our end. While editing an appointment from the Recurrence appointment series the parent appointment unique Id field value is mapped to the edited appointment RecurrenceID field value. We have prepared a sample based on your shared code snippets and the parent appointment id field value property mapped to the edited appointment parent_id field.


Sample: https://stackblitz.com/edit/ej2-react-schedule-edit-recurrence-event-sample?file=index.js

UG:

https://ej2.syncfusion.com/react/documentation/schedule/appointments/#editing-an-occurrence-from-a-series

https://ej2.syncfusion.com/react/documentation/schedule/appointments/#built-in-fields


Q2: Is there a way to capture the dialog boxes value (2)?

We have tried to validate your query at our end. But, we are unable to understand your query on our end. Can you kindly share more details about your query? It will help us to provide the solution for your query earlier.


Regards,

Ravikumar Venkatesan


Loader.
Up arrow icon