Skip to main content

Featured

[XrmToolBox] Use FetchXML Builder

FetchXML Installation : XrmToolBox 1. Open XrmToolBox And Find FetchXML Builder 2. Start FetchXML Builder 3. Click the fetch from node 사용은 Top 또는 Paging 둘 중 하나만 가능 Paging size : 한 페이지에 보여줄 레코드 개수 Dstinct : 페이지에 보여지는 레코드 중복 제거 No-lock : 테이블 lock 거는 것을 풀어줌 (조회 할 때 퍼블리시되지 않은 값도 들어올 수 있음) Page : 페이지 (미입력시 1 페이지) 4. Click entity form node 조회할 Entity Name을 선택 후, Select Attributes 클릭 조회할 Entity의 Attirbute를 선택하여 확인 link-entity 클릭 Relationship을 클릭하여 링크할 관계 선택 후 결과

FullCalendar basicweek date number not display issue

i try to use FullCalender for my work. (use fullcalendar v3.9.0

And i need to just showing one week.

so.. i use a basicweek.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
$("#currentweekcalendar").fullCalendar({
                header: false
                , locale: "ko"
                //, defaultView: 'basicWeek'
                , defaultView: 'basiconeWeek'
                , views: {
                    basiconeWeek: {
                        type: 'basic'
                        , duration: { weeks: 1 }
                        , columnHeaderFormat: "dddd"
                        , buttonText: 'Two Week'
                        , dayCount: 6
                    }
                }
                , contentHeight: 150 //'auto'
                , eventClick: function (calEvent, jsEvent, view) {
                    //callEvent : JsonData(events)
                    alert('Event: ' + calEvent.title);
                    alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY);
                    alert('View: ' + view.name);
                    // change the border color just for fun
                    $(this).css('border-color''red');
                }
                , navLinks: false // can click day/week names to navigate views
                , editable: false
                , eventLimit: true // allow "more" link when too many events
                , defaultDate: new Date().toDateString()
                , events: [
                    {
                        title: "Birthday Party",
                        start: "2018-03-27T07:00:00",
                        end: "2018-03-29T23:00:00"
                    }
                    // more events here
                ]
            });
cs


but it doesn't display date number in cell, date number only show 2 row or later grid. actually i tested.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
$("#nextweekcalendar").fullCalendar({
                header: false
                , locale: "ko"
                , defaultView: 'basictwoWeek'
                , views: {
                    basictwoWeek: {
                        type: 'basic'
                        , duration: { weeks: 2 }
                        , columnHeaderFormat: "dddd"
                        , buttonText: 'Two Week'
                    }
                }
                , contentHeight: 300 //'auto'
                , eventClick: function (calEvent, jsEvent, view) {
                    //callEvent : JsonData(events)
                    alert('Event: ' + calEvent.title);
                    alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY);
                    alert('View: ' + view.name);
                    // change the border color just for fun
                    $(this).css('border-color''red');
                }
                , navLinks: false // can click day/week names to navigate views
                , editable: false
                , eventLimit: true // allow "more" link when too many events
                , defaultDate: new Date(new Date().getTime() + 7 * 24 * 60 * 60 * 1000).toDateString()
                //, columnHeaderFormat: "M월 D일 dddd"
                , events: [
                    {
                        title: "Birthday Party",
                        start: "2018-04-10T07:00:00",
                        end: "2018-04-11T23:00:00"
                    }
                    // more events here
                ]
            });
        });
cs


so condition will be true if row count > 1

this condition placed 6811 line (for v3.9.0)
1
return this.rowCnt > 1;
cs
to

1
return this.rowCnt > 0;
cs

in min version find 
1
e.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>1}
cs
and change to
1
e.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>0}
cs

ok, then i tested and it worked!



Comments

Popular Posts