This code enables you to hide and show your table columns. If you have very wide tables then this is going to be really helpfull. So here’s how it works.
Awesome @Johnny_Appknowledged_UK - that looks like a really elegant and simple solution that should completely solve one of my client app issues with very wide tables.
Looking forward to giving it a try.
Thanks Johnny, I had a quick go and it sort of works. Do the columns in the view need to be in the exact same order as the fields in the table? The reason I ask is that the filter appears in the view but then the columns that hide/unhide don’t match the words in the columnButtons. For example, I might select column 1 but column 2 disappears.
Might be something I am doing wrong but just wondered if you have wrestled with this.
Hey @patrick3 I’m not quite sure if I’ve understood the question. The columns represent the fields in the cells?
The code was created in a very simple app with no other code or views etc. You could have potential other things that might effect it. Can I ask do you have another table on the same page?
Grate code, one question.
If you hide colum and then open new view from a filed in the table and after returning to the table view again from the form, all colums are in default state showing and you have to turn off all colums again.
Would be nice if you could remain the same filtering of colums when you are returning back to the table view. That means the filtering will remain unchanged until you change filtering manually.
Hey everyone, I hope you’ve been enjoying these code snippets. I wanted to let you know that all of my code is now available on my new platform, Appknowledged. Appknowledged has taken over from KnackMods. I encourage all of you to sign up—it’s completely free—and you’ll have access to all of my free content.