Gets the item with the specified id.
Namespace: MindFusion.Scheduling
File: Schedule.js
SyntaxJavaScript
Copy Code
|
|---|
function getItemById (id, [occurrenceIndex]) |
String. The id of the item.
Number. The occurrence index of the item.
Item. The item; null if no item with the specified id has been found.
ExampleThe following code creates a new item for a birthday celebration that takes the whole present day. It provides the item with an id and then shows how to search for this item.
JavaScript
Copy Code
|
|---|
var p = MindFusion.Scheduling; var date = p.DateTime.today(); // create a new item var bItem = calendar.schedule.getItemById("birthday"); |
See Also