Getting Data out of Angular ui-grid - angular-ui-grid

A question:
Does anyone know how to get data out of angular ui-grid in the currently displayed sorted order?
I found out how to access data out of the grid using gridApi.grid.rows, but those rows do not appear to be sorted per the current sort order applied to the grid.
I feel like the grid is taunting me...showing me data in sorted order, but refusing to allow me to access it! Help!

Have you tried gridApi.grid.sortByColumn(gridApi.grid.rows)?

O Sean that's hot.
But will that re sort the data? Ideally id just be able to get at the data in its already sorted state.

Related

How to move a checkbox with a row in google sheets with data sorted using SORT?

I am currently a college student who was trying to make a dynamic google sheet where my data is organized. The premise is as follows:
I input raw data into one spread sheet titled "Raw Data"
That data from raw data is automatically sorted by date using the SORT function to keep it dynamically updated.
If an item in the organized data is checked, then the row turns gray and updates into a corresponding chart.
My problem is that as I add or edit data, the checkbox is stuck to the row. In the first picture, you see the normal data as is.
organized spreadsheet data using a SORT function
However, lets say I add a due date for an assignment on 1/31/23. Then this happens.
Spreadsheet data following SORT function modified to show problem
So overall, my question is how can I lock a checkbox to a specific row so if the row is moved, the checkbox moves with it? If it is needed, I have a public link to the spreadsheet if it helps understand the problem:
Public Spreadsheet 1/31 for Clarification
I currently tried several data validation rules but most of them simply locked the cell from being edited if it was checked.
I also tried modifying the RAW data and adding a checkbox there before the sort function refreshes but that negates the point of the sheet at all then.
I was not sure how else to go about it trying to lock it into that place. Also, I was not sure how to upload as a MARKDOWN text table so I figured an image would suffice for the problem.

How can I receive the right data with a query that contains a filter and child columns

I want to receive orders with some data based on the date, this works fine until I add an nested expand to an expanded column combined with the data filter on the parent.
odata/SaleOrder?$filter=DateDelivery gt 2022-09-01T00:00:00.000Z&$top=10&$expand=Customer,OrderRules($expand=Product)
When I'm using another filter it just works fine:
odata/SaleOrder?$filter=Number eq 'VK20200310074'&$top=10&$expand=Customer,OrderRules($expand=Product)
Can someone explain what I'm doing wrong or does someone have a suggestion?
Thanks in advance.
It seems I fixed it by selecting some properties of Products.
I am still not sure what went wrong, but at least I can continue.
odata/SaleOrder?$filter=DateDelivery gt 2022-09-01T00:00:00.000Z&$expand=Customer,OrderRules($expand=Product($select=Oid,Name,Description))

Change/Rename Cell content after Query

Thanks in Advance,
I'm collecting Data from Google Forms into a spreadsheet and filtering the data by using a query.
one of the form inputs, has a long description because its a question.
I'm trying to change/rename it after the Query much like you can set a new value to an object key in JS
is it possible in sheets,
cheers
Sheet
You can use:
=QUERY(A1:C5,"Select 'Online',B,C label 'Online' 'Where Did the leads come from'",1)

Read values from looping angular tabular column

I have an angular table where table rows and columns are developed from ngfor loop.
As shown in image my table is currently.So when i clicked on save button we need to iterate through each table row and read the values present in each td and need to store them in object.so please tell how to do develop logic in angular.
You can do this using formGroup easily.
See this example,
Table data binding example
Hope this example will give you a better understanding rather than explaining all with words.

Link columns so data updates are properly reflected

I have a column with data values and I want to link it to other columns in the same and different sheets but in the same spreadsheet. This is, having the same data in different columns in a spreadsheet while keeping all linked so updates on the source one would affect all of them.
I've tried with:
=SheetName!ColumnIndex:ColumnIndex
(e.g. =Sheet1!A:A) but, although it works, it is a cell reference not a column reference.
What is the best way to achieve it?
Maybe what you want is just the array version of what you have already tried:
=arrayformula(Sheet1!A:A)
(If not, please clarify!)

Resources