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

Scheduler getRow renamed to $68

Asked by Viktor Eriksson
11 years ago.

Was using the dps.getRow function to get a resource given some coordinates.
But this function now seems to be obfuscated.
Not part of API anymore ?
What should I use to get a resource given some coordinates ?

Answer posted by Dan Letecky [DayPilot]
11 years ago.

This method was internal and is now hidden.

You can use the following method to get information about a cell under certain position:

var cell = dps.cells.findByPixels(120, 1)[0];
var start = cell.start;
var end = cell.end;
var resource = cell.resource; // id

It is available in Java since build 7.5.8331 (see the sandbox at http://java.daypilot.org/sandbox/).

This is an extension of the existing .cells API which allows you to read and update the cells:

dps.cells.findXy(0,0).html("first cell");
dps.cells.find("2013-10-07", "A").addClass("highlighted");

Comment posted by Viktor Eriksson
11 years ago.

Nice, thanks.
Is it possible to get a release under customer area every time a new version is built ?

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