I'm pretty new to the JavaScript API and still have trouble translating legacy to AMD. I try to implement the "Show find task results in a DataGrid" sample into my application, but since it is written with legacy I am having trouble implementing it into my AMD style application.
Does anybody use this sample with their AMD application so I can take a look or maybe look at my application and see the mistakes I made?
in the console, an uncaught exception was being thrown when trying to call grid.getItem() because 'grid' was not defined. comparing back to the original sample, i could see that we need to dig into the object returned by the event itself for our grid, so:
var clickedTaxLotId = grid.getItem(evt.rowIndex).PARCELID;
//needs to be
var clickedTaxLotId = evt.grid.getItem(evt.rowIndex).PARCELID;
sorry about that, not sure how i missed it the first time.