Announcement

Collapse
No announcement yet.

Calendar StartDate > EndDate

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Calendar StartDate > EndDate

    Hello,

    Can anybody help me?

    if i changing the StartDate in Calendar, i will that the EndDate has the same value like StartDate automaticly.

    Is this possible? when yes, how?

  • #2
    Solved with a new field and a query!

    Because of lack of interest of the community, I write no further details

    Comment


    • #3
      In my case i do not use end date at all, keep it empty
      all events on the same date.
      you solution could interesting for future projects, please share.

      Comment


      • #4
        Automatic end Date and Time

        In the Calendar Form, i have a field "AutoEndDate with Yes or No". An other Field with the Duration of the event

        The Fields of the end of the event, are in a block. if AutoEndDate is "yes" the fields for the end of event resp. the Block was hidden.
        if its no the Block for the fields for the end of the event is shown

        i have a script in the event onBeforeInsert.

        if({AutoEnd} == '1')
        {
        {EndDate} = {StartDate};
        {Sum_Quantity_and_Duration} = {Quantity}*[global_EventDuration];
        {CalcQuantity} = {Sum_Quantity_and_Duration}*60;
        $timestamp = strtotime({StartTime}) + {CalcQuantity};
        {NewEndTime} = date('H:i:s', $timestamp);
        {EndTime} = {NewEndtime};
        }
        else
        {
        .....................
        }


        the global_EventDuration is a variable that i set if the Project is loading "in the main menu"
        Last edited by salvatore@reinemuth.ch; 11-13-2017, 08:53 PM.

        Comment

        Working...
        X