Get Children of Parent Row - smartsheet-api

Is there any way to get all of the children of a parent row? The only method that I see, is to grab all of the rows and look at the parentId's assigned to the children.
(For what it is worth, I am using the javascript api)

I don't believe it's currently possible to explicitly request all child rows of a specified row, using the SmartSheet API.
As you've described in your post, you'd need to use the Get Sheet operation to get the list of all rows in the sheet, then look for row objects in that result set where parentId matches the id of the parent row you're interested in.

Related

MUI DataGrid ColumnDef: the row is not available on the valueOptions prop of the column definition

I am using a DataGridPro component with different columns.
One one the columns is defined like this:
This issue is that I am trying to understand why the row is not available in the valueOptions prop of the column definition.
I would like to be able to populate the choices based on a list that is available on the row in another field.
But I get this error when I try to read the row:
Can you please help? The grid is populated with lots of rows coming from an api fetch.
Every other column is working fine accept this one.
Thank you.
I discovered that it was my bad. My column object was used twice with different parameters and so, yes, the row was not available for the second case.

Can you add a column to show the Parent of a Work Item in a flat list Azure DevOps query?

In DevOps, I'd like to have a flat list query of work list items, and the parent of that work item in a separate column. While tree view works in retrieving a hierarchy of parent items filtered by the child item, I'd simply like a flat list of tasks with a User Story/Bug column to the right (possibly even the feature of that User Story/Bug in another adjacent column). I can't find anything in the DevOps documentation to accomplish this. Can someone push me in the right direction?
Can you add a column to show the Parent of a Work Item in a flat list DevOps query?
I am afraid you could not add a column to show the Parent of a Work Item in a flat list DevOps query. That because there is no Parent id column in the column options.
You can custom a field (like Parent Id) in the work item when parent was assigned, like:
We can sort via the custom fields and get a list of all the parent work items first.
Besides, there is a similar user voice about it, you can vote and add your comments for this feedback. When there are enough communities vote and add comments for this feedback, the product team member will take this feedback seriously:
~~"Parent ID" as Column Option in Queries~~
The feedback suggestion that has the most votes is this one: Add “Parent” column to Queries as well
Hope this helps.

How to get list of rows of selected sheet in Smartsheet using REST?

I'm trying to get list of rows of selected sheet. I went for REST API for rows List of row's related calls but didn't get any resource to get list of rows.
How can I get list of rows? or the REST call have not been written yet.
You can get a list of rows by using the Get Sheet operation. The response will contain the list of rows in the sheet, the list of columns in the sheet (which you'll need to interpret the cells data within the rows collection), along with sheet-level properties and any other data you've requested by using the include parameter.

Grouping expand and collapse in GWT

I have multiple records which needs to be displayed as part of a search. A single result can contain multiple records associated to it. If there are multiple records I need to display the record with (+) and when clicked it further displays the list.
I would like to know what the best way is to implement ( I have checked Custom data grid ex: http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCustomDataGrid but would like to use UI binder)
Once the user selects a record from the expanded list, how can we load that selected record?
Any pointer are appreciated..! ( Currently on GWT 2.2)
Widget list
Tree or maybe StackPanel seems like it would be useful here.

GWT: get backing object for row by id in table

Is there any simple way to get the object, used to render given row in CellTable, by index of the row?
I am using AsyncDataProvider, and don't want to remember lists of data objects, returned from the server. Also I am using MultiSelectionModel, so several items could be selected there and I need to track out which one was clicked last.
I know the index of last clicked row, so I need to get the object, corresponding to the row, somehow.
getVisibleItem? possibly combined with getPageStart if you're using paging and you only know the absolute index.
For your use-case, maybe you could use a customized selection model whose setSelected tracks the last change.