search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Resolve resource id to resource name on rangeselected

Asked by Simon
8 years ago.

How do I obtain a resource name from a given resource id in javascript?

For instance - I've rendered a scheduler in a view like so:
TimeRangeSelectedJavaScript = "rangeSelected(start, end, resource)",

In my rangeSelected function I want to get the resource name from the resource(id) passed in as argument.

Is this possible, or do I have to manually retrieve the resource name via a custom ajax call etc?

Answer posted by Simon
8 years ago.

Answer is here:

That is - find the resource via dps.resources.

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.