Tablesorter : columnSelector default hidden WITH columnSelector_saveColumns:true - hide

I have the same problem as in this post. My table shows several information such as the sector of a company. A sector can be classified in 4 levels so depending on the user he might want a general sector or a very detail one (to compare companies with help of a dropdown filter).
As said by Mottie in the post mentioned above, using "columnSelector-false" does work but as long as I don't set columnSelector_saveColumns to true. But I want both... There is about 16 columns and so, the user might be interested by some columns and wants to hide some without unchecking them every time he comes back to this page within the same session.
If nothing is stored, the default value (3 columns hidden on my case) should be applied. Then the values is stored in memory (hidden) and this value is used until the user select the column via the columnSelector and then the visible value is stored in memory etc...
Isn't is possible to do like that with the plugin?
Is there something I can do ?
Thanks for your help.
I'm using tablesorter v2.28.8.
EDIT
After several test, I've decided to reinclude the Auto mode (which I had deactivated). Indeed it did exactly what I want. So it becomes :
columnSelector_mediaquery : true // Auto mode activated
columnSelector_mediaqueryHidden: true // Hide columns defined as columnSelector-false so I can decide what to hide by default.
But, I have a table with 16 columns (short width) : 3 are hidden by default, 5 are under a colspan.
Demo 1 (without colspan) : It works as I want (columns are saved while not in auto mode, and in auto mode I decide which columns to show to the user)...but no colspan.
Demo 2 (with colspan) : Once I have colspan the headers Type2 et Type 3 are not hidden in auto but 2 <td> have been hidden.
It's a bug, isn't ?
Thanks for your advice.

Related

creating a blank option on a drop down list option

Within Excel spreadsheet I would like to create a drop-down list with a blank space incase unknown information has to be inputted. I created a list for the most common information that is inputted but once in a blue moon rare information needs to be logged. Since the information is so rare and unknown it’s not possible to include it within the excel drop down box (since it’s unknown at the moment and will only be used once I therefore don’t want to add it within the drop-down list). I have created the list with a blank spot so I can type in the rare information in but when I click the blank information and try to type in the rare information a box pops up and says, this value doesn’t match the date validation restrictions defined for this cell. Is there a way to overcome this in Excel?
enter image description here
Also, once that problem is solved, I would also like to also have a drop list always present in the column (not just when the field is selected) and I did go to insert and symbols Wingdings 3: 128 but that didn’t work. Maybe it’s because I have included a blank slot in the drop-down list. What am I doing wrong? Thanks in advance.
I think a dropdown list can only have predefined values. If you need other potential values, you would need to add an additional column for that data. Maybe use an option of "Other" in the dropdown and have an extra column for unusual values.

Generate comboboxes depending on number inserted in first combobox

I'm doing an userform where in one of the fields (lets say its combobox1) the user is asked for the number of failures, and for each failure he has to put the type of failure, number of part and in another field the type of rework (3 fields to fill for each failure). And what I would like to know if that if it's possible to generate comboboxes depending on the number of failures made. For example: if the user puts 3 in the field of failures, 9 comboboxes should appear and so on.
I also think that maybe another way would be to have the standards 3 comboboxes and clear the fields each time the user press a button and a counter appears indicating which failure description he is filling, but I would also like to know how this could integrate into the whole userform, which already has a "submit" button.
Maybe there could be another reasoning for this, and I would greatly appreciate any help.
I don't really have much experience using dynamically created tabstrips, but they may be helpful with creating the layout you're describing. I would recommended in the base userform, include a tabstrip with a single tab and the 3 comboboxes/textboxes that are needed for a single failure. (You could keep it invisible until after "combobox1" has a value, if desired) Then use the number from the combobox to dynamically create the additional tabs on the tabstrip:
Private Sub ComboBox_Change()
'To remove previous tabs if combobox changed
For i = 1 To TabStrip1.Tabs.Count - 1
TabStrip1.Tabs.Remove(i)
Next i
'Adding additional tabs to tabstrip
For i = 1 To ComboBox.Value - 1
TabStrip1.Tabs.Add
Next i
End Sub
The tab currently selected can be identified by using the TabStrip1.Value property. I think the change event is queued by the TabStrip1.Value changing.
You will have to manually clear out any values when the tab strip changes (or fill back in values they previously filled out but want to view again).
However, since you'd be determining which tab you're on by "index" (the .value property) you could create a 2d array (redim it to correct rows/columns based off combobox1's value) and use the tab "index" to store combobox values and retrieve existing values for when the user switches back to an existing tab.
And maybe consider "locking" the combobox1 so the value can't be changed by accident. This could be accomplished by having a variable initialized to, maybe -1, which gets set to the combobox value after they've started adding infor to the incidents. Or don't remove any tabstrip tabs, only add if the number is greater than the existing count. (If you want them to put in whatever value they'd like, maybe consider using a textbox?)

How to hide a column in a list, dynamically in cognos?

