-
-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing the Show Column value via API #970
Comments
There is a bit more complicated, and requires two actions. One to update All of this is reaching into the internals a bit, so there is risk it would get changed over time, but it's been stable. For both the reference column you are changing, and for the visible column, you'll need their integer ID (
For example, in the template in https://templates.getgrist.com/doc/afterschool-program, to change the
|
Thanks @dsagal , I feel like I'm getting closer... Let me walk you through what I have.
To confirm:
|
Ah, try |
Thanks, all working now! Love what you guys have created here, so much potential. |
In Grist-electron, I'm trying to change the Show Column value of a Reference column. Using PATCH columns, I'm attempting to update the visibleCol field to a new value.
In order to find out what the correct value might be, I'm using GET columns to retrieve the current visibleCol integer value.
The problem I'm having is that changing the visibleCol value only changes the Show Column dropdown value. The column itself remains unchanged. Even refreshing the page shows the correct value in the dropdown with no effect on the table.
How is the column value changed? And how is the visibleCol value derived for each reference column?
The text was updated successfully, but these errors were encountered: