This topic is locked

Hide columns until clicked

6/10/2011 3:41:44 PM
PHPRunner General questions
I
itmanusa author

Hi guys,

hope someone can help me or point me in the right direction.
I have a table that has over 50 columns. What I am looking for is that on the list page only first 3 columns from the table will be visible. I want to be able to add a button, when clicked will show the next 5 columns, 2nd button to click and show next 5 columns and so on. This way the user can choose to see which columns they need. The columns that I don't want displayed until clicked holds daily time in and time out info. So only need to see one week's worth of data at a time.
Any help will be appreciated.

P
procheck 6/14/2011

Hi,
Since nobody has responded to this, I can provide you with an idea to try. First you need to be able to determine if a column is hidden or not. You will need to check the manual and/or this forum for that. If this is not possible then you will need to set up some variables to keep track of this.
I think I would only use one button unless you have a specific reason to use two. When you click on the button you hide the first 5 columns and on subsequent clicks, the next 5 etc..
There is a section in the manual to hide columns. I know this might be a bit vague to a new programmer so let me know if you have any specific questions.
Al