hi
i have 30 items in grid and one to update row 15. but the api doesn't have update() method. is there a way to do it?
Hello Kevin,
You may want to have a look at the script reference documentation http://help.autodesk.com/view/PLM/ENU/?guid=GUID-BBBBAB3B-FEAE-4EB7-8D1B-29E76EC6BC65 (search for "item Grid array")
Here is the extract that you are looking for:
You get and set Grid row properties through field IDs the same way you access Item Details fields (for example, item.grid[0].DESCRIPTION).
Example below: I added the first line so you can know how many rows are in your grid (should you need it). The second line is where I update the first grid row's field QUANTITY_ON_HAND.
var gridSize = item.grid.length;//Get the number of rows in gridtab item.grid[0].QUANTITY_ON_HAND = 200;//Updating the field value on the first grid row