Page 2 of 5

Re: [VUE] SchedulerPro(v5.3.0) RecurringEvent change the name of recurring events

Posted: Wed Mar 22, 2023 5:49 pm
by tobias.aires

Where should i put this code ?

occurrence.recurrenceRule = null;

Re: [VUE] SchedulerPro(v5.3.0) RecurringEvent change the name of recurring events

Posted: Wed Mar 22, 2023 7:30 pm
by tobias.aires
Animal wrote: Wed Mar 22, 2023 5:38 pm
tobias.aires wrote: Wed Mar 22, 2023 5:29 pm

How can i allow my user to create multiple events the repeat periodically?

It's part of the editor:

Screenshot 2023-03-22 at 16.38.15.png

But i only get this tab if i set enableRecurringEvents to true


Re: [VUE] SchedulerPro(v5.3.0) RecurringEvent change the name of recurring events

Posted: Thu Mar 23, 2023 4:41 pm
by tobias.aires

Hello,

occurrence.recurrenceRule = null;

if i put this on my eventRenderer only 1 event is created. The correct place is on eventRenderer function?


Re: [VUE] SchedulerPro(v5.3.0) RecurringEvent change the name of recurring events

Posted: Thu Mar 23, 2023 4:56 pm
by Animal

You need to get a reference to the occurrence that you are going to turn into a real, concrete event. Don't do that on the base, otherwise that will destroy the recurringness of the base.


Re: [VUE] SchedulerPro(v5.3.0) RecurringEvent change the name of recurring events

Posted: Thu Mar 23, 2023 5:20 pm
by tobias.aires
    
if (eventRecord.isOccurrence) { const chapterNumber = eventRecord.occurrenceIndex + 1 event_name = 'Cap. ' + chapterNumber eventRecord.recurrenceRule = null; }

I tried something like this, but now the component is not respecting de rule from the recurrence tab


Re: [VUE] SchedulerPro(v5.3.0) RecurringEvent change the name of recurring events

Posted: Fri Mar 24, 2023 9:30 am
by Animal

I do not understand what your app requirement is, or how you are trying to get there.

recurring events are based on one single base event which has a rule. The "occurrences" of it in the future are not stored in the database.

They are just displayed in the UI according to the rule.


Re: [VUE] SchedulerPro(v5.3.0) RecurringEvent change the name of recurring events

Posted: Fri Mar 24, 2023 4:00 pm
by tobias.aires

I think that my app requirement is to create serie of real events by some rule, for example after 2 weeks on every starting every monday, and saving those events on my database. Is this possible somehow?


Re: [VUE] SchedulerPro(v5.3.0) RecurringEvent change the name of recurring events

Posted: Fri Mar 24, 2023 5:24 pm
by Animal

How many real events? Because if it's recurring on a rule, then there will be an infinite number of them.


Re: [VUE] SchedulerPro(v5.3.0) RecurringEvent change the name of recurring events

Posted: Fri Mar 24, 2023 5:35 pm
by tobias.aires

This value will be set by the user.

Using the recurrenceTab, i tought in using the last input, telling the component to stop after X times.

If somehow i could use this tab to get real events.


Re: [VUE] SchedulerPro(v5.3.0) RecurringEvent change the name of recurring events

Posted: Tue Mar 28, 2023 12:16 pm
by alex.l

We do not support that. It is not recurring events in that case, but simple events that added with some period. So, you need to add them one by one into eventStore yourself, using data you need (name, dates, etc). It's not supported with recurringEvents feature and cannot be done using that feature, because main goal of that feature is to reduce amount of events in database using rules instead of instances.

Regarding to this code you posted

    
if (eventRecord.isOccurrence) { const chapterNumber = eventRecord.occurrenceIndex + 1 event_name = 'Cap. ' + chapterNumber eventRecord.recurrenceRule = null; }

We do not support change any data of record inside renderer. See docs here https://bryntum.com/products/schedulerpro/docs/api/Scheduler/view/mixin/SchedulerEventRendering#config-eventRenderer after IMPORTANT text.