Actually I'm working on Cognos 10.1 .
I have three prompts (Value prompt) in my report. All the prompts are optional. Based on the selections I wanna show the results. Each prompt corresponds to a column in the list. If the value is chosen in the prompt, it has to show the column. Else, it has to hide the column. We should not use conditional blocks or style variables. Please help me. Thanks in advance.
Yes - Here is how i did this before. I created a prompt page that allowed the user to pick the columns they wanted on the report via check boxes(true/false). Each check box represented a unique parameter name associated with a column you later want visible or invisible.
On the report page, the default state of the list shows all the possible columns. In order to conditionally hide the columns i created a Conditional Style(one for each column) and associated that with the list column/cell. The conditional style basically says hey if my param was not chosen false then set the "box-type to none which means it will not be rendered at all.
You do have to create a conditional style for each column, but when trying to make something flexible/dynamic and easy for the user its worth it. Mine also allowed dynamic sorting/grouping(up to 3 levels) for the same set of columns)
Thanks,
Tim

How to specify the width of site column in a list?

I have developed a list in SharePoint. While entering new item in it, like name, if I keep on typing it gets spread over a line making the width of cloumn spread over page. I want to limit the width of site column so as the column's value spreads over multiple lines instead of spreading over one. How can I do this setting?
This is not a setting you can configure in SharePoint. You will need to write some custom code using css and possibly javascript that will set the width of the column. You can make a change like this in SharePoint Designer.
You must use min-width (CSS) in your block.
You have to create custom XSLT for this. There you have loop all the column and need to specify the overflow:auto, hidden,.. CSS property. So it automatically get effect based on your internal name of the field.
So whereever you have the field it automatically get affected. If it for one single view you can use JavaScript to achieve this but this is not right way to do.
The data you are entering can be displayed in many ways. Today in a table format, tomorrow in a dropdown etc. You should distinguish between:
limiting the amount of data that can be entered in a site column (can be done in SharePoint alone, when you design your list)
limiting the wrapping of the words in a table cell today or trimming the values in a dropdown tomorrow (can be done using HTML/CSS "nowrap" if you display the list values in a browser app, or differently if you show the values in a WinForms app)

Dynamic Layouts in Filemaker

First off I am new to FM but I have a good handle on the basics. What I need to do is this - in a contact information type layout I want to be able to alter the layout based on a specific field. Ex. When the record is brought up, the background of the layout will change colors for a client, another for vendor, etc.
I tried to change a label based on a field, with no success. My guess is that the layout is static and only the data fields change.
We use FM Pro.
Thanks,
Mark
FileMaker layouts are static, but there are still some things you can do to alter the layout based on the values of fields:
Calculation Fields
If you want the data shown in an area to change, you can use a Calculation field. A typical example of this would be a status field. To do this you would add a new field to your table and use enter a calculation on that field like:
Case (
IsEmpty(myTable::myField) ; "Please enter a value for myField." ;
myTable::myField = "wrong value" ; "Please enter a correct value for myField." ;
"Everything seems okay."
)
Conditional Formatting
To make things like background color change you can use a conditionally formatted field. I will typically add an empty numeric field (for this example we'll call it emptyField) and set it so that it can't be edited during modification.
If you place emptyField on your layout, below all the other fields and disallow the user to enter the field in either Browse or Find mode, you can then use conditional formatting to change the field's color.
Portal Hiding
You can use this technique when you want some elements of your UI to disappear when they aren't needed. For example, if you want a "submit" button to appear only when all of the records on a field are filled out.
To use this technique I will usually create a Calculated number field, called ReadyForSubmit, on the original table and give it a logical calculation like:
not IsEmpty(field1) and ... and not IsEmpty(fieldN)
(Note that the value of the above function would be 1 or 0)
I will then create a new Support table in my database and add to it a field One with a calculated value set to 1.
I will then make a relationship between myTable::readyForSubmit and Support::One.
On the layout, create a portal with one row. Put your Submit button in that layout. Now, when readyForSubmit calculates to 1 the button will appear. When it calculates to 0 the button will be hidden.
Hidden Tab Browser
Finally, you can use a tab browser where you set the title font size to 1 point, hide the border, and control the browser programmatically. You can use this for having different field arrangements for different types of records. To do this you would first give an Object name to each tab of the tab browser, say Tab1, Tab2, Tab3.
Then you would add a script, goToTab, with the logic for when you want to go to each tab. Say:
If (myTable::myField = "corn")
Go to Object (Tab1)
Else If (myTable::myField = "squash")
Go To Object (Tab2)
End If
You would then use Script Triggers to run goToTab when On Record Load.
With the release of filemaker 13 there may be another way to do this. You could use a slide control, name the panels in the control, and conditionally switch to the correct panel based on the record type.
you would drop the appropriate fields for the record type in each panel.
http://help.filemaker.com/app/answers/detail/a_id/12012/~/using-slide-controls-and-slide-panels-in-filemaker-pro

Resources