function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Meenakshi T RMeenakshi T R 

VF page suggestions

I have a requirement. I have a Contract object which Contract start date and end date created and Active checkbox for Employees(from Employee object). I have a Custom VF page where I need to select a month and year and based on my selection all the employee names with active contracts in the particular month should come up and I need to select to which all employees should I run a batch job which calculates the salary proposal and it attached to the related list of contract object dynamically. Any ideas??
ShirishaShirisha (Salesforce Developers) 
Hi Meenakshi,

Greetings!

Basically,you are looking for custom search operation which should display the records based on the Month and year of the created date. This will be difficult since,you need to split the createdDate into the Month and Year and then compare it with the values that you have given on the search functionality.

Please find the sample code for search on Visualforce page and you can make changed accordingly.

https://developer.salesforce.com/forums/?id=906F0000000BW9GIAW

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
Meenakshi T RMeenakshi T R
Hi Shirisha,

Thank you for your reply. Nice Idea. Looking for examples to implement this.

Meenakshi