Today, I am back with a new requirement, where I was asked to display the record on the calendar view, based on the date when the record was created for the specific entity.
To fulfill this requirement, I created a CRM Solution with the help of one of the open source JavaScript libraries (FullCalendar).
The solution contains a Web resource "pankaj_calendarControlForAnyEntity", which can be placed on any entity form with some parameter and is able to view the record in calender.
End result will look, as given below:
Steps to configure the Web resource properties are:
Step 1. Insert a Web resource on the form and configure it, according to this screen shot.
Step 2. You need to take care about the parameter, which needs to be passed to the Web Resource.
Format of the parameter :- parameter1,parameter2,parameter3,parameter4,parameter5,
- parameter1 (Required) -Schema name of the entity on which the calender control is being used.
- parameter2 (Required) - Schema name of the date field, which we want to display the record.
- parameter3 (Required)-Schema name of the string field, which is used as display name for the record.
- parameter4 (Optional)-Schema name of the field, which will be used as a filter field for the entity.
- parameter5 (Optional) - Value, which will used as a filter for paramter4 .
The example of above used Web resource parameters is:
"contact,createdon,fullname,fullname,aa" will fetch all the active records from contact Entity, where fullname contains "aa". Field to be displayed on the calendar will be "fullname" and the cell to be displayed on the start day, the record was "createdon".
Note: This control allows you to add it for any entity for any condition with any field as a display name.
You can download the solution from this link,
I have added a Unmanaged solution, which will allow you to enhance/edit the control, according to your requirement.
I recommend you to go through this http://fullcalendar.io link to get the methods of the calendar control.
Hope, this will help you to create a calendar control for your specific entity. Feel free to comment, if you have any question or need help to enhance the control.