Google Sheets Data Validation Warnings When Using Relative Paths with Filter View - arrays

[Update 1] This appears to only happen when using a filter view
[Update 2] Link to sample sheet: https://docs.google.com/spreadsheets/d/15eIm2ldEvgcoImTxB6Ik7c8AEJ3bhPzttpRUszN_Jvc/edit?usp=sharing
I have a sheet where I need to use data validation to create dropdown lists that change by row. The dropdown list options are maintained using cells on the same row (i.e. row x's options are also maintained on row x). I'm using "Data Validation -> List from a range" with the following formula for the cell on row 3:
=Options!$B3:$E3
As you notice, I'm keeping the row path relative so that the dropdown list changes from row to row. The formula for the cell on row 4 is therefore:
=Options!$B4:$E4
This works correctly in terms of what appears in the dropdown lists. The problem is that Google Sheets complains about the inputs I select saying the input data is invalid (even if I select it from the dropdown list). There are no circular dependencies between the validated cells and the ranges containing the dropdown list items.
The only way the warnings go away is if I use absolute paths (i.e. $B$2:$E$2). However, this makes it difficult to copy/paste the cell and data validation to other rows.
Any idea how I can fix this?
The data is supposed to be text, and I've formatted both the ranges of items and the column where I'm using data validation as plain text.

if you want to use filter view with sorting capabilities...
right now you are doing dropdowns from F:H range which is dynamically based on E column. what you need to do is to make it static like J:M range and then create a dropdown from K:M. this way if you sort or filter the A column the data validation won't throw any errors:

Related

How to retain sorting order of columns in sencha grid

I have a grid with few columns which are sortable. Currently if user clicks on any column, it gets sorted, and at the same time grid clears existing sort. I want grid to retain the sort of existing column as well.
Here is the fiddle: https://fiddle.sencha.com/#view/editor&fiddle/3mg5
You can use multiColumnSort config on your grid. By doing it this way your grid will not clear the existing column sort option. However, you should also give option to user to clear the sort state.
Here is the working solution - https://fiddle.sencha.com/#view/editor&fiddle/3mg6

How to hide/show ui grid rows based on search condition

So I have been struggling with a problem involving a ui-grid that I have implemented. We have a complicated search for a table where a user can search for IDs for employees and they can also search IDs for companies. There are textboxes corresponding to employee/company ID so the user knows where to start typing. Right now, I am conditionally swapping the column visibility based on where the user begins typing (employee ID hides company columns as an example). However, I need a way to also hide the company/employee rows because the columns are showing empty values and are displaying when the user has nothing in the search box.
Research: I am toggling the columns based on an answer I found where I am just changing column visibility, but it seems there is no row visibility option. However, the only row hiding functionality seems to be checking against a static value and in this case it needs to be dynamic.
I am considering just using two different grids and toggling visibility based on the search boxes typed in, but I was trying to see if I could use just one grid.
Any help would definitely be appreciated.

Insert data in ADF table cell by cell

I am working on ADF application.
I have table and I need to insert data into it cell by cell and column by column in order.
For example:
on start, all cells should be disables except only one cell (the first cell at YearworkDegree column)
if user entered value for that cell it should open below cell.. etc
after finishing YearWorkDegree column it should open first cell from the second column MidtermDegree and so on.
Is there a feature in ADF I can use in that case, or should I think in JavaScript to handle that case.
You can set the properties of one field to be dependent on the other and set partial page refresh between the two - so when you change the value in the first - the second on becomes enabled.
That being said - doing this is going to cause a lot of chattiness to the backend server (on each field change).
So you basically need something like tab navigation between cells but in a different order (downwards). There is no integrated functionality for this in ADF, you have to do it by yourself by writing a custom JS handler.
Please check this example
You can then modify it for your needs (making only the current cell enabled for editing, etc).

uiGrid switch rows and columns

This is a bit of a general question into the possibilities of ui grid. I have had tremendous success with ui grid thus far. Now I have a use case where I want to switch the rows and columns of the grid.
Basically, I would like the headers to be displayed 'vertically' in the first column and to have the rows become columns.
Is this possible with ui grid?
As far as i know UI-grid doesn't support this. I doubt if you can do that. May be try building ColumnsDef and Data dynamically and pass it to gridOptions. Or else add extra column and this should be the first column where you will pass all the header values. Change the background of the cells to look like header cells. Now add second column where you pass the entire first row values. Hide the original header row completely. see now u got your required grid........ :)

Grid not updating upon change in model in angularjs

Folks,
I am using ng-grid to display a list of items.
I want to give my users ability to rearrange the rows in the list.
i.e move the rows up and down as they please.
Now,
However when I update the grid data in the backend i.e say change the index of a particular row, that row does not automatically change locations in the front-end.
What am i missing here ?
I have created a plunker to describe the problem
http://plnkr.co/edit/s1hrTSqF2zeZo3Btaln0
The grid doesn't use the index of the array to order it, so even if you are changing it, because the data is still there nothing happens.
What you could do is define an order field and update the value then changing the values as shown in this plukr. The order field you can hide it from the grid if required using columnDefs to explicitly defined which column should be shown.
Regards

Resources