Starting Week On Saturday

Arturo Iacobelli's Avatar

Arturo Iacobelli

10 Jan, 2017 08:47 PM

Is it possible to start the week on a saturday?

  1. 1 Posted by Arturo Iacobell... on 10 Jan, 2017 10:26 PM

    Arturo Iacobelli's Avatar

    Figured it out. Go to config.js Line 59 enter the Day of the Week you would like calendar to start on...0 = Sunday...6= Saturday.

  2. Support Staff 2 Posted by myFMbutler on 12 Jan, 2017 10:32 AM

    myFMbutler's Avatar

    Hi Arturo,

    Thank you for keeping us updated !

    Best regards,

    Vincent M

  3. myFMbutler closed this discussion on 12 Jan, 2017 10:32 AM.

  4. Arturo Iacobelli re-opened this discussion on 12 Jan, 2017 05:05 PM

  5. 3 Posted by Arturo Iacobell... on 12 Jan, 2017 05:05 PM

    Arturo Iacobelli's Avatar

    Oh and you have to switch the FMeventcalsarray to otherwise nothing will appear on Saturday or Sunday..

    /*
    --------------------------
    La Source multimédia

    20140312 - 1.1 FM2FMSqlDate date formating removed
    201312xx - 1.0

    FMcalEventsArray ( _cal ; _date ; _view ; _index )

    SQL queries fecthing events for each displayed calendar

    _cal: calendar's id
    _date : navDate
    _view : current view
    _index : should be empty (used for recursion)

    --------------------------
    */

    Let([

    // day
    _dayView = _date ;
    _dayViewSQL = FM2FMSqlDate ( _date ) ;

    // week
    _weekFirstDay = If (
    DayOfWeek ( _date )= 7;
    _date;
    _date - DayOfWeek ( _date )
    ) ;

    _weekLastDay = _weekFirstDay + 6;

    // month
    _monthFirstDay = Date(Month(_date) ; 1 ; Year(_date) ) ;
    _monthViewFirstDay = If (
    DayOfWeek ( _monthFirstDay ) = 7;
    _monthFirstDay ;
    _monthFirstDay - DayOfWeek ( _monthFirstDay )
    ) ;

    _monthViewLastDay = _monthViewFirstDay + 41

    ];

    FMcalEvents (

    Case ( _view = "month" ;

    ExecuteSQL (
    "SELECT id,title,DateStart,TimeStart,endDate,endTime,allDay,url FROM event WHERE Resource=? AND endDate >= ? AND DateStart <= ? " ;
    "|" ;
    "¶";
    _cal ;
    _monthViewFirstDay ;
    _monthViewLastDay
    );

    _view = "agendaWeek" ;

    ExecuteSQL (
    "SELECT id,title,DateStart,TimeStart,endDate,endTime,allDay,url FROM event WHERE Resource=? AND endDate >= ? AND DateStart <= ? " ;
    "|" ;
    "¶";
    _cal ;
    _weekFirstDay ;
    _weekLastDay
    );

    _view = "agendaDay" ;

    ExecuteSQL (
    "SELECT id,title,DateStart,TimeStart,endDate,endTime,allDay,url FROM event WHERE Resource=? AND endDate >= ? AND DateStart <= ? " ;
    "|" ;
    "¶";
    _cal ;
    _dayView ;
    _dayView
    )
    ) ; "" )

    )

  6. Support Staff 4 Posted by myFMbutler on 15 Dec, 2017 11:06 AM

    myFMbutler's Avatar

    Your ticket will now be closed.

    Reason : No activity detected.


    If the problem you encountered has not been solved yet, feel free to reopen your ticket.
    If that is the case, provide an update about the resolution of your problem.

  7. myFMbutler closed this discussion on 15 Dec, 2017 11:06 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac