Getting Item id from custom context method on Tree Grid View
Hi,
I have two new ItemTypes that i use to add project activities and tasks to the Part ItemType like this:
I have created a new query definition and tree grid view to display the structure on a new tab on the Part:
I have also created a custom context menu item with corresponsing method that is intended to set the Done property on the selected task.
The issue i am struggeling with is that i cant get the Item id of the selected row.
[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:cdb7d76d-02e5-42c4-96a0-74ad83b5e671:type=javascript&text=var%20taskItem%20%3D%20aras.newIOMItem%28%27Task%27%2C%20%27edit%27%29%3B%0D%0Avar%20tgvContext%20%3D%20inArgs.contextParams.tgvContext%3B%0D%0Avar%20tgvGrid%20%3D%20tgvContext.grid%3B%0D%0Avar%20tgvGridData%20%3D%20tgvContext.getGridData%28%29%0D%0A%0D%0Avar%20dataObject%20%3D%20tgvGridData.focus%5B0%5D.row.cells%5B0%5D.data%3B%0D%0Aaras.AlertError%28%22Result%3A%20%22%20%2B%20dataObject%29%3B]
as shown from the output i get "INVALID_ID_VALUE"
Hope somebody can assist here.