Document toolboxDocument toolbox

1.4.2. Search in resources or events

Overview

The Scheduler is fully responsive to changes made within the Mendix platform meaning you have the ability to search for resources and events from outside of the widget. Making it easy to configure and customize to meet the specific needs of your application.

Changing the shown resources and events on the fly can also help you to define presets for particular use cases or users, all on a single page that can be triggered by Mendix logic. For example, if you want to view resources and events related to a specific section of your business on the fly from a dropdown.

For an example see: search in events and resources

 

Implementation

There are multiple ways to create a custom search functionality. One simple approach is to add a search attribute to the scheduler context for both events and resources. After that, you can create a data source microflow or nanoflow for your resources and events, which uses this attribute in an xpath query. To illustrate, for events, the xpath query may look something like this:

[contains(TitleHtml, $SchedulerContext/SearchEvents)]