@edwingross306

@edwingross306

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: WindowCustomizationFuction Edit Repeating Event #102667
    Ede Gross
    Participant

    Nervermind I figured it out, it is also marked as an “exception” in the dataSource.

    Sorry for bothering

    in reply to: WindowCustomizationFuction Edit Repeating Event #102664
    Ede Gross
    Participant

    How would the dataSource look like after editing?

    E.g. I have this repeating event.

    <span class="pun">{</span><span class="pln">
                    label</span><span class="pun">:</span> <span class="str">'Google AdWords Strategy'</span><span class="pun">,</span><span class="pln">
                    dateStart</span><span class="pun">:</span> <span class="kwd">new</span> <span class="typ">Date</span><span class="pun">(</span><span class="pln">currentYear</span><span class="pun">,</span><span class="pln"> currentMonth</span><span class="pun">,</span> <span class="lit">10</span><span class="pun">,</span> <span class="lit">9</span><span class="pun">,</span> <span class="lit">0</span><span class="pun">),</span><span class="pln">
                    dateEnd</span><span class="pun">:</span> <span class="kwd">new</span> <span class="typ">Date</span><span class="pun">(</span><span class="pln">currentYear</span><span class="pun">,</span><span class="pln"> currentMonth</span><span class="pun">,</span> <span class="lit">11</span><span class="pun">,</span> <span class="lit">10</span><span class="pun">,</span> <span class="lit">30</span><span class="pun">),</span><span class="pln">
                    allDay</span><span class="pun">:</span> <span class="kwd">true</span><span class="pun">,</span><span class="pln">
                    backgroundColor</span><span class="pun">:</span> <span class="str">'#F57F17'</span><span class="pun">,</span><span class="pln">
                    repeat</span><span class="pun">:</span> <span class="pun">{</span><span class="pln">
                        repeatFreq</span><span class="pun">:</span> <span class="str">'weekly'</span><span class="pun">,</span><span class="pln">
                        repeatInterval</span><span class="pun">:</span> <span class="lit">5</span><span class="pun">,</span><span class="pln">
                        repeatOn</span><span class="pun">:</span> <span class="pun">[</span><span class="lit">0</span><span class="pun">,</span> <span class="lit">2</span><span class="pun">,</span> <span class="lit">5</span><span class="pun">],</span><span class="pln">
                        repeatEnd</span><span class="pun">:</span> <span class="kwd">new</span> <span class="typ">Date</span><span class="pun">(</span><span class="pln">currentYear</span><span class="pun">,</span><span class="pln"> currentMonth </span><span class="pun">+</span> <span class="lit">2</span><span class="pun">,</span> <span class="lit">24</span><span class="pun">)</span>
                    <span class="pun">}</span>
    </span>For example I want the second weekly occurance to only be on Sunday and Friday instead of Sunday, Tuesday and Friday. How would this array then look like?
    • This reply was modified 2 years, 11 months ago by Ede Gross.
    in reply to: WindowCustomizationFuction Edit Repeating Event #102659
    Ede Gross
    Participant

    It works, but I still have a question.

    I still want to use the windowCustomizationFuction, but I want to know how to save the event.

    E.g. I have a series named “XYZ” which occurs 5 times, but I want the 3rd time to be one hour later.

    I am working with a database and I want to know, if I can change the date or name of another Event and save it?

    in reply to: errors while installation #102384
    Ede Gross
    Participant

    I actually used your code
    views: object | SchedulerViewType[] = [
    ‘timelineDay’,
    { //Custom view definition
    label: ‘Timeline Work Week’,
    value: ‘workWeek’,
    type: ‘timelineWeek’,
    hideWeekend: true },
    ];
     
    and it says
     
    Type ‘SchedulerViews[]’ is not assignable to type ‘SchedulerViews’.
    Type ‘SchedulerViews[]’ is not assignable to type ‘”timelineMonth”‘.
     
    I also used
    views:(object | SchedulerViewType)[] = [{ label: ‘Work Week’, value: ‘workWeek’, type: ‘week’, shortcutKey: ‘W’ }, ‘month’];
    and
    views = [{ label: ‘Work Week’, value: ‘workWeek’, type: ‘week’, shortcutKey: ‘W’ }, ‘month’] as SchedulerViews[];
     
    Same Error, the smart.scheduler.d.ts only accepts “SchedulerViews” for views and no Arrays
     

    in reply to: errors while installation #102379
    Ede Gross
    Participant

    If I “npm i smart-webcomponents-angular ” views is still the type SchedulerViews and not SchedulerViews[], so it still doesn’t work for me.

    in reply to: errors while installation #102377
    Ede Gross
    Participant

    All these suggestions are still not working because it always says
    Type ‘SchedulerViewType[]’ is not assignable to type ‘SchedulerViewType’.
    So how can i give more views

